代客下单确认订单打包费更新
This commit is contained in:
@@ -478,12 +478,15 @@
|
|||||||
})
|
})
|
||||||
const goodsPrice = computed(() => {
|
const goodsPrice = computed(() => {
|
||||||
const goodsTotalPrice = goods.list.reduce((prve, cur) => {
|
const goodsTotalPrice = goods.list.reduce((prve, cur) => {
|
||||||
const tPrice=cur.salePrice * cur.number+cur.packFee*1
|
const tPrice=cur.salePrice * cur.number
|
||||||
return prve +(cur.isGift?0:tPrice)
|
console.log(cur.isPack);
|
||||||
|
const tpackFee=cur.isPack? cur.packFee*1:0
|
||||||
|
return prve +(cur.isGift?0:tPrice) +tpackFee
|
||||||
}, 0)
|
}, 0)
|
||||||
return (goodsTotalPrice|| 0).toFixed(2)
|
return (goodsTotalPrice|| 0).toFixed(2)
|
||||||
})
|
})
|
||||||
const allPrice = computed(() => {
|
const allPrice = computed(() => {
|
||||||
|
console.log(goodsPrice.value);
|
||||||
const n=goodsPrice.value*1 + $seatFee.totalAmount
|
const n=goodsPrice.value*1 + $seatFee.totalAmount
|
||||||
return n.toFixed(2)
|
return n.toFixed(2)
|
||||||
// const goodsTotalPrice = goods.list.reduce((prve, cur) => {
|
// const goodsTotalPrice = goods.list.reduce((prve, cur) => {
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ export function getNowCart(records) {
|
|||||||
arr[index].number = arr[index].number * 1 + item.number
|
arr[index].number = arr[index].number * 1 + item.number
|
||||||
arr[index].totalNumber = arr[index].totalNumber * 1 + item.totalNumber
|
arr[index].totalNumber = arr[index].totalNumber * 1 + item.totalNumber
|
||||||
arr[index].totalAmount = arr[index].totalAmount * 1 + item.totalAmount
|
arr[index].totalAmount = arr[index].totalAmount * 1 + item.totalAmount
|
||||||
|
arr[index].packFee = arr[index].packFee * 1 + item.packFee
|
||||||
} else {
|
} else {
|
||||||
arr.push({
|
arr.push({
|
||||||
...item,
|
...item,
|
||||||
|
|||||||
Reference in New Issue
Block a user