代客下单更新
This commit is contained in:
@@ -523,6 +523,7 @@
|
||||
}
|
||||
// updateChoseCount()
|
||||
const res = await Api.$createOrder(par)
|
||||
uni.$emit('update:createOrderIndex')
|
||||
console.log($shop.value);
|
||||
console.log(res);
|
||||
if ($shop.value.registerType == 'munchies') {
|
||||
@@ -534,11 +535,14 @@
|
||||
)
|
||||
} else {
|
||||
//后付
|
||||
if (option.isCreateOrderToDetail) {
|
||||
console.log(option.isCreateOrderToDetail);
|
||||
if (option.isCreateOrderToDetail!='0') {
|
||||
console.log('PAGES_ORDER_DETAIL');
|
||||
go.to('PAGES_ORDER_DETAIL', {
|
||||
id: res.id
|
||||
},'redirect')
|
||||
} else {
|
||||
console.log('back');
|
||||
uni.navigateBack({
|
||||
delta: 2
|
||||
})
|
||||
@@ -584,9 +588,8 @@
|
||||
}
|
||||
|
||||
onLoad((opt) => {
|
||||
console.log('opt');
|
||||
console.log(opt);
|
||||
Object.assign(option, opt)
|
||||
console.log(option,);
|
||||
if (opt) {
|
||||
table.value = {
|
||||
tableId: opt.tableId,
|
||||
|
||||
Reference in New Issue
Block a user