fix:产品折扣金额bug处理
parent
1860ac322e
commit
9d067ab748
|
|
@ -312,7 +312,7 @@ export default {
|
||||||
},
|
},
|
||||||
calculateTotal(productList, discount) {
|
calculateTotal(productList, discount) {
|
||||||
if (!productList) return 0;
|
if (!productList) return 0;
|
||||||
return productList.reduce((sum, product) => sum + (this.getDiscountedAllPrice(product, discount) || 0), 0);
|
return productList.reduce((sum, product) => sum + (product.allPrice || 0), 0);
|
||||||
},
|
},
|
||||||
formatCurrency(value) {
|
formatCurrency(value) {
|
||||||
if (value == null) return '0.00';
|
if (value == null) return '0.00';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue