From 57d14603ee9faf8611d9f9fa734e3f3ce49a629d Mon Sep 17 00:00:00 2001 From: wangjian963 <15215920+aprilry@user.noreply.gitee.com> Date: Wed, 17 Jun 2026 14:16:07 +0800 Subject: [PATCH] =?UTF-8?q?669=20[=E9=97=A8=E8=AF=8A=E5=8C=BB=E7=94=9F?= =?UTF-8?q?=E7=AB=99-=E4=B8=AD=E5=8C=BB=E5=A4=84=E6=96=B9]=20=E4=B8=AD?= =?UTF-8?q?=E5=8C=BB=E5=A4=84=E6=96=B9=E5=A4=B4=E4=BF=A1=E6=81=AF=EF=BC=88?= =?UTF-8?q?=E8=B4=B9=E7=94=A8=E6=80=A7=E8=B4=A8=E3=80=81=E9=A2=91=E6=AC=A1?= =?UTF-8?q?=E3=80=81=E5=A4=A9=E6=95=B0=E3=80=81=E4=BB=98=E6=95=B0=E7=AD=89?= =?UTF-8?q?=EF=BC=89=E5=9C=A8=E4=BF=9D=E5=AD=98=E5=B9=B6=E9=87=8D=E6=96=B0?= =?UTF-8?q?=E8=BF=9B=E5=85=A5=E5=90=8E=E5=9B=9E=E6=98=BE=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/tcm/tcmAdvice.vue | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/healthlink-his-ui/src/views/doctorstation/components/tcm/tcmAdvice.vue b/healthlink-his-ui/src/views/doctorstation/components/tcm/tcmAdvice.vue index 45a8480f6..4abc80ce9 100755 --- a/healthlink-his-ui/src/views/doctorstation/components/tcm/tcmAdvice.vue +++ b/healthlink-his-ui/src/views/doctorstation/components/tcm/tcmAdvice.vue @@ -656,6 +656,30 @@ async function getListInfo(addNewRow) { } prescription.prescriptionList = groupedData[groupId]; + + // 🔧 BugFix#669: 从分组数据的第一条提取处方头字段回显 + const firstItem = groupedData[groupId]?.[0]; + if (firstItem) { + if (firstItem.accountId !== undefined && firstItem.accountId !== null) { + prescription.accountId = firstItem.accountId; + } + if (firstItem.methodCode !== undefined && firstItem.methodCode !== null) { + prescription.methodCode = firstItem.methodCode; + } + if (firstItem.rateCode !== undefined && firstItem.rateCode !== null) { + prescription.rateCode = firstItem.rateCode; + } + if (firstItem.dispensePerDuration !== undefined && firstItem.dispensePerDuration !== null) { + prescription.dispensePerDuration = firstItem.dispensePerDuration; + } + if (firstItem.chineseHerbsDoseQuantity !== undefined && firstItem.chineseHerbsDoseQuantity !== null) { + prescription.chineseHerbsDoseQuantity = firstItem.chineseHerbsDoseQuantity; + } + if (firstItem.sufferingFlag !== undefined && firstItem.sufferingFlag !== null) { + prescription.sufferingFlag = firstItem.sufferingFlag; + } + } + return prescription; });