|
@@ -22,8 +22,8 @@ export function changeCount(row, countObj, noDiscountSingle) {
|
|
|
: data.discountSinglePrice;
|
|
: data.discountSinglePrice;
|
|
|
|
|
|
|
|
setWeight(data);
|
|
setWeight(data);
|
|
|
- if (row.totalCount && row.singlePrice) {
|
|
|
|
|
- data['totalPrice'] = row.totalCount * row.singlePrice;
|
|
|
|
|
|
|
+ if (row[countObj.countKey] && row.singlePrice) {
|
|
|
|
|
+ data['totalPrice'] = row[countObj.countKey] * row.singlePrice;
|
|
|
data['discountTotalPrice'] = !noDiscountSingle
|
|
data['discountTotalPrice'] = !noDiscountSingle
|
|
|
? data.totalPrice
|
|
? data.totalPrice
|
|
|
: data.discountTotalPrice;
|
|
: data.discountTotalPrice;
|