Преглед изворни кода

盘点清空库存的时候 账面数量赋值给实际数量

Qukatie пре 3 дана
родитељ
комит
8d77904a0b
1 измењених фајлова са 17 додато и 15 уклоњено
  1. 17 15
      src/views/tirePartsMall/salesManagement/Inventory/detailsPage.vue

+ 17 - 15
src/views/tirePartsMall/salesManagement/Inventory/detailsPage.vue

@@ -949,15 +949,15 @@ export default {
           itemRemove({ ids: ids.join(",") }).then(res => {
             row.historyList = [];
             // row.dot = null;
-            // row.sendNumHave = 0;
-            // this.calculator(row);
+            row.sendNum = row.inventory;
+            this.calculator(row);
           });
         });
       } else {
         row.historyList = [];
         // row.dot = null;
-        // row.sendNumHave = 0;
-        // this.calculator(row);
+        row.sendNum = row.inventory;
+        this.calculator(row);
       }
     },
     rowArea(row, index) {
@@ -1144,18 +1144,20 @@ export default {
         submitInventory({
           bsType: "PD",
           ...this.form
-        }).then(res => {
-          confirmInventory(this.form)
-            .then(res => {
-              this.$message.success("操作成功");
-              this.refresh(this.form.id);
-            })
-            .finally(() => {
-              loading.close();
-            });
-        }).catch(()=>{
-          loading.close();
         })
+          .then(res => {
+            confirmInventory(this.form)
+              .then(res => {
+                this.$message.success("操作成功");
+                this.refresh(this.form.id);
+              })
+              .finally(() => {
+                loading.close();
+              });
+          })
+          .catch(() => {
+            loading.close();
+          });
       });
     },
     //修改提交触发