优化台桌状态

This commit is contained in:
gyq
2025-05-10 15:15:43 +08:00
parent 4d939b2889
commit 2ba61eab19
7 changed files with 113 additions and 105 deletions

View File

@@ -473,10 +473,10 @@ async function confirmOrder() {
} catch (error) {
console.log(error);
payLoading.value = false;
if (error.code == 1003) {
ElMessage.error(error.msg)
return
}
// if (error.code == 1003) {
// ElMessage.error(error.msg)
// return
// }
if (error.code == 701) {
// 订单已过期需刷新购物车和订单
emit('orderExpired')

View File

@@ -383,9 +383,9 @@ function reset() {
closeStateTime.value = 5
// 关闭锁单
goodsStore.isOrderLock({
table_code: table_code.value
}, 'pay_unlock')
// goodsStore.isOrderLock({
// table_code: table_code.value
// }, 'pay_unlock')
}
defineExpose({