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; });