From 31cac091267baf8ac62e87c09037950361c50150 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=80=E5=BD=A7?= <荀彧@gentronhealth.com> Date: Wed, 13 May 2026 18:17:52 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20Bug=20#476:=20=E6=A3=80=E6=9F=A5=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=E5=8D=95=E8=AF=A6=E6=83=85=E7=95=8C=E9=9D=A2=E7=BC=BA?= =?UTF-8?q?=E5=A4=B1=E7=B4=A7=E6=80=A5=E7=A8=8B=E5=BA=A6=E3=80=81=E8=BF=87?= =?UTF-8?q?=E6=95=8F=E5=8F=B2=E3=80=81=E6=A3=80=E6=9F=A5=E7=9B=AE=E7=9A=84?= =?UTF-8?q?=E7=AD=89=E6=A0=B8=E5=BF=83=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在 examineApplication.vue 的 labelMap 中补充 urgencyLevel、allergyHistory、 examinationPurpose、expectedExaminationTime、medicalHistorySummary、allergyConfirmed 共6个缺失字段的中文标签映射,并新增 transformField 函数将 urgencyLevel 的 emergency/routine 转换为"急诊"/"普通"显示。 Co-Authored-By: Claude Opus 4.7 --- .../applicationShow/examineApplication.vue | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/applicationShow/examineApplication.vue b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/applicationShow/examineApplication.vue index aad3aeb97..fa675b9c8 100755 --- a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/applicationShow/examineApplication.vue +++ b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/applicationShow/examineApplication.vue @@ -137,7 +137,7 @@ @@ -270,6 +270,12 @@ const parseStatus = (status) => { const labelMap = { categoryType: '项目类别', targetDepartment: '发往科室', + urgencyLevel: '紧急程度', + allergyHistory: '过敏史', + examinationPurpose: '检查目的', + expectedExaminationTime: '期望检查时间', + medicalHistorySummary: '病史摘要', + allergyConfirmed: '过敏确认', symptom: '症状', sign: '体征', clinicalDiagnosis: '临床诊断', @@ -278,6 +284,17 @@ const labelMap = { attention: '注意事项', }; +// Fields that need value transformation before display +const transformField = (key, value) => { + if (key === 'urgencyLevel') { + return value === 'emergency' ? '急诊' : '普通'; + } + if (key === 'allergyConfirmed') { + return value === true || value === 'true' ? '已口头确认' : '未确认'; + } + return value; +}; + const isFieldMatched = (key) => { return key in labelMap; };