fix: 已选券券类型显示修复

This commit is contained in:
YeMingfei666 2025-10-15 10:32:25 +08:00
parent 93e290fbaf
commit 1c6739532a
1 changed files with 11 additions and 14 deletions

View File

@ -88,7 +88,7 @@
<el-table-column prop="name" label="券名称"></el-table-column>
<el-table-column label="券类型" width="80">
<template v-slot="scope">
{{ UTILS.returnCoupType(scope.row.type) }}
{{ UTILS.returnCoupType(scope.row) }}
</template>
</el-table-column>
<el-table-column label="商品信息">
@ -166,6 +166,12 @@
}}
</span>
</div>
<div class="u-flex u-m-b-10 u-row-between">
<span class="title">满减活动</span>
<span class="u-m-l-10 value">
-{{ carts.orderCostSummary.fullReduction.actualAmount }}
</span>
</div>
<div class="u-flex u-m-b-10 u-row-between">
<span class="title">商品优惠券</span>
<span class="u-m-l-10 value">-{{ productCouponDiscountAmount }}</span>
@ -258,9 +264,7 @@ const refCoupon = ref();
let quansSelArr = ref([]);
function openCoupon() {
//
const price = new BigNumber(carts.orderCostSummary.goodsOriginalAmount)
.minus(carts.orderCostSummary.goodsDiscountAmount)
.toFixed(2);
const price = carts.orderCostSummary.goodsRealAmount;
refCoupon.value.open(price, props.orderInfo);
}
@ -310,6 +314,7 @@ function discountConfirm(e) {
// 使bignumber.js
function returnMerchantReductionDiscount() {
const {
fullReduction, //
goodsOriginalAmount, //
goodsDiscountAmount, //
couponDeductionAmount, //
@ -330,6 +335,7 @@ function returnMerchantReductionDiscount() {
//
const total = originalAmount
.minus(fullReduction.actualAmount) //
.minus(discountAmount) //
.minus(couponAmount) //
.minus(pointAmount) //
@ -368,15 +374,7 @@ const props = defineProps({
default: () => {},
},
});
const seatAmount = computed(() => {
if (shopUser.userInfo.isTableFee) {
return "0.00";
}
if (props.perpole >= 1) {
return (props.perpole * shopUser.userInfo.tableFee).toFixed(2);
}
return "0.00";
});
watch(
() => props.user.id,
(newval) => {
@ -673,7 +671,6 @@ const totalPrice = computed(() => {
//
const currentpayMoney = computed(() => {
return carts.orderCostSummary.finalPayAmount;
// return (totalMoney.value * 1 + carts.packFee * 1 + seatAmount.value * 1).toFixed(2);
});
watch(
() => currentpayMoney.value,