订单管理详情,支付价格计算逻辑修改

This commit is contained in:
2024-11-21 18:10:19 +08:00
parent 84855194e8
commit b69159d965
6 changed files with 89 additions and 34 deletions

View File

@@ -340,7 +340,8 @@
const option = reactive({
orderId: '',
memberId: '',
orderPrice: 0
orderPrice: 0,
discuount:100
})
function toEmitChooseQuan(item) {
@@ -361,7 +362,7 @@
const goodsQuan = myQuan.res.productCoupon.filter(v => v.checked)
const fullReductionCoupon = myQuan.fullReductionCouponSel.id ? [myQuan.fullReductionCouponSel] : []
let coupArr = [...fullReductionCoupon, ...goodsQuan]
return returnCouponAllPrice(coupArr, canDikouGoodsArr, user.value)
return returnCouponAllPrice(coupArr, canDikouGoodsArr, user.value,option.discuount)
})
const payPrice = computed(() => {
const pay = option.orderPrice - discountAmount.value