修改退款计算公式
This commit is contained in:
@@ -351,7 +351,7 @@
|
||||
// const curTotal=cur.info.filter(v=>!v.userCouponId).reduce((a,b)=>{
|
||||
// return a+b.priceAmount*1
|
||||
// },0)
|
||||
const curTotal = cur.info.filter(v => !v.userCouponId)
|
||||
const curTotal = cur.info.filter(v => !isTui(v)&& !v.userCouponId)
|
||||
.reduce((a, b) => {
|
||||
return a + b.priceAmount * 1
|
||||
}, 0)
|
||||
@@ -384,9 +384,10 @@
|
||||
return returnTotalMoney(item)
|
||||
} else {
|
||||
if(props.orderInfo.pointsDiscountAmount>0||props.orderInfo.fullCouponDiscountAmount>0){
|
||||
const bili=(item.priceAmount/canTuiKuanPrice.value*100).toFixed(2)/100
|
||||
const shengyuKeTui=(props.orderInfo.refundAmount||0)-canTuiKuanPrice.value
|
||||
const bili=Math.floor((item.priceAmount/shengyuKeTui )*100)/100
|
||||
console.log(bili);
|
||||
return ((props.orderInfo.amount)*bili).toFixed(2)
|
||||
return Math.floor(props.orderInfo.amount*bili*100)/100
|
||||
// return (item.priceAmount / (canTuiKuanPrice.value + seatFeePrice.value * 1) * props.orderInfo.amount).toFixed(
|
||||
// 2)
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user