From 1f629f0d421f534758ef351df3364de80dd7c74b Mon Sep 17 00:00:00 2001 From: pengjun <158915633@qq.com> Date: Fri, 29 Nov 2024 19:02:07 +0800 Subject: [PATCH] queue --- src/components/doctorCheck/QueueCheckList.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/doctorCheck/QueueCheckList.vue b/src/components/doctorCheck/QueueCheckList.vue index 671a81d..e59c5ae 100644 --- a/src/components/doctorCheck/QueueCheckList.vue +++ b/src/components/doctorCheck/QueueCheckList.vue @@ -301,6 +301,7 @@ export default { }, btnCall(refRow, completeFlag) { + let prePatientRegisterId = '' let row = Object.assign({}, refRow); switch (completeFlag) { case "0": // 退回 @@ -322,7 +323,9 @@ export default { this.$message.warning({ showClose: true, message: "未可操作的数据,或未选择候诊人员", - }); + }); + if (this.alreadyCalledDetail.length > 0) prePatientRegisterId = this.alreadyCalledDetail[0].patientRegisterId + break; case "2": // 过号 if (!row.queueRegisterId) { @@ -369,8 +372,8 @@ export default { ); if (this.$peisAPI && completeFlag == "1") this.outShellCall(row); - if (this.queue_after_call == 'Y') return postapi('/api/app/QueueRegister/AutomaticQueuingRoom', { - patientRegisterId: row.patientRegisterId + if (this.queue_after_call == 'Y' && prePatientRegisterId) return postapi('/api/app/QueueRegister/AutomaticQueuingRoom', { + patientRegisterId: prePatientRegisterId }) } });