From b99d653da78271791f908a59dd5364761537a409 Mon Sep 17 00:00:00 2001 From: cpf <1105965053@qq.com> Date: Mon, 23 May 2022 15:01:44 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E4=BA=A7=E7=B1=BB=E8=AF=81=E7=85=A7?= =?UTF-8?q?=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../audit-dispose.component.html | 2 +- .../details-file-category.component.html | 4 ++- .../edit-file-category.component.html | 8 +++-- .../edit-file-category.component.scss | 2 +- .../edit-file-category.component.ts | 14 ++++++-- .../file-category.component.html | 18 +++++------ .../file-category/file-category.component.ts | 32 +++++++++++++------ .../edit-update-category.component.html | 2 +- .../update-category.component.ts | 2 +- 9 files changed, 57 insertions(+), 27 deletions(-) diff --git a/src/app/pages/audit/audit-ing/audit-dispose/audit-dispose.component.html b/src/app/pages/audit/audit-ing/audit-dispose/audit-dispose.component.html index 1fbeba5..0ed445b 100644 --- a/src/app/pages/audit/audit-ing/audit-dispose/audit-dispose.component.html +++ b/src/app/pages/audit/audit-ing/audit-dispose/audit-dispose.component.html @@ -43,7 +43,7 @@

证件名称:   {{data.getData.licenseTypeName}}

-

有效期类型:   不适用

+

有无证照:   不适用

证件图片:    diff --git a/src/app/pages/license/file-category/details-file-category/details-file-category.component.html b/src/app/pages/license/file-category/details-file-category/details-file-category.component.html index 443717f..44f6cc7 100644 --- a/src/app/pages/license/file-category/details-file-category/details-file-category.component.html +++ b/src/app/pages/license/file-category/details-file-category/details-file-category.component.html @@ -9,7 +9,7 @@

证件名称:   {{data.licenseTypeName}}

-

有效期类型:   不适用

+

有无证照:   不适用

@@ -19,6 +19,8 @@

+

说明:   {{data.remark}}

+

审核记录 diff --git a/src/app/pages/license/file-category/edit-file-category/edit-file-category.component.html b/src/app/pages/license/file-category/edit-file-category/edit-file-category.component.html index 7efab10..85f86ac 100644 --- a/src/app/pages/license/file-category/edit-file-category/edit-file-category.component.html +++ b/src/app/pages/license/file-category/edit-file-category/edit-file-category.component.html @@ -10,7 +10,7 @@

-

有效期类型*

+

适用类型*

@@ -40,8 +40,12 @@
+

说明

