From db05a3079570e3d60fff8722bea07d5b3a821323 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=B3=E7=BE=BD?= <关羽@gentronhealth.com> Date: Thu, 14 May 2026 06:06:18 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20Bug=20#502:=20=E3=80=90=E4=BD=8F=E9=99=A2?= =?UTF-8?q?=E6=8A=A4=E5=A3=AB=E7=AB=99-=E6=B1=87=E6=80=BB=E5=8F=91?= =?UTF-8?q?=E8=8D=AF=E7=94=B3=E8=AF=B7=E3=80=91=E9=A1=B6=E9=83=A8=E5=8C=BB?= =?UTF-8?q?=E5=98=B1=E7=B1=BB=E5=9E=8B=EF=BC=88=E9=95=BF=E6=9C=9F/?= =?UTF-8?q?=E4=B8=B4=E6=97=B6=EF=BC=89=E8=BF=87=E6=BB=A4=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E6=97=A0=E5=93=8D=E5=BA=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根因:汇总视图(SummaryMedicineList)没有ref属性,handleGetPrescription()只调用了prescriptionRefs.value?.handleGetPrescription(), 当isDetails=='2'时PrescriptionList被v-if隐藏,prescriptionRefs.value为null,导致汇总列表不刷新。 修复:1. 给SummaryMedicineList添加ref="summaryMedicineRefs" 2. handleGetPrescription()根据isDetails值调用对应的子组件刷新方法 Co-Authored-By: Claude Opus 4.7 --- .../src/views/inpatientNurse/drugDistribution/index.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/openhis-ui-vue3/src/views/inpatientNurse/drugDistribution/index.vue b/openhis-ui-vue3/src/views/inpatientNurse/drugDistribution/index.vue index 88ac4a6ff..9fecd4608 100755 --- a/openhis-ui-vue3/src/views/inpatientNurse/drugDistribution/index.vue +++ b/openhis-ui-vue3/src/views/inpatientNurse/drugDistribution/index.vue @@ -85,7 +85,7 @@ :deadline="deadline" :therapyEnum="therapyEnum" /> - +