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