Browse Source

签章文件查看页签功能恢复

user5 2 years ago
parent
commit
b6095f8925
1 changed files with 10 additions and 1 deletions
  1. 10 1
      src/views/modules/cw/reportManagement/ReportManagementForm.vue

+ 10 - 1
src/views/modules/cw/reportManagement/ReportManagementForm.vue

@@ -730,6 +730,10 @@
               <!--        附件-->
               <UpLoadComponent2 ref="enclosure"></UpLoadComponent2>
             </el-tab-pane>
+            <el-tab-pane label="签章附件" name="archiveFile">
+              <!--        附件-->
+              <UpLoadComponent ref="archiveFile" @clickSign="clickSign"></UpLoadComponent>
+            </el-tab-pane>
             <el-tab-pane label="已签章附件" name="signatureFile">
               <!--        附件-->
               <UpLoadComponent2 ref="signatureFile"></UpLoadComponent2>
@@ -1129,7 +1133,7 @@
             this.$refs.enclosure.newUpload(method, data.cwFileInfoList2, 'cwWorkContract', null, null, null, null, false)
             this.inputForm.cwWorkClientContactDTOList = data.cwWorkClientContactDTOList
             // this.$refs.enclosure.newUpload(method, data.cwFileInfoList2, 'cwWorkContract', null, null, null, null, false)
-            // this.$refs.archiveFile.newUpload(method, data.cwFileInfoList, 'cwWorkContract', null, null, null, null, false)
+            this.$refs.archiveFile.newUpload(method, data.cwFileInfoList, 'cwWorkContract', null, null, null, null, false)
             this.$refs.signatureFile.newUpload('view', data.signatureFileList, 'cwWorkContract', null, null, null, null, false)
             this.loading = false
           })
@@ -1144,6 +1148,11 @@
           // })
         })
       },
+      clickSign () {
+        this.projectReportService.saveFlowableParam(this.inputForm).then(({data}) => {
+          window.open(data, '_blank')
+        })
+      },
       detailDivide (details) {
         this.inputForm.detailFor1010 = []
         this.inputForm.detailFor1020 = []