pengjun 1 day ago
parent
commit
927c1e749f
  1. 52
      src/components/queue/Queue.vue

52
src/components/queue/Queue.vue

@ -61,7 +61,7 @@
<div>{{ dddw(dict.queueFlag, 'id', scope.row.completeFlag, 'displayName') }}</div> <div>{{ dddw(dict.queueFlag, 'id', scope.row.completeFlag, 'displayName') }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="候诊" min-width="40" prop="queueCount" align="center"></el-table-column>
<el-table-column label="候诊" min-width="40" prop="queueCount" align="center"></el-table-column>
<el-table-column label="排号人" prop="triageName" min-width="60" align="center" /> <el-table-column label="排号人" prop="triageName" min-width="60" align="center" />
</el-table> </el-table>
<div style="width: 110px;"> <div style="width: 110px;">
@ -318,15 +318,49 @@ 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 => {
if (res.code > -1) {
this.$message.success({ showClose: true, message: '操作成功!' })
return this.dictInit()
}
})
}
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 }) postapi('/api/app/QueueRegister/RecoverCancelQueueRegisterByQueueRegisterId', { queueRegisterId: this.curQueueRow.queueRegisterId })
.then(res => { .then(res => {
if (res.code > -1) { if (res.code > -1) {
this.$message.success({showClose:true,message:'操作成功!'})
this.$message.success({ showClose: true, message: '操作成功!' })
this.curQueueRow = {} this.curQueueRow = {}
return this.dictInit() return this.dictInit()
} }

Loading…
Cancel
Save