pengjun 12 hours ago
parent
commit
927c1e749f
  1. 40
      src/components/queue/Queue.vue

40
src/components/queue/Queue.vue

@ -318,10 +318,44 @@ export default {
this.$message.warning({ showClose: true, message: '请选择排队房间' })
return
}
postapi('/api/app/QueueRegister/ManualQueuingRoom', {
let body = {
patientRegisterId: this.refParams.patientRegisterId,
roomId: this.curRoomId
}).then(res => {
}
postapi('/api/app/QueueRegister/GetRoomAsbitemPreAsbitemStatus', body)
.then(res => {
if (res.code > -1) {
// {
// "isPreCheckAsbitem": "string",
// "asbitemNameDetail": [
// "string"
// ]
// }
if (res?.data?.isPreCheckAsbitem == "Y") { //
let asbitemNameDetail = res?.data?.asbitemNameDetail?.toString() || ''
this.$confirm(`尚有前置项目【${asbitemNameDetail}】未检查, 是否继续排入该房间?`, "提示", {
confirmButtonText: "是",
cancelButtonText: "否",
type: "warning",
})
.then(() => {
//
this.queueApi(body)
})
} else {
//
this.queueApi(body)
}
}
})
},
//
queueApi(body) {
postapi('/api/app/QueueRegister/ManualQueuingRoom', body)
.then(res => {
if (res.code > -1) {
this.$message.success({ showClose: true, message: '操作成功!' })
return this.dictInit()
@ -392,7 +426,7 @@ export default {
postapi('/api/app/QueueRegister/RecoverCancelQueueRegisterByQueueRegisterId', { queueRegisterId: this.curQueueRow.queueRegisterId })
.then(res => {
if (res.code > -1) {
this.$message.success({showClose:true,message:'操作成功!'})
this.$message.success({ showClose: true, message: '操作成功!' })
this.curQueueRow = {}
return this.dictInit()
}

Loading…
Cancel
Save