From 31f7950779d4863e6aa02b21c17441488288c640 Mon Sep 17 00:00:00 2001 From: guanyu Date: Sun, 17 May 2026 23:13:06 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20Bug=20#530:=20[=E4=BD=8F=E9=99=A2?= =?UTF-8?q?=E6=8A=A4=E5=A3=AB=E7=AB=99-=E5=8C=BB=E5=98=B1=E6=A0=A1?= =?UTF-8?q?=E5=AF=B9]=20=E6=82=A3=E8=80=85=E6=9F=A5=E8=AF=A2=E8=A7=A6?= =?UTF-8?q?=E5=8F=91=20SQL=20=E7=B1=BB=E5=9E=8B=E5=8C=B9=E9=85=8D=E9=94=99?= =?UTF-8?q?=E8=AF=AF=EF=BC=8C=E5=AF=BC=E8=87=B4=E5=8B=BE=E9=80=89=E6=82=A3?= =?UTF-8?q?=E8=80=85=E5=88=97=E8=A1=A8=E5=90=8E=E5=90=8E=E7=AB=AF=E6=8A=A5?= =?UTF-8?q?=E9=94=99=20-=20=E5=89=8D=E7=AB=AF=E8=BF=87=E6=BB=A4=E6=97=A0?= =?UTF-8?q?=E6=95=88=E7=9A=84encounterId=E9=98=B2=E6=AD=A2=E5=90=8E?= =?UTF-8?q?=E7=AB=AFSQL=E8=A7=A3=E6=9E=90=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 --- .../components/prescriptionList.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/openhis-ui-vue3/src/views/inpatientNurse/medicalOrderProofread/components/prescriptionList.vue b/openhis-ui-vue3/src/views/inpatientNurse/medicalOrderProofread/components/prescriptionList.vue index 4779c5e02..e362b5959 100755 --- a/openhis-ui-vue3/src/views/inpatientNurse/medicalOrderProofread/components/prescriptionList.vue +++ b/openhis-ui-vue3/src/views/inpatientNurse/medicalOrderProofread/components/prescriptionList.vue @@ -182,8 +182,16 @@ function handleRadioChange() { function handleGetPrescription() { if (patientInfoList.value.length > 0) { + // 过滤掉 encounterId 无效的患者节点,防止后端 SQL 解析异常 + const validEncounterIds = patientInfoList.value + .map((i) => i.encounterId) + .filter((id) => id !== undefined && id !== null && id !== ''); + if (validEncounterIds.length === 0) { + proxy.$message.warning('请选择有效的患者'); + return; + } loading.value = true; - let encounterIds = patientInfoList.value.map((i) => i.encounterId).join(','); + let encounterIds = validEncounterIds.join(','); getPrescriptionList({ encounterIds: encounterIds, requestStatus: props.requestStatus,