浏览代码

【修改】bug

莫绍宝 3 年之前
父节点
当前提交
57f6d41041

+ 4 - 2
src/views/supply/engin/components/commerce_form.vue

@@ -663,7 +663,9 @@ export default {
             }
           }
 
-          this.goodsList.forEach(item => {
+          let goodsList = JSON.parse(JSON.stringify(this.goodsList));
+
+          goodsList.forEach(item => {
             delete item.rebateWallets;
             delete item.wallets;
           })
@@ -685,7 +687,7 @@ export default {
             note1: this.mainForm.greeReply || '',
             remark: this.mainForm.remark || '',
             fileNo: this.mainForm.fileNum || '',
-            items: this.goodsList,
+            items: goodsList,
           }
           if(type === 1) {
             if(this.listItem) {

+ 4 - 2
src/views/supply/engin/components/home_form.vue

@@ -698,7 +698,9 @@ export default {
             }
           }
 
-          this.goodsList.forEach(item => {
+          let goodsList = JSON.parse(JSON.stringify(this.goodsList));
+
+          goodsList.forEach(item => {
             delete item.rebateWallets;
             delete item.wallets;
           })
@@ -725,7 +727,7 @@ export default {
             note1: this.mainForm.greeReply || '',
             remark: this.mainForm.remark || '',
             fileNo: this.mainForm.fileNum || '',
-            items: this.goodsList,
+            items: goodsList,
           }
           if(type === 1) {
             if(this.listItem) {