修复socket信息弹窗问题,修复菜品状态未上菜超市显示问题
This commit is contained in:
@@ -523,7 +523,11 @@ function onMessage() {
|
||||
);
|
||||
}
|
||||
|
||||
if (msg.status == 0 && msg.type != "time_discount") {
|
||||
if (
|
||||
msg.status == 0 &&
|
||||
msg.type != "time_discount"
|
||||
) {
|
||||
console.log("msg", msg);
|
||||
infoBox.showToast(msg.msg || "添加失败");
|
||||
data.isGoodsAdd = true;
|
||||
// 如果是商品库存不足起售数量
|
||||
@@ -642,6 +646,9 @@ async function getHistoryOrderDetail() {
|
||||
if (shopInfo.registerType == "before") {
|
||||
return;
|
||||
}
|
||||
if(!data.table.tableCode){
|
||||
return;
|
||||
}
|
||||
data.historyOrder = [];
|
||||
let res = await getHistoryOrder({
|
||||
tableCode: data.table.tableCode,
|
||||
@@ -2011,6 +2018,9 @@ async function getLimit() {
|
||||
}
|
||||
|
||||
async function getTableDetail() {
|
||||
if(!data.table.tableCode){
|
||||
return;
|
||||
}
|
||||
let res = await $returnTableDetail({
|
||||
tableCode: data.table.tableCode,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user