|
|
@@ -51,7 +51,7 @@ export function changeCount(row, countObj, noDiscountSingle, weightType) {
|
|
|
|
|
|
// 计算总重
|
|
|
function setWeight(row, type) {
|
|
|
- if (row.weightUnit == row.measuringUnit && row.pricingWay == 1 && type != 'purchase') {
|
|
|
+ if (row.weightUnit == row.measuringUnit && (type != 'purchase' || (type == 'purchase'&& row.pricingWay == 1))) {
|
|
|
row['totalWeight'] = row.totalCount;
|
|
|
} else if (row.totalCount && row.singleWeight) {
|
|
|
row['totalWeight'] = (row.totalCount * row.singleWeight).toFixed(2);
|