优化下单折扣

This commit is contained in:
gyq
2025-03-20 18:30:32 +08:00
parent 87e8976353
commit a914adc9f8
5 changed files with 50 additions and 12 deletions

View File

@@ -174,6 +174,8 @@ async function checkRecord() {
// 开始交班
const exit = async () => {
try {
if (loading.value) return
loading.value = true;
// await staffPermission('yun_xu_jiao_ban')
const res = await handover(isPrint.value)
const data = await handoverData(res)
@@ -188,8 +190,8 @@ const exit = async () => {
}
logoutHandle()
} catch (error) {
console.log(error);
loading.value = false;
console.log(error);
}
}
@@ -205,9 +207,9 @@ async function logoutHandle() {
});
}, 1000);
} catch (error) {
loading.value = false;
console.log('退出失败');
}
loading.value = false;
}
// 获取交班打印数据前置