1.修复购物车清空已下单商品的问题

2.转桌/并桌只显示已下单商品
This commit is contained in:
gyq
2024-12-17 09:59:41 +08:00
parent 4b54fdaff1
commit 8dfa5b7aac
8 changed files with 304 additions and 15871 deletions

View File

@@ -3,10 +3,12 @@
<el-drawer size="60%" :with-header="false" direction="rtl" v-model="dialogVisible" style="padding: 0">
<div class="drawerbox_box">
<div class="drawerbox_bo_top">
<div class="drawerbox_bo_top_left">
<div class="drawerbox_bo_top_left" @click="computeExpired">
<div class="drawerbox_bo_top_left_one" style="font-size: 24px;">
{{ store.userInfo.shopName }}
</div>
<div class="tips" style="margin-top: 4px; color: var(--el-color-warning);" v-if="!showTips">注意您的账号将于{{
store.userInfo.expireDate }}后过期请尽快续期</div>
<div class="drawerbox_bo_top_left_tow" style="margin-top: 10px">
收银员{{ store.userInfo.loginAccount }}
</div>
@@ -109,8 +111,21 @@ const screenref = ref(null);
const dialogVisible = ref(false);
const showTips = ref(false)
function show() {
dialogVisible.value = true;
computeExpired()
}
// 计算是否小于过期时间30天
function computeExpired() {
// 当前日期
let now = dayjs()
// 到期时间
let expired = dayjs(store.userInfo.expireDate).subtract(30, 'day')
// 判断当前时间是否大于到期时间30天
showTips.value = now.isBefore(expired)
}
// 打开叫号弹窗