fix:订单审批折上折计算调整
parent
34e9047763
commit
aba73af268
|
|
@ -314,7 +314,8 @@ export default {
|
|||
if (this.order.orderStatus === '2' || this.order.orderStatus === 2) {
|
||||
return allPrice;
|
||||
}
|
||||
return this.$calc.mul(allPrice, discount);
|
||||
const discountedPrice = this.$calc.mul(product.price || 0, discount == null ? 1 : discount, 2);
|
||||
return this.$calc.mul(discountedPrice, product.quantity || 0, 2);
|
||||
},
|
||||
calculateTotal(productList, discount) {
|
||||
if (!productList) return 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue