fix:订单审批折上折计算调整

dev_1.0.2
jiangpeng 2026-07-20 20:12:21 +08:00
parent 34e9047763
commit aba73af268
1 changed files with 2 additions and 1 deletions

View File

@ -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;