|
@@ -1331,16 +1331,18 @@
|
|
|
this.form.weightUnit == 'g' ||
|
|
this.form.weightUnit == 'g' ||
|
|
|
this.form.weightUnit == '克'
|
|
this.form.weightUnit == '克'
|
|
|
) {
|
|
) {
|
|
|
- this.form.newWeightUnit = 'kg';
|
|
|
|
|
- _sumOrderWeight =
|
|
|
|
|
- (this.form.salesOrders[0].requiredFormingNum *
|
|
|
|
|
- Number(this.form.salesOrders[0].productUnitWeight || 1)) /
|
|
|
|
|
- 1000;
|
|
|
|
|
|
|
+ this.form.newWeightUnit = 'KG';
|
|
|
|
|
+ _sumOrderWeight = this.form.newSumOrderWeight / 1000;
|
|
|
|
|
+ // _sumOrderWeight =
|
|
|
|
|
+ // (this.form.salesOrders[0].requiredFormingNum *
|
|
|
|
|
+ // Number(this.form.salesOrders[0].productUnitWeight || 1)) /
|
|
|
|
|
+ // 1000;
|
|
|
} else {
|
|
} else {
|
|
|
this.form.newWeightUnit = this.form.weightUnit;
|
|
this.form.newWeightUnit = this.form.weightUnit;
|
|
|
- _sumOrderWeight =
|
|
|
|
|
- this.form.salesOrders[0].requiredFormingNum *
|
|
|
|
|
- Number(this.form.salesOrders[0].productUnitWeight || 1);
|
|
|
|
|
|
|
+ _sumOrderWeight = this.form.newSumOrderWeight
|
|
|
|
|
+ // _sumOrderWeight =
|
|
|
|
|
+ // this.form.salesOrders[0].requiredFormingNum *
|
|
|
|
|
+ // Number(this.form.salesOrders[0].productUnitWeight || 1);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
productNum += Number(item.planProductNum);
|
|
productNum += Number(item.planProductNum);
|
|
@@ -1348,7 +1350,7 @@
|
|
|
this.form.productNum = productNum;
|
|
this.form.productNum = productNum;
|
|
|
this.form.productUnitWeight =
|
|
this.form.productUnitWeight =
|
|
|
this.form.salesOrders[0]?.productUnitWeight;
|
|
this.form.salesOrders[0]?.productUnitWeight;
|
|
|
- // this.form.newSumOrderWeight = _sumOrderWeight.toFixed(2);
|
|
|
|
|
|
|
+ this.form.newSumOrderWeight = _sumOrderWeight.toFixed(2);
|
|
|
this.form.requiredFormingNum = requiredFormingNum;
|
|
this.form.requiredFormingNum = requiredFormingNum;
|
|
|
const collection = deepClone(this.form.salesOrders);
|
|
const collection = deepClone(this.form.salesOrders);
|
|
|
const sortedCollection = collection.sort(
|
|
const sortedCollection = collection.sort(
|