添加绑定码牌

This commit is contained in:
GaoHao
2024-10-24 17:36:28 +08:00
parent 44fc24c52f
commit c232d9ce76
4 changed files with 70 additions and 7 deletions

View File

@@ -39,6 +39,11 @@
<template v-else>
<view class="u-flex u-row-center u-m-t-16">
<template v-if="data.tableId">
<template v-if="data.status =='unbind' ">
<my-button color="#333" :width="200" :height="56" type="default" @click="bind">
绑定码牌
</my-button>
</template>
<template v-if="data.status=='idle'||(data.status=='using'&&!data.orderId) ">
<my-button color="#333" :width="150" :height="56" type="default" @click="diancan">
选择
@@ -80,7 +85,7 @@
} from '@/http/yskApi/table.js'
import infoBox from '@/commons/utils/infoBox.js'
const status = $status
const emits = defineEmits(['more', 'update'])
const emits = defineEmits(['more', 'update', 'bind'])
function returnStutasText(key) {
key = returnIsUseing(key)
@@ -146,6 +151,10 @@
}
emits('more')
}
function bind() {
emits('bind',props.data)
}
async function diancan() {