Explorar o código

fix:修改采购合同电子签交互

lazy hai 3 días
pai
achega
6c316e6c45

+ 3 - 1
src/components/Upload/index.vue

@@ -220,7 +220,9 @@ export default {
       handler(newV) {
         this.$nextTick(() => {
           setTimeout(() => {
-            this.$refs.upload.$el.querySelector('.el-upload').style.display = newV ? 'block' : 'none'
+            if (this.$refs.upload?.$el.querySelector('.el-upload')) {
+              this.$refs.upload.$el.querySelector('.el-upload').style.display = newV ? 'block' : 'none'
+            }
           }, 300)
         })
       },

+ 5 - 1
src/views/purchaseContractManagement/components/PurchaseContractReviewContent.vue

@@ -605,7 +605,11 @@ export default {
         this.ruleForm.purchContractApproval.fileStorage = []
       }
       if (val === 1) {
-        this.ruleForm.purchContractApproval = this.tempPurchContractApproval
+        if (Object.keys(this.tempPurchContractApproval).length) {
+          this.ruleForm.purchContractApproval = this.tempPurchContractApproval
+          this.ruleForm.purchContractApproval.signMode = val
+          this.ruleForm.purchContractApproval.approvalConclusion = 'pass'
+        }
         this.createFile(val)
       }
     },