From ee1c5d6e85c340c16880a428276982ff2f3be8eb Mon Sep 17 00:00:00 2001 From: cpf <1105965053@qq.com> Date: Tue, 24 May 2022 16:48:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=A6=E6=83=85=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 | 35 +++++++++++++------ .../audit-dispose/audit-dispose.component.ts | 10 +++--- .../details-file-category.component.html | 4 +-- .../edit-file-category.component.html | 2 +- .../details-update-category.component.html | 27 ++++++++++---- .../details-update-category.component.ts | 10 +++--- .../edit-update-category.component.html | 18 +++------- .../edit-update-category.component.ts | 17 ++++++++- 8 files changed, 79 insertions(+), 44 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 c72c45b..02b58bd 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 @@ -37,32 +37,47 @@

证照编号:   {{data.getData.licenseCode || ''}}

-

证照效期:   {{data.getData.validityStartTime | - date:"yyyy/MM/dd"}} - {{data.getData.validityEndTime | date:"yyyy/MM/dd"}}

+

证照效期:   {{data.getData.isLongTerm ? '长期证照' : (data.getData.validityEndTime | date:"yyyy/MM/dd")}}

-

办理类型:   {{getHandleTypes(data.getData.handleTypes)}}

+

办理类型:   {{getHandleTypes(data.getData.handleTypesDefault)}}

-

有效期类型:   {{data.getData.validityDays || 0}}天

+

有效天数:    + + 长期 + + + {{data.getData.validityDays ? data.getData.validityDays+'天' : '/'}} + +

-

是否年检:   

+

是否年检:   

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

-

有无证照:   不适用 +

有无证照:    + 不适用

+
+

说明:   {{data.getData.remark}}

附件:    + src="../../../../assets/images/license/word.png" (click)="lookFile(data.getData.imageUrl)"> + src="../../../../assets/images/license/pdf.png" (click)="lookFile(data.getData.imageUrl)">

+

附件副本:    + + + +

审批意见:

diff --git a/src/app/pages/audit/audit-ing/audit-dispose/audit-dispose.component.ts b/src/app/pages/audit/audit-ing/audit-dispose/audit-dispose.component.ts index e09e7cd..2a9b9a5 100644 --- a/src/app/pages/audit/audit-ing/audit-dispose/audit-dispose.component.ts +++ b/src/app/pages/audit/audit-ing/audit-dispose/audit-dispose.component.ts @@ -85,15 +85,15 @@ export class AuditDisposeComponent implements OnInit { //查看文件 lookFile(item) { - if (!item.imageUrl) { + if (!item) { return } - if (this.getFileType(item.imageUrl) == 'word') { - let arr = item.imageUrl.split('.') + if (this.getFileType(item) == 'word') { + let arr = item.split('.') arr[arr.length - 1] = 'pdf' window.open(arr.join('.')) - } else if (this.getFileType(item.imageUrl) == 'pdf') { - window.open(item.imageUrl) + } else if (this.getFileType(item) == 'pdf') { + window.open(item) } else { this.message.create('warning', '暂不支持查看!'); } 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 44f6cc7..085f6bb 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 @@ -7,13 +7,13 @@
-

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

+

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

有无证照:   不适用

-

证件图片:    +

附件:    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 11ca6a3..f852a09 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 @@ -6,7 +6,7 @@

-

证件名称: {{data2.licenseTypeName || ''}}

+

证照名称: {{data2.licenseTypeName || ''}}

diff --git a/src/app/pages/license/update-category/details-update-category/details-update-category.component.html b/src/app/pages/license/update-category/details-update-category/details-update-category.component.html index 72a69d6..a9cbce2 100644 --- a/src/app/pages/license/update-category/details-update-category/details-update-category.component.html +++ b/src/app/pages/license/update-category/details-update-category/details-update-category.component.html @@ -7,24 +7,37 @@
-

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

+

证照名称:   {{data.licenseTypeName || ''}}

-

证件编号:   {{data.licenseCode || ''}}

+

证照编号:   {{data.licenseCode || ''}}

-

证件有效期:   {{data.validityStartTime | date:"yyyy/MM/dd"}} - {{data.validityEndTime | date:"yyyy/MM/dd"}}

+

证照效期:   {{data.isLongTerm ? '长期证照' : (data.validityEndTime | date:"yyyy/MM/dd")}}

办理类型:   {{getHandleTypes(data.handleTypesDefault)}}

-

有效期类型:   {{data.validityDays || 0}}天

+

有效天数:    + + 长期 + + + {{data.validityDays ? data.validityDays+'天' : '/'}} + +

-

证件图片:    +

附件:    - - + +

+

附件副本:    + + + +

+

审核记录 diff --git a/src/app/pages/license/update-category/details-update-category/details-update-category.component.ts b/src/app/pages/license/update-category/details-update-category/details-update-category.component.ts index 18de9d9..76ccfbb 100644 --- a/src/app/pages/license/update-category/details-update-category/details-update-category.component.ts +++ b/src/app/pages/license/update-category/details-update-category/details-update-category.component.ts @@ -91,15 +91,15 @@ export class DetailsUpdateCategoryComponent implements OnInit { //查看文件 lookFile(item) { - if (!item.imageUrl) { + if (!item) { return } - if (this.getFileType(item.imageUrl) == 'word') { - let arr = item.imageUrl.split('.') + if (this.getFileType(item) == 'word') { + let arr = item.split('.') arr[arr.length - 1] = 'pdf' window.open(arr.join('.')) - } else if (this.getFileType(item.imageUrl) == 'pdf') { - window.open(item.imageUrl) + } else if (this.getFileType(item) == 'pdf') { + window.open(item) } else { this.message.create('warning', '暂不支持查看!'); } 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 df178bf..ec85ad4 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 @@ -6,20 +6,20 @@

-

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

+

证照名称: {{data2.licenseTypeName}}

-

证件编号*

+

证照编号*

- + -

证件有效期*

+

证照效期*