+ +
- + +
diff --git a/src/app/pages/license/file-category/edit-file-category/edit-file-category.component.scss b/src/app/pages/license/file-category/edit-file-category/edit-file-category.component.scss index 75ccce6..ae52af3 100644 --- a/src/app/pages/license/file-category/edit-file-category/edit-file-category.component.scss +++ b/src/app/pages/license/file-category/edit-file-category/edit-file-category.component.scss @@ -70,7 +70,7 @@ } button:nth-child(2) { - margin-left: 16px; + margin: 0 15px; } .ok { diff --git a/src/app/pages/license/file-category/edit-file-category/edit-file-category.component.ts b/src/app/pages/license/file-category/edit-file-category/edit-file-category.component.ts index 8d590bb..9dd6a98 100644 --- a/src/app/pages/license/file-category/edit-file-category/edit-file-category.component.ts +++ b/src/app/pages/license/file-category/edit-file-category/edit-file-category.component.ts @@ -21,7 +21,8 @@ export class EditFileCategoryComponent implements OnInit { data2 ngOnInit(): void { this.validateForm = this.fb.group({ - type: [null, [Validators.required]] + type: [null, [Validators.required]], + remark: [null] }); this.data2 = JSON.parse(JSON.stringify(this.data)) this.validatyType = (this.data2.validatyType).toString() @@ -38,8 +39,17 @@ export class EditFileCategoryComponent implements OnInit { destroyModal() { this.modal.destroy({ data: 'this the result data' }); } + + isSubmit: boolean = false; ok() { - this.modal.triggerOk() + this.isSubmit = false; + this.modal.triggerOk(); + } + + //提交审核 + submitReview(){ + this.isSubmit = true; + this.modal.triggerOk(); } diff --git a/src/app/pages/license/file-category/file-category.component.html b/src/app/pages/license/file-category/file-category.component.html index 376fd49..42fcd2c 100644 --- a/src/app/pages/license/file-category/file-category.component.html +++ b/src/app/pages/license/file-category/file-category.component.html @@ -5,12 +5,12 @@ - 证件名称 + 证照名称 - 有效期类型 + 有无证照 + 附件 - 提交时间 - 审核状态 操作 @@ -24,20 +24,20 @@ + - {{item.committedTime | date:"yyyy/MM/dd"}}未提交审核 - - {{item.auditLog.auditStatusDesc || ''}} - 编辑 详情 撤销审核 - 提交审核 + diff --git a/src/app/pages/license/file-category/file-category.component.ts b/src/app/pages/license/file-category/file-category.component.ts index b3bcc47..5f557ca 100644 --- a/src/app/pages/license/file-category/file-category.component.ts +++ b/src/app/pages/license/file-category/file-category.component.ts @@ -116,13 +116,24 @@ export class FileCategoryComponent implements OnInit { nzFooter: null, nzClosable: false, nzOnOk: async () => { + if (instance.validatyType == '2' && !instance.data2.imageUrl) { + this.message.create('warning', '请上传附件!'); + return false; + } await new Promise(resolve => { instance.data2.validatyType = Number(instance.validatyType) - this.http.post('/api/services/app/StationFileLicense/Create', instance.data2).subscribe(data => { - resolve(data); - this.getStationList(); - this.message.create('success', '修改成功!'); - return true + this.http.post('/api/services/app/StationFileLicense/Create', instance.data2).subscribe((data: any) => { + if (!instance.isSubmit) { + resolve(data); + this.getStationList(); + this.message.create('success', '修改成功!'); + return true; + } else { //提交审核 + this.submitReview(data.result).then(res=>{ + resolve(data); + return true; + }); + } }) }) } @@ -161,10 +172,13 @@ export class FileCategoryComponent implements OnInit { this.message.create('warning', '该证照请编辑保存后再提交审核!'); return } - let params = { id: item.id } - this.http.post('/api/services/app/StationFileLicense/Commit', {}, { params }).subscribe(data => { - this.message.create('success', '提交审核成功!'); - this.getStationList(); + return new Promise((resolve, reject)=>{ + let params = { id: item.id } + this.http.post('/api/services/app/StationFileLicense/Commit', {}, { params }).subscribe(data => { + this.message.create('success', '提交审核成功!'); + this.getStationList(); + resolve('success'); + }) }) } diff --git a/src/app/pages/license/update-category/edit-update-category/edit-update-category.component.html b/src/app/pages/license/update-category/edit-update-category/edit-update-category.component.html index e17caa7..4bbc24a 100644 --- a/src/app/pages/license/update-category/edit-update-category/edit-update-category.component.html +++ b/src/app/pages/license/update-category/edit-update-category/edit-update-category.component.html @@ -64,7 +64,7 @@
- +
diff --git a/src/app/pages/license/update-category/update-category.component.ts b/src/app/pages/license/update-category/update-category.component.ts index b58076e..3f9ac38 100644 --- a/src/app/pages/license/update-category/update-category.component.ts +++ b/src/app/pages/license/update-category/update-category.component.ts @@ -138,7 +138,7 @@ export class UpdateCategoryComponent implements OnInit { let body = instance.data2 // 日期 if (body.isLongTerm) { - body.validityStartTime = instance.isLongTermTime + body.validityStartTime = instance.isLongTermTime || new Date() } else { body.validityStartTime = instance.isNoLongTermTime[0] || new Date() body.validityEndTime = instance.isNoLongTermTime[1] || new Date()