代客下单更新

确认订单时购物车数据为空时不请求修改就餐模式
This commit is contained in:
YeMingfei666 2024-10-11 18:15:08 +08:00
parent ca919a04c3
commit 0ad3080e71
1 changed files with 4 additions and 1 deletions

View File

@ -200,7 +200,7 @@
</view>
</view>
<view class="u-flex u-row-between u-m-t-18 u-p-b-34 border-bottom">
<view>
<text v-if="eatTypes.active=='takeout'">包装费</text>
@ -613,6 +613,9 @@
uni.setStorageSync("useType", useType);
}
const tableId = useType == 'takeout' ? undefined : table.value.tableId;
if(!goods.list.length){
return
}
const res = await Api.$changeUseType({
useType,
tableId,