Browse Source

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

lazy 1 week ago
parent
commit
6c316e6c45

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

@@ -220,7 +220,9 @@ export default {
       handler(newV) {
       handler(newV) {
         this.$nextTick(() => {
         this.$nextTick(() => {
           setTimeout(() => {
           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)
           }, 300)
         })
         })
       },
       },

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

@@ -605,7 +605,11 @@ export default {
         this.ruleForm.purchContractApproval.fileStorage = []
         this.ruleForm.purchContractApproval.fileStorage = []
       }
       }
       if (val === 1) {
       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)
         this.createFile(val)
       }
       }
     },
     },