|
|
@@ -821,7 +821,7 @@
|
|
|
},
|
|
|
|
|
|
//修改数量更新合计/总重
|
|
|
- changeNum(val, index) {
|
|
|
+ changeNum(val, index,type) {
|
|
|
this.curIndex = index;
|
|
|
if (this.pricingWay == 2) {
|
|
|
if (val != this.form.datasource[index].orderTotalCount) {
|
|
|
@@ -879,7 +879,10 @@
|
|
|
Number(this.form.datasource[index].singleWeight)
|
|
|
);
|
|
|
}
|
|
|
+ if(!type){
|
|
|
this.tableHandleKeyUp(this.form.datasource[index], index, 'sum');
|
|
|
+
|
|
|
+ }
|
|
|
},
|
|
|
//计算单重
|
|
|
singleWeightChange(row, index) {
|
|
|
@@ -948,7 +951,7 @@
|
|
|
row.totalCount =
|
|
|
(Number(row.blockCount) * modelLong * modeWide * modeHight) /
|
|
|
1000000;
|
|
|
- this.changeNum(row.totalCount, index);
|
|
|
+ this.changeNum(row.totalCount, index,true);
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
@@ -1095,7 +1098,7 @@
|
|
|
if (type == 'add') {
|
|
|
data.forEach((item) => {
|
|
|
const data = this.warehouseList.find(
|
|
|
- (val) => val.id == item.warehouseList[0]?.warehouse_id
|
|
|
+ (val) => val.id == item.warehouseId
|
|
|
);
|
|
|
item['warehouseId'] = data.id;
|
|
|
item['warehouseName'] = data.name;
|