|
@@ -89,7 +89,7 @@
|
|
</el-dialog>
|
|
</el-dialog>
|
|
<el-dialog
|
|
<el-dialog
|
|
v-model="scanDialogVisible"
|
|
v-model="scanDialogVisible"
|
|
- title="请使用扫码枪扫码支付"
|
|
|
|
|
|
+ title="请引导顾客扫码支付"
|
|
width="300px"
|
|
width="300px"
|
|
center
|
|
center
|
|
:show-close="false"
|
|
:show-close="false"
|
|
@@ -103,6 +103,7 @@
|
|
class="mx-auto mb-4"
|
|
class="mx-auto mb-4"
|
|
style="width: 150px"
|
|
style="width: 150px"
|
|
/>
|
|
/>
|
|
|
|
+ <b style="font-size: 20px;">{{ currentDeskAmount }} 元</b>
|
|
</div>
|
|
</div>
|
|
<template #footer>
|
|
<template #footer>
|
|
<div class="dialog-footer">
|
|
<div class="dialog-footer">
|
|
@@ -145,6 +146,7 @@ const dialogVisible = ref(false)
|
|
const isLoading = ref(false)
|
|
const isLoading = ref(false)
|
|
const currentDeskStatus = ref()
|
|
const currentDeskStatus = ref()
|
|
const currentDeskMaxNum = ref<number>()
|
|
const currentDeskMaxNum = ref<number>()
|
|
|
|
+const currentDeskAmount = ref<number>()
|
|
const areaList = ref<any[]>([])
|
|
const areaList = ref<any[]>([])
|
|
const deskList = ref<any[]>([])
|
|
const deskList = ref<any[]>([])
|
|
let currentDesk: any = {}
|
|
let currentDesk: any = {}
|
|
@@ -314,7 +316,8 @@ const checkout = () => {
|
|
currentDesk.oid = res.id
|
|
currentDesk.oid = res.id
|
|
feedback.confirm(currentDesk.name + ' 结账金额为' + currentDesk.amount + ',确定要结账吗?').then(() => {
|
|
feedback.confirm(currentDesk.name + ' 结账金额为' + currentDesk.amount + ',确定要结账吗?').then(() => {
|
|
data.canScan = true
|
|
data.canScan = true
|
|
- scanDialogVisible.value = true
|
|
|
|
|
|
+ currentDeskAmount.value = currentDesk.amount
|
|
|
|
+ scanDialogVisible.value = true
|
|
// 添加键盘事件监听
|
|
// 添加键盘事件监听
|
|
document.addEventListener('keydown', handleScanInput)
|
|
document.addEventListener('keydown', handleScanInput)
|
|
})
|
|
})
|