|
|
@@ -949,14 +949,14 @@ export default {
|
|
|
itemRemove({ ids: ids.join(",") }).then(res => {
|
|
|
row.historyList = [];
|
|
|
// row.dot = null;
|
|
|
- row.sendNum = row.inventory;
|
|
|
+ row.sendNumHave = row.inventory;
|
|
|
this.calculator(row);
|
|
|
});
|
|
|
});
|
|
|
} else {
|
|
|
row.historyList = [];
|
|
|
// row.dot = null;
|
|
|
- row.sendNum = row.inventory;
|
|
|
+ row.sendNumHave = row.inventory;
|
|
|
this.calculator(row);
|
|
|
}
|
|
|
},
|
|
|
@@ -967,7 +967,7 @@ export default {
|
|
|
this.form.orderItemsList[index].dot = row.dot;
|
|
|
this.form.orderItemsList[index].historyList = row.historyList;
|
|
|
this.form.orderItemsList[index].sendNumHave = row.sendNum;
|
|
|
- this.form.orderItemsList[index].sendNum = row.sendNum + row.inventoryFinancing;
|
|
|
+ // this.form.orderItemsList[index].sendNum = row.sendNum;
|
|
|
this.calculator(this.form.orderItemsList[index]);
|
|
|
},
|
|
|
outExport() {
|
|
|
@@ -1095,6 +1095,7 @@ export default {
|
|
|
this.$set(row, "profitLossAmount", Number(row.subTotalMoney) - Number(row.price));
|
|
|
},
|
|
|
calculator(row) {
|
|
|
+ console.log(row)
|
|
|
row.sendNum = Number(Number(row.sendNumFinancing) + Number(row.sendNumHave));
|
|
|
row.subTotalMoney = Number(Number(row.sendNum) * Number(row.costprie)).toFixed(2);
|
|
|
row.profitLossNum = Number(row.sendNum) - Number(row.inventory);
|