|
|
@ -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() |
|
|
|