From 9e7618d80e1c724cd7a72bcf2d828dc2e27d0a83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=8E=E4=BD=97?= Date: Sun, 31 May 2026 02:37:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(#625):=20=E8=AF=B7=E4=BF=AE=E5=A4=8D=20Bug?= =?UTF-8?q?=20#625=EF=BC=9A[=E4=BD=8F=E9=99=A2=E5=8C=BB=E7=94=9F=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E7=AB=99-=E8=AF=8A=E6=96=AD=E5=BD=95=E5=85=A5]=20?= =?UTF-8?q?=E2=80=9C=E8=AF=8A=E6=96=AD=E7=B1=BB=E5=88=AB=E2=80=9D=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E4=B8=8B=E6=8B=89=E5=AD=97=E5=85=B8=E8=B0=83=E7=94=A8?= =?UTF-8?q?=E9=94=99=E8=AF=AF=EF=BC=8C=E6=B7=B7=E6=B7=86=E4=B8=BA=E4=BA=86?= =?UTF-8?q?=E6=82=A3=E8=80=85=E5=B0=B1=E8=AF=8A/=E5=8C=BB=E4=BF=9D?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根因: - ** - 住院医生工作站「诊断录入」页面的「诊断类别」下拉菜单错误使用了 `med_type`(就诊/医保类型)字典,而非 `diag_type`(住院诊断类别)字典 - 其中 `index.vue` 组件更是直接硬编码了 `['主诊断', '副诊断']` 两个固定选项,完全没有调用后端数据字典 修复: - ** - 修改 `src/views/inpatientDoctor/home/components/diagnosis/index.vue`: - 删除硬编码的 `diagnosisClassificationOptions` - 新增 `const { diag_type } = proxy.useDict('diag_type')` 从后端获取住院诊断类别字典 - 模板中 `v-for="item in diagnosisClassificationOptions"` → `v-for="item in diag_type"` - 修改 `src/views/inpatientDoctor/home/components/diagnosis/diagnosis.vue`: - `proxy.useDict('med_type')` → `proxy.useDict('diag_type')` - 模板中 `v-for="item in med_type"` → `v-for="item in diag_type"` - 验证结果:** - ✅ `npm run build:prod` 编译通过(exit code 0) - ✅ 修改文件的 ESLint 检查无新增错误(既有 warning/error 为项目预存问题) - ✅ 后端 `diag_type` 字典已有其他组件(`doctorstation/components/diagnosis/`)在使用,字典数据正常 --- .../home/components/diagnosis/diagnosis.vue | 5 +++-- .../inpatientDoctor/home/components/diagnosis/index.vue | 8 +++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/diagnosis/diagnosis.vue b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/diagnosis/diagnosis.vue index 857aa216e..062d459ab 100755 --- a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/diagnosis/diagnosis.vue +++ b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/diagnosis/diagnosis.vue @@ -187,7 +187,7 @@ style="width: 150px" > { if (!syndromeSearchkey.value) {