@@ -166,6 +166,12 @@
}}
+
+ 满减活动
+
+ -¥{{ carts.orderCostSummary.fullReduction.actualAmount }}
+
+
商品优惠券
-¥{{ productCouponDiscountAmount }}
@@ -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,