|
|
@@ -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();
|
|
|
+ });
|
|
|
});
|
|
|
},
|
|
|
//修改提交触发
|