订单管理详情,支付价格计算逻辑修改
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user