代客下单更新

This commit is contained in:
2024-10-12 10:23:44 +08:00
parent d03a8ea542
commit dd2776fe13
3 changed files with 27 additions and 16 deletions

View File

@@ -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,