代客下单暂时影藏打包费

This commit is contained in:
2024-10-12 17:04:13 +08:00
parent 54f824f2de
commit 80875551ae

View File

@@ -200,19 +200,21 @@
</view> </view>
</view> </view>
<template v-if="eatTypes.active=='takeout'">
<view class="u-flex u-row-between u-m-t-18 u-p-b-34 border-bottom"> </template>
<view> <template v-else>
<text v-if="eatTypes.active=='takeout'">包装费</text> <view v-if="$seatFee&&$seatFee.totalAmount" class="u-flex u-row-between u-m-t-18 u-p-b-34 border-bottom">
<text v-else>桌位费</text> <view>
<text >桌位费</text>
</view>
<view>{{$seatFee.totalAmount||'0.00'}}</view>
</view> </view>
<view>{{$seatFee.totalAmount||'0.00'}}</view> </template>
</view>
<view class="u-flex u-row-right u-m-t-38"> <view class="u-flex u-row-right u-m-t-38">
<template v-if="$shop.registerType=='munchies'"> <!-- <template v-if="$shop.registerType=='munchies'">
<view class="color-main" @tap="showModel('editMoney')">修改</view> <view class="color-main" @tap="showModel('editMoney')">修改</view>
</template> </template> -->
<view class="u-flex price u-m-l-32"> <view class="u-flex price u-m-l-32">
<view class="">实收金额</view> <view class="">实收金额</view>
<view class="font-bold u-font-32">{{formatPrice(allPrice) }}</view> <view class="font-bold u-font-32">{{formatPrice(allPrice) }}</view>
@@ -463,7 +465,7 @@
return (goodsTotalPrice|| 0).toFixed(2) return (goodsTotalPrice|| 0).toFixed(2)
}) })
const allPrice = computed(() => { const allPrice = computed(() => {
const n=goodsPrice.value*1 + ($seatFee.totalAmount || 0) const n=goodsPrice.value*1 + (eatTypes.active=='takeout'?0:($seatFee.totalAmount || 0))
return n.toFixed(2) return n.toFixed(2)
// const goodsTotalPrice = goods.list.reduce((prve, cur) => { // const goodsTotalPrice = goods.list.reduce((prve, cur) => {
// return prve + cur.salePrice * cur.number * (cur.isGift ? 0 : 1) // return prve + cur.salePrice * cur.number * (cur.isGift ? 0 : 1)