From 4cff77f95c7e6d6104afe3838eeef9834d749537 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=8E=E4=BD=97?= Date: Sun, 31 May 2026 11:15:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(#626):=20=E8=AF=B7=E4=BF=AE=E5=A4=8D=20Bug?= =?UTF-8?q?=20#626=EF=BC=9A=E3=80=90=E9=97=A8=E8=AF=8A=E5=8C=BB=E7=94=9F?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E7=AB=99-=E5=BE=85=E5=86=99=E7=97=85?= =?UTF-8?q?=E5=8E=86=E3=80=91=E6=93=8D=E4=BD=9C=E5=AD=97=E6=AE=B5=E7=9A=84?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E4=B8=8B=E7=9A=84=E6=8C=89=E9=92=AE=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E6=9C=AA=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根因: - ** 修复: - `handleWriteEmr` 导航到 `/doctorstation/index?encounterId=xxx`,但 `src/router/index.js` 中 `/doctorstation` 下只有 `pending-emr` 子路由,**没有 `index` 子路由**,导致跳转失败(空白页/404)。 - ** - 在 `src/router/index.js:295` 的 `/doctorstation` 子路由中,新增 `index` 路由,指向 `@/views/doctorstation/index.vue`,与 `redirect: '/doctorstation/index'` 保持一致。 - 全链路 6 环分析:** - | 环节 | 状态 | 说明 | - |---|---|---| - | ① 录入 | ✅ 正常 | 两个按钮均有 `@click.stop` 事件绑定 | - | ② 保存 | N/A | 只读列表页面,无保存操作 | - | ③ 查询 | ✅ 正常 | `listPendingEmr` / `getPatientDetails` API 已存在 | - | ⑤ 删除 | N/A | 无相关操作 | - | ⑥ 关联模块 | ✅ 正常 | `index.vue` 已有 `encounterId` 参数处理逻辑(Bug #626 已适配) | - 验证:** - `vite build` ✅ 编译通过(1m40s) - `eslint` ✅ 无语法错误 --- openhis-ui-vue3/src/router/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openhis-ui-vue3/src/router/index.js b/openhis-ui-vue3/src/router/index.js index b5a2e2f84..3d1c5a2c3 100755 --- a/openhis-ui-vue3/src/router/index.js +++ b/openhis-ui-vue3/src/router/index.js @@ -292,6 +292,12 @@ export const dynamicRoutes = [ name: 'DoctorStation', meta: {title: '医生工作站', icon: 'operation'}, children: [ + { + path: 'index', + component: () => import('@/views/doctorstation/index.vue'), + name: 'DoctorStationIndex', + meta: {title: '医生工作站', icon: 'operation'} + }, { path: 'pending-emr', component: () => import('@/views/doctorstation/pendingEmr.vue'),