Bläddra i källkod

fix:一键计算

jiand 4 månader sedan
förälder
incheckning
e9b31a362b
1 ändrade filer med 6 tillägg och 4 borttagningar
  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
       })