更新优化换桌功能

This commit is contained in:
gyq
2026-03-27 09:32:02 +08:00
parent e058aaacf7
commit 372a1b35ec
5 changed files with 68 additions and 123 deletions

View File

@@ -670,11 +670,13 @@ export const useCartsStore = defineStore("carts", () => {
}
function rotTable(newVal: string | number, cart_id = []) {
sendMessage('rottable', {
new_table_code: newVal,
table_code: table_code.value,
cart_id
});
if (cart_id.length) {
sendMessage('rottable', {
new_table_code: newVal,
table_code: table_code.value,
cart_id
});
}
}
function del(data: any) {