修改订单退款金额,客座费金额
This commit is contained in:
@@ -98,10 +98,10 @@
|
|||||||
}
|
}
|
||||||
console.log(item);
|
console.log(item);
|
||||||
if (props.orderInfo.pointsDiscountAmount > 0 || props.orderInfo.fullCouponDiscountAmount > 0) {
|
if (props.orderInfo.pointsDiscountAmount > 0 || props.orderInfo.fullCouponDiscountAmount > 0) {
|
||||||
const shengyuKeTui=(props.orderInfo.refundAmount||0)-canTuiKuanPrice.value
|
const shengyuKeTui=canTuiKuanPrice.value
|
||||||
const bili = Math.floor((item.priceAmount / shengyuKeTui) * 100) / 100
|
const bili = Math.floor((item.priceAmount / shengyuKeTui) * 100) / 100
|
||||||
console.log(bili);
|
console.log(bili);
|
||||||
return Math.floor(props.orderInfo.amount * bili * 100) / 100
|
return Math.floor((props.orderInfo.amount-props.orderInfo.refundAmount) * bili * 100) / 100
|
||||||
} else {
|
} else {
|
||||||
return item.priceAmount
|
return item.priceAmount
|
||||||
}
|
}
|
||||||
@@ -141,7 +141,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function tuikuan() {
|
function tuikuan() {
|
||||||
emits('tuikuan', props.data)
|
emits('tuikuan', {...props.data,priceAmount:seatFeePrice.value})
|
||||||
}
|
}
|
||||||
|
|
||||||
function tuicai() {
|
function tuicai() {
|
||||||
|
|||||||
@@ -384,10 +384,10 @@
|
|||||||
return returnTotalMoney(item)
|
return returnTotalMoney(item)
|
||||||
} else {
|
} else {
|
||||||
if(props.orderInfo.pointsDiscountAmount>0||props.orderInfo.fullCouponDiscountAmount>0){
|
if(props.orderInfo.pointsDiscountAmount>0||props.orderInfo.fullCouponDiscountAmount>0){
|
||||||
const shengyuKeTui=(props.orderInfo.refundAmount||0)-canTuiKuanPrice.value
|
const shengyuKeTui=canTuiKuanPrice.value
|
||||||
const bili=Math.floor((item.priceAmount/shengyuKeTui )*100)/100
|
const bili=Math.floor((item.priceAmount/shengyuKeTui )*100)/100
|
||||||
console.log(bili);
|
console.log(bili);
|
||||||
return Math.floor(props.orderInfo.amount*bili*100)/100
|
return Math.floor((props.orderInfo.amount-props.orderInfo.refundAmount)*bili*100)/100
|
||||||
// return (item.priceAmount / (canTuiKuanPrice.value + seatFeePrice.value * 1) * props.orderInfo.amount).toFixed(
|
// return (item.priceAmount / (canTuiKuanPrice.value + seatFeePrice.value * 1) * props.orderInfo.amount).toFixed(
|
||||||
// 2)
|
// 2)
|
||||||
}else{
|
}else{
|
||||||
@@ -523,10 +523,10 @@
|
|||||||
const n = goodsOriginAllPrice.value - youhuiAllPrice.value
|
const n = goodsOriginAllPrice.value - youhuiAllPrice.value
|
||||||
return (n < 0 ? 0 : n).toFixed(2)
|
return (n < 0 ? 0 : n).toFixed(2)
|
||||||
}
|
}
|
||||||
const seatFee=props.orderInfo.seatInfo?(props.orderInfo.seatInfo.priceAmount||props.orderInfo.seatInfo.returnAmount):0
|
let seatFee=props.orderInfo.seatInfo?(props.orderInfo.seatInfo.priceAmount):0
|
||||||
console.log('seatFee');
|
const bili = Math.floor((seatFee / canTuiKuanPrice.value) * 100) / 100
|
||||||
console.log(seatFee);
|
seatFee= Math.floor((props.orderInfo.amount-props.orderInfo.refundAmount) * bili * 100) / 100
|
||||||
const total=props.orderInfo.amount-seatFee
|
const total=props.orderInfo.amount-(props.orderInfo.seatInfo.returnAmount?props.orderInfo.seatInfo.returnAmount:seatFee)
|
||||||
return (total<=0?0:total).toFixed(2)
|
return (total<=0?0:total).toFixed(2)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user