From 781582c9d3a954b76b72e4e5b01320bd6c4939ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=B3=E7=BE=BD?= <关羽@gentronhealth.com> Date: Thu, 14 May 2026 16:07:48 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20Bug=20#455:=20=E9=97=A8=E8=AF=8A=E5=8C=BB?= =?UTF-8?q?=E7=94=9F=E7=AB=99-=E5=8C=BB=E5=98=B1=EF=BC=9A=E5=BC=80?= =?UTF-8?q?=E7=AB=8B=E8=AF=8A=E7=96=97=E5=8C=BB=E5=98=B1=E6=97=B6=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E7=A7=91=E5=AE=A4=E9=BB=98=E8=AE=A4=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E6=9C=89=E8=AF=AF=E4=B8=94=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E4=B8=BA=E5=8E=9F=E5=A7=8BID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除else分支中对orgId和positionName的条件判断,确保诊疗类医嘱的执行科室 始终使用患者就诊科室,不被诊疗目录配置的positionId覆盖。 之前的if (!orgId)条件导致目录已配置positionId时不会被覆盖, 若目录配置的ID不在机构树中则显示原始ID。 Co-Authored-By: Claude Opus 4.7 --- .../components/prescription/prescriptionlist.vue | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/openhis-ui-vue3/src/views/doctorstation/components/prescription/prescriptionlist.vue b/openhis-ui-vue3/src/views/doctorstation/components/prescription/prescriptionlist.vue index 5d09e2944..cd137662c 100755 --- a/openhis-ui-vue3/src/views/doctorstation/components/prescription/prescriptionlist.vue +++ b/openhis-ui-vue3/src/views/doctorstation/components/prescription/prescriptionlist.vue @@ -3591,13 +3591,10 @@ async function setValue(row) { prescriptionList.value[rowIndex.value].categoryEnum = 31; // 会诊的category_enum设置为31 } else { // 诊疗类型(adviceType == 3) - // 🔧 Bug Fix #238: 诊疗项目默认使用患者就诊科室 - if (!prescriptionList.value[rowIndex.value].orgId) { - prescriptionList.value[rowIndex.value].orgId = props.patientInfo.orgId; - } - if (!prescriptionList.value[rowIndex.value].positionName) { - prescriptionList.value[rowIndex.value].positionName = findOrgNameById(prescriptionList.value[rowIndex.value].orgId) || props.patientInfo.orgName || ''; - } + // 🔧 Bug #455: 诊疗项目执行科室强制使用患者就诊科室, + // 不使用目录配置的执行科室(可能是错误ID或占位符,导致显示原始ID) + prescriptionList.value[rowIndex.value].orgId = props.patientInfo.orgId; + prescriptionList.value[rowIndex.value].positionName = findOrgNameById(props.patientInfo.orgId) || props.patientInfo.orgName || ''; // 🔧 Bug #218 修复:使用组套中维护的quantity,如果没有则默认1 prescriptionList.value[rowIndex.value].quantity = row.quantity || 1; // 🔧 Bug #144 修复:安全访问 priceList,防止 orderDetailInfos 为空时出错