|
|
@@ -27,6 +27,9 @@ export function changeCount(row, countObj, noDiscountSingle) {
|
|
|
data['discountTotalPrice'] = !noDiscountSingle
|
|
|
? data.totalPrice
|
|
|
: data.discountTotalPrice;
|
|
|
+ } else {
|
|
|
+ data['totalPrice'] = 0;
|
|
|
+ data['discountTotalPrice'] = 0;
|
|
|
}
|
|
|
// getNotaxSinglePrice(data);
|
|
|
return data;
|
|
|
@@ -51,7 +54,7 @@ export function getAllPrice(arr) {
|
|
|
sum += Number(item.totalPrice);
|
|
|
}
|
|
|
});
|
|
|
- return sum;
|
|
|
+ return isNaN(sum) ? 0 : sum.toFixed(2);
|
|
|
}
|
|
|
// //计算不含税单价
|
|
|
// function getNotaxSinglePrice(row) {
|