修改商品券计算时增加打折比例
This commit is contained in:
@@ -1725,11 +1725,11 @@ export default {
|
||||
return this.vipUser.isVip ? true : false;
|
||||
},
|
||||
coupdiscount() {
|
||||
return returnCouponAllPrice(
|
||||
return (this.createOrder.discount*returnCouponAllPrice(
|
||||
this.quansSelArr,
|
||||
this.createOrder.data.detailList || [],
|
||||
this.vipUser
|
||||
);
|
||||
)).toFixed(2)
|
||||
},
|
||||
goodsDisCount() {
|
||||
const goodsQuanArr = this.quansSelArr.filter((v) => v.type == 2);
|
||||
@@ -2195,11 +2195,12 @@ export default {
|
||||
const arr = this.quansSelArr.filter((v) => v.proId == row.proId);
|
||||
const index = arr.findIndex((v) => v.id == row.id);
|
||||
if (index != -1) {
|
||||
return returnProductCoupAllPrice(
|
||||
const n=returnProductCoupAllPrice(
|
||||
$goodsPayPriceMap[row.proId],
|
||||
index,
|
||||
row.num
|
||||
).toFixed(2);
|
||||
)
|
||||
return (n*this.createOrder.discount).toFixed(2);
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
@@ -2265,6 +2266,7 @@ export default {
|
||||
id: this.createOrder.data.id,
|
||||
memberId: this.createOrder.data.memberId || this.vipUser.id,
|
||||
orderPrice: (this.yinFuJinE * 1 + this.coupdiscount * 1).toFixed(2),
|
||||
discount:this.createOrder.discount
|
||||
},
|
||||
[...this.quansSelArr]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user