fix(#626): 请修复 Bug #626:【门诊医生工作站-待写病历】操作字段的列表下的按钮功能未实现

根因:
- **

修复:
- `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`  无语法错误
This commit is contained in:
2026-05-31 11:15:02 +08:00
parent c74e7395ea
commit 4cff77f95c

View File

@@ -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'),