Browse Source

合同修改-归档文件可操作问题

lizhenhao 2 years ago
parent
commit
faaa2abb57
1 changed files with 8 additions and 1 deletions
  1. 8 1
      src/views/modules/cw/workContract/ContractNameForm.vue

+ 8 - 1
src/views/modules/cw/workContract/ContractNameForm.vue

@@ -830,8 +830,15 @@
             // console.log('data', data)
             // console.log('this.inputForm.contractProperList', this.inputForm.contractProperList)
             // console.log('this.inputForm.contractInfoList', this.inputForm.contractInfoList)
+            if (this.commonJS.isEmpty(this.inputForm.contractProperList)) {
+              this.inputForm.contractProperList = []
+            }
+            if (this.commonJS.isEmpty(this.inputForm.contractInfoList)) {
+              this.inputForm.contractInfoList = []
+            }
             this.$refs.uploadFile.newUpload(method, this.inputForm.contractProperList, 'cwWorkContract', null, null, null, null, false)
-            this.$refs.archiveFile.newUpload(method, this.inputForm.contractInfoList, 'cwWorkContract', null, null, null, null, false)
+            this.$refs.archiveFile.newUpload('view', this.inputForm.contractInfoList, 'cwWorkContract', null, null, null, null, false)
+            this.$refs.archiveFile.setDividerName('', false)
             this.loading = false
           })
           // 获取关联项目信息