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 4715ade..14f841f 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
@@ -7,29 +7,38 @@
-
山东省某中化公司-淄博区域-淄博市第十六加油站
-
-
证件名称: 营业执照
-
-
证件编号: Z201800041501
-
-
证件有效期: 2018.12.02—2025.01.12
-
-
办理类型: 年度公示
-
-
有效期类型: 1523天
-
-
是否年检: 是
+
{{data.gasStation.companyName}} - {{data.gasStation.stationName}}
+
+
证件名称: {{data.getData.licenseTypeName}}
+
+
+
+
+
证件编号: {{data.getData.licenseCode || ''}}
+
+
证件有效期: {{data.getData.validityStartTime | date:"yyyy/MM/dd"}} - {{data.getData.validityEndTime | date:"yyyy/MM/dd"}}
+
+
办理类型: {{data.getData.handleType || ''}}
+
+
有效期类型: {{data.getData.validityDays || 0}}天
+
+
是否年检: 是否
+
+
-
证件图片: 
+
证件图片:
+
+
+
审批意见:
-
+
-
-
+
+
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 42d0e24..db1ccd1 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
@@ -4,6 +4,7 @@ import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { HttpClient } from '@angular/common/http';
import { ObjectsSimpleService } from 'src/app/service/objectsSimple.service';
import Viewer from 'viewerjs';
+import { NzMessageService } from 'ng-zorro-antd/message';
@Component({
@@ -14,22 +15,39 @@ import Viewer from 'viewerjs';
export class AuditDisposeComponent implements OnInit {
@Input() data?: any;
- constructor(private modal: NzModalRef) { }
-
+ constructor(private modal: NzModalRef, private message: NzMessageService) { }
+ textarea: string = ""; //审批意见
ngOnInit(): void {
+ console.log(this.data)
}
destroyModal() {
this.modal.destroy();
}
- ok() {
+
+ isPass: boolean;
+ ok(isPass: boolean) {
+ this.isPass = isPass;
this.modal.triggerOk()
}
+
+ //获取文件格式
+ getFileType(name: string):string {
+ let suffix
+ if (name.substring(name.length-4).includes('png') || name.substring(name.length-4).includes('jpg') || name.substring(name.length-4).includes('jpeg') || name.substring(name.length-4).includes('webp')) {
+ suffix = 'img'
+ } else if (name.substring(name.length-4).includes('doc') || name.substring(name.length-4).includes('docx')) {
+ suffix = 'word'
+ } else if (name.substring(name.length-4).includes('pdf')) {
+ suffix = 'pdf'
+ }
+ return suffix
+ }
+
//查看图片
viewImg(url) {
- // url.split('?')[0]
let dom = document.getElementById(`viewerjs`)
let pObjs = dom.childNodes;
let node = document.createElement("img")
@@ -48,4 +66,20 @@ export class AuditDisposeComponent implements OnInit {
}, 0);
}
+ //查看文件
+ lookFile(item) {
+ if (!item.imageUrl) {
+ return
+ }
+ if (this.getFileType(item.imageUrl) == 'word') {
+ let arr = item.imageUrl.split('.')
+ arr[arr.length - 1] = 'pdf'
+ window.open(arr.join('.'))
+ } else if (this.getFileType(item.imageUrl) == 'pdf') {
+ window.open(item.imageUrl)
+ } else {
+ this.message.create('warning', '暂不支持查看!');
+ }
+ }
+
}
diff --git a/src/app/pages/audit/audit-ing/audit-ing.component.html b/src/app/pages/audit/audit-ing/audit-ing.component.html
index 1536bd2..bb34896 100644
--- a/src/app/pages/audit/audit-ing/audit-ing.component.html
+++ b/src/app/pages/audit/audit-ing/audit-ing.component.html
@@ -9,7 +9,7 @@