排队bug修改

This commit is contained in:
duan
2024-09-23 14:03:56 +08:00
parent 899fd4b93d
commit 5db9cc69a3
3 changed files with 124 additions and 54 deletions

View File

@@ -19,7 +19,7 @@
</li>
</ul>
<div class="buttonstyle">
<el-button type="primary" @click="dialogVisibles = true">取号</el-button>
<el-button type="primary" @click="dialogVisibles = true; phone = ''">取号</el-button>
<el-button plain type="primary" @click="toUrl">叫号记录</el-button>
</div>
</div>
@@ -84,7 +84,7 @@
</template>
<script>
import { callTable, callTablequeue, callTableput, callTabletakeNumber } from '@/api/shop'
import { callTable, callTablequeue, callTableput, callTabletakeNumber ,callTablecall} from '@/api/shop'
export default {
data() {
return {
@@ -131,9 +131,15 @@ export default {
}
},
profilepicture(d) {
this.dialogVisible = true
this.profilepictureInfo = d
async profilepicture(d) {
let res = await callTablecall({
shopId: localStorage.getItem('shopId'),
callQueueId: d.id
})
if (res) {
this.dialogVisible = true
this.profilepictureInfo = d
}
},
gettypeevent(d) {
this.selecttopType = d
@@ -155,7 +161,7 @@ export default {
} else if (value == 2) {
const res = await callTableput({
shopId: localStorage.getItem('shopId'),
state: 1,
state: 2,
callQueueId: this.profilepictureInfo.id
})
if (res) {