修改商品券计算时增加打折比例
This commit is contained in:
@@ -168,6 +168,7 @@ export default {
|
||||
},
|
||||
|
||||
confirm() {
|
||||
console.log(this.form.discount / 100)
|
||||
this.$emit("confirm", (this.form.discount / 100));
|
||||
this.close();
|
||||
},
|
||||
|
||||
@@ -229,6 +229,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
discount:1,
|
||||
orderPrice: 0,
|
||||
fullReductionCouponSel: {
|
||||
id: "",
|
||||
@@ -286,11 +287,12 @@ export default {
|
||||
const arr = this.quans.productCoupon.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.discount).toFixed(2);
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
@@ -439,6 +441,7 @@ export default {
|
||||
async open(data, propSelCoup) {
|
||||
console.log(data);
|
||||
this.orderPrice = data.orderPrice;
|
||||
this.discount=data.discount||1
|
||||
this.quansSelArr = [...propSelCoup];
|
||||
$goodsPayPriceMap = returnGoodsPayPriceMap(this.goodsArr || []);
|
||||
if (data.memberId) {
|
||||
|
||||
Reference in New Issue
Block a user