Browse Source

fix:一键计算

jiand 6 months ago
parent
commit
e9b31a362b
1 changed files with 6 additions and 4 deletions
  1. 6 4
      src/views/myTrade/settlementDocumentManagement/add.vue

+ 6 - 4
src/views/myTrade/settlementDocumentManagement/add.vue

@@ -503,9 +503,8 @@ export default {
         method: 'post',
         data
       }).then(({ data }) => {
-        if(type == 'submit') {
-          this.submit(2)
-        } else {
+        
+        // } else {
           this.ruleForm.goodsList.forEach((item, index) => {
             this.calculateKeyList.forEach(key => {
               item[key] = data[index][key]
@@ -513,8 +512,11 @@ export default {
             // item.purchaseGuaranteeMoney = data[index].purchaseGuaranteeMoney
           })
           this.calculateTotal()
+          if(type == 'submit') {
+            this.submit(2)
+          }
           // this.isLoading = false
-        }
+        // }
       }, () => {
         // this.isLoading = false
       })