优化打印 优化退单

This commit is contained in:
gyq
2025-03-17 09:47:49 +08:00
parent d08a629b0a
commit 64f539623f
14 changed files with 279 additions and 118 deletions

View File

@@ -47,7 +47,7 @@
</div>
<div class="pay_wrap">
<payCard ref="payCardRef" :orderList="orderList" :amount="cartInfo.totalAmount"
:orderId="goodsStore.orderListInfo.id" @paySuccess="paySuccess" />
:orderId="goodsStore.orderListInfo.id" @paySuccess="paySuccess" @orderExpired="orderExpiredHnadle" />
</div>
</div>
<!-- <el-dialog v-model="showStaffDiscount" title="员工折扣" @close="global.updateData(true)">
@@ -140,6 +140,14 @@ const orderList = ref([])
const isPrint = ref(true);
const discountLoading = ref(false)
// 支付失败,订单已过期
function orderExpiredHnadle() {
dialogVisible.value = false
useStorage.del('tableCode')
socket.cartInit()
goodsStore.successClearCart()
}
// 显示员工折扣
async function showStaffDiscountHandle() {
try {