pengjun 13 hours ago
parent
commit
927c1e749f
  1. 38
      src/components/queue/Queue.vue

38
src/components/queue/Queue.vue

@ -318,10 +318,44 @@ export default {
this.$message.warning({ showClose: true, message: '请选择排队房间' }) this.$message.warning({ showClose: true, message: '请选择排队房间' })
return return
} }
postapi('/api/app/QueueRegister/ManualQueuingRoom', {
let body = {
patientRegisterId: this.refParams.patientRegisterId, patientRegisterId: this.refParams.patientRegisterId,
roomId: this.curRoomId 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) { if (res.code > -1) {
this.$message.success({ showClose: true, message: '操作成功!' }) this.$message.success({ showClose: true, message: '操作成功!' })
return this.dictInit() return this.dictInit()

Loading…
Cancel
Save