fix: 增加订单支付各种优惠时的其他优惠重置

This commit is contained in:
2025-03-21 17:32:46 +08:00
parent 9609bda23c
commit 6368927de3
2 changed files with 26 additions and 3 deletions

View File

@@ -186,7 +186,7 @@
<div class="u-flex u-m-b-10 u-row-between">
<span class="title">整单改价</span>
<span class="u-m-l-10 value">-{{ discountAmount }}</span>
<span class="u-m-l-10 value color-red">-{{ discountAmount }}</span>
</div>
<div class="u-flex u-m-b-10 u-row-between">
<span class="title">积分抵扣</span>
@@ -284,6 +284,10 @@ function refCouponConfirm(e, goodsPayPriceMap, goodsList) {
score.sel = -1;
quansSelArr.value = e;
$goodsPayPriceMap = goodsPayPriceMap;
checkOrderPay.discountAmount = 0;
checkOrderPay.discount = 0;
score.sel = -1;
usePointsNumber.value = 0;
}
function delQuan(row) {
const index = quansSelArr.value.findIndex((v) => v.id == row.id);
@@ -307,6 +311,9 @@ function discountConfirm(e) {
} else {
checkOrderPay.discount = 0;
}
score.sel = -1;
usePointsNumber.value = 0;
}
function discountShow(e) {
refDiscount.value.open({
@@ -356,6 +363,7 @@ watch(
}
}
);
watch(
() => props.orderInfo.id,
(newval) => {