代客下单更新
This commit is contained in:
@@ -1,18 +1,21 @@
|
||||
<template>
|
||||
<view class="u-wrap">
|
||||
|
||||
|
||||
<view class="top bg-fff w-full">
|
||||
<view class="u-flex u-row-between choose-user" @tap="chooseTable">
|
||||
<view>
|
||||
<view v-if="!data.table.tableId">选择桌台</view>
|
||||
<view class="u-flex" v-else>
|
||||
<view class="u-m-l-20">{{data.table.name}}</view>
|
||||
<template v-if="option.type!='add'">
|
||||
<view class="u-flex u-row-between choose-user" @tap="chooseTable">
|
||||
<view>
|
||||
<view v-if="!data.table.tableId">选择桌台</view>
|
||||
<view class="u-flex" v-else>
|
||||
<view class="u-m-l-20">{{data.table.name}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="u-flex">
|
||||
<uni-icons type="right" size="20" color="#999"></uni-icons>
|
||||
</view>
|
||||
</view>
|
||||
<view class="u-flex">
|
||||
<uni-icons type="right" size="20" color="#999"></uni-icons>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<!-- <view class="u-flex u-row-between choose-user" @tap="chooseUser">
|
||||
<view>
|
||||
<view v-if="!data.vipUser.id">选择用户</view>
|
||||
@@ -374,8 +377,8 @@
|
||||
await clearCart()
|
||||
cars.length = 0
|
||||
for (let i in data.tabbar) {
|
||||
for (let k in data.tabbar[i].fgoods) {
|
||||
data.tabbar[i].fgoods[k].chooseNumber = 0
|
||||
for (let k in data.tabbar[i].foods) {
|
||||
data.tabbar[i].foods[k].chooseNumber = 0
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -997,12 +1000,17 @@
|
||||
watchUpdate()
|
||||
})
|
||||
let isCreateOrderToDetail = ref(false)
|
||||
let option={type:''}
|
||||
onLoad((opt) => {
|
||||
console.log(opt)
|
||||
option=opt
|
||||
Object.assign(data.table, opt)
|
||||
if (opt.useType) {
|
||||
uni.setStorageSync('useType', opt.useType)
|
||||
}
|
||||
uni.setNavigationBarTitle({
|
||||
title:(opt&&opt.type=='add')?'顾客加菜':'代客下单'
|
||||
})
|
||||
if (JSON.stringify(opt) == '{}') {
|
||||
isCreateOrderToDetail.value = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user