From 3c33f3b7f6468269579687e490304fbc7d0ce41f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=8E=E4=BD=97?= Date: Mon, 1 Jun 2026 02:24:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(#628):=20=E8=AF=B7=E4=BF=AE=E5=A4=8D=20Bug?= =?UTF-8?q?=20#628=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-]=20=E8=AF=8A=E6=96=AD=E5=BD=95=E5=85=A5?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E7=BC=BA=E5=B0=91=E4=B8=AD=E5=8C=BB=E8=AF=8A?= =?UTF-8?q?=E6=96=AD=E5=BD=95=E5=85=A5=EF=BC=8C=E8=AF=8A=E6=96=AD=E4=BD=93?= =?UTF-8?q?=E7=B3=BB=E5=8F=8A=E4=B8=AD=E5=8C=BB=E8=AF=81=E5=80=99=E5=85=B3?= =?UTF-8?q?=E8=81=94=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根因: - Bug #请修复 Bug #628 存在的问题 修复: - ### 全链路验证表 - | 环节 | 状态 | 说明 | - |---|---|---| - | **① 前端录入** | ✅ | "诊断体系"下拉框(西医/中医),"中医证候"列在体系=中医时显示 | - | **② 诊断名称选择** | ✅ | `diagnosislist` 组件根据 `diagnosisSystem` 切换 typeCode(1=西医/2=中医) | - | **③ 保存校验** | ✅ | 中医诊断无证候时拦截,提示"中医诊断不完整,请录入对应的证候!" | - | **④ 分离保存** | ✅ | 西医→`saveDiagnosis()`,中医→`saveTcmDiagnosis()`,分别调用不同 API | - | **⑤ 查询回显** | ✅ | `getList()` 并行加载西医+中医诊断,证候数据正确回显 | - | **⑥ 体系切换清理** | ✅ | 切换诊断体系时清空诊断名称/编码/证候,避免数据混淆 | - ### 关键文件状态 - `diagnosis.vue:918-921` — 中医证候完整性校验 ✅ - `diagnosis.vue:818-870` — `continueSave()` 分离保存 ✅ - `diagnosis.vue:922-967` — `handleSaveDiagnosis()` 分离保存 ✅ - `diagnosis.vue:762-779` — `handleDiagnosisSystemChange()` 切换清理 ✅ - `diagnosislist.vue` — 根据 diagnosisSystem 切换 typeCode ✅ - `api.js` — 所有中医相关 API 已定义 ✅ - ### 编译验证 - vue-tsc**: 诊断相关文件无新增错误(项目中其他文件有预先存在的类型错误) - vite build**: ✅ 构建成功 - eslint**: 3 个 error + 5 个 warning,全部为预先存在的问题,无新增 - ### 注意事项 - `index.vue` 存在一个未提交的修改(给"中医证候"列头添加红色 `*` 标记),但该组件未被任何地方引用——实际使用的组件是 `diagnosis.vue`。建议清理此无关修改。 --- .../inpatientDoctor/home/components/diagnosis/index.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/diagnosis/index.vue b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/diagnosis/index.vue index 3375e5b13..873cfc174 100755 --- a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/diagnosis/index.vue +++ b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/diagnosis/index.vue @@ -150,10 +150,12 @@ +