更新桌台列表页面
This commit is contained in:
@@ -67,7 +67,7 @@
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<my-action-sheet @itemClick="actionSheetClick" ref="refMoreSheet" :list="actionSheet.list"
|
||||
<my-action-sheet :active="4" @itemClick="actionSheetClick" ref="refMoreSheet" :list="actionSheet.list"
|
||||
:title="actionSheet.title">
|
||||
<template #title>
|
||||
<view class="color-999 u-p-30 u-text-center border-bottom">桌号:{{actionSheet.title}}</view>
|
||||
@@ -101,6 +101,7 @@
|
||||
import addTable from './components/add-table'
|
||||
import myActionSheet from '@/components/my-components/my-action-sheet';
|
||||
import tableItem from './components/table-item'
|
||||
import * as $fun from './util.js'
|
||||
import {
|
||||
ref,
|
||||
reactive,
|
||||
@@ -109,7 +110,7 @@
|
||||
} from 'vue';
|
||||
const refMoreSheet = ref(null)
|
||||
const actionSheet = reactive({
|
||||
list: ['编辑', '历史订单'],
|
||||
list: ['结账', '清台','增减菜','换台','打印订单','历史订单'],
|
||||
title: '',
|
||||
selTable: ''
|
||||
})
|
||||
@@ -119,11 +120,27 @@
|
||||
actionSheet.selTable = table
|
||||
refMoreSheet.value.open()
|
||||
}
|
||||
|
||||
function actionSheetClick(index) {
|
||||
|
||||
async function actionSheetClick(index) {
|
||||
console.log(index);
|
||||
//编辑
|
||||
// refTableShow()
|
||||
if (index == 0) {
|
||||
refTableShow()
|
||||
return
|
||||
}
|
||||
if (index == 1) {
|
||||
return
|
||||
}
|
||||
if (index == 2) {
|
||||
return
|
||||
}
|
||||
if (index == 3) {
|
||||
return
|
||||
}
|
||||
if (index == 4) {
|
||||
//打印订单
|
||||
const res=await $fun.printOrder(actionSheet.selTable.tableId)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user