fix: 修复称重商品切换就餐模式时打包数量展示不对问题

This commit is contained in:
2025-03-18 18:18:42 +08:00
parent 8bcc5b8c71
commit 2837711105
4 changed files with 27 additions and 7 deletions

View File

@@ -584,6 +584,10 @@ const diners = reactive({
function changeDinersSel(index) {
diners.sel = index;
changeCartsDinerType();
}
function changeCartsDinerType() {
carts.dinnerType = diners.sel == 0 ? "dine-in" : "take-out";
}
@@ -729,6 +733,7 @@ watch(
function init() {
getTableList();
getCategoryList();
changeCartsDinerType();
carts.init({ table_code: table.tableCode }, oldOrder.value);
}