feat: 台桌列表增加绑定桌码功能(暂时隐藏)

This commit is contained in:
2025-03-31 15:57:19 +08:00
parent 274833d548
commit 3af175c506
3 changed files with 107 additions and 3 deletions

View File

@@ -68,11 +68,12 @@
<template #dropdown>
<el-dropdown-menu>
<el-dropdown-item command="edit">
<i class="i el-icon-edit" />
<span>编辑</span>
</el-dropdown-item>
<!-- <el-dropdown-item command="bindTableCode">
<span>绑定桌码</span>
</el-dropdown-item> -->
<el-dropdown-item command="del">
<i class="i el-icon-delete" />
<span>删除</span>
</el-dropdown-item>
</el-dropdown-menu>
@@ -224,6 +225,8 @@
<addTable ref="refAddTable" @success="tableInit" />
<!-- 下载桌台码 -->
<downloadTableCode ref="refDownloadTableCode" />
<!-- 绑定桌码 -->
<bindCode ref="refBindCode" @refresh="tableInit" />
</div>
</template>
@@ -236,8 +239,15 @@ import shopAreaApi from "@/api/account/shopArea";
import tableApi from "@/api/account/table";
import addEara from "./components/addEara.vue";
import addTable from "./components/addTable.vue";
import bindCode from "./components/bind-table-code.vue";
import downloadTableCode from "./components/downloadTableCode.vue";
//绑定桌码
const refBindCode = ref();
function showBindCode(item) {
refBindCode.value.open(item);
}
//桌台二维码
const refDownloadTableCode = ref();
function showDownloadTableCode() {
@@ -282,6 +292,10 @@ function downloadShopCpde() {
* @param item
*/
function tableComman(command, item) {
if (command === "bindTableCode") {
showBindCode(item);
return;
}
if (command === "edit") {
return refAddTable.value.show(item);
}