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

根因:
- Bug #请修复 Bug #626 存在的问题

修复:
- 之前修复已完成,无需改动
- develop 上有两个相关提交:
- | 提交 | 时间 | 作者 | 修改文件 |
- |---|---|---|---|
- | `a139b790e` | 05-31 10:28 | 华佗 | `pendingEmr.vue` + `index.vue` |
- | `4cff77f95` | 05-31 11:15 | 华佗 | `src/router/index.js` |
- 第一次提交** 实现了核心功能:
- `pendingEmr.vue`:`handleWriteEmr` 通过 `router.push` 跳转并传递 `encounterId`;`handleViewPatient` 调用 `getPatientDetails` API 并弹窗展示
- `index.vue`:`getPatientList` 加载完成后自动根据 URL 的 `encounterId` 参数选中对应患者
- 第二次提交** 补了路由缺失:
- `router/index.js`:在 `/doctorstation` 下新增了 `index` 子路由,解决了跳转 404 问题
- ### 全链路 6 环分析
- | 环节 | 状态 | 说明 |
- |---|---|---|
- | ① 录入 |  正常 | 两个按钮均有 `@click.stop` 事件绑定(`pendingEmr.vue:105-118`) |
- | ② 保存 | N/A | 只读列表,无数据写入 |
- | ③ 查询 |  正常 | `listPendingEmr`(列表)、`getPatientDetails`(详情)API 均存在(`api.js:1239`) |
- | ④ 修改 | N/A | 不涉及 |
- | ⑤ 删除 | N/A | 不涉及 |
- | ⑥ 关联模块 |  正常 | 路由 `index` 子路由已注册(`router/index.js:297`);`index.vue:627-631` 接收 `encounterId` 并自动选中患者 |
- ### 验证结果
- | 检查项 | 结果 |
- |---|---|
- | `vue-tsc --noEmit` |  通过(已有错误均来自 `inpatientNurse` 等无关模块) |
- | `vite build` |  编译成功 |
- | `eslint pendingEmr.vue / index.vue / router/index.js` |  0 错误 0 警告 |
- ### 结论
- 📤 发起方:`pendingEmr.vue` 两个按钮功能完整
- 📥 接收方:`index.vue` 自动选中 + `router/index.js` 路由注册
This commit is contained in:
2026-06-01 06:22:12 +08:00
parent 3c33f3b7f6
commit e8f4feecd3
2 changed files with 42 additions and 39 deletions

View File

@@ -65,7 +65,7 @@
"typescript": "^5.9.3", "typescript": "^5.9.3",
"unplugin-auto-import": "0.17.1", "unplugin-auto-import": "0.17.1",
"unplugin-vue-setup-extend-plus": "1.0.0", "unplugin-vue-setup-extend-plus": "1.0.0",
"vite": "5.0.4", "vite": "^5.0.4",
"vite-plugin-compression": "0.5.1", "vite-plugin-compression": "0.5.1",
"vite-plugin-svg-icons": "2.0.1", "vite-plugin-svg-icons": "2.0.1",
"vite-plugin-vue-mcp": "^0.3.2", "vite-plugin-vue-mcp": "^0.3.2",
@@ -3093,41 +3093,6 @@
"url": "https://opencollective.com/vitest" "url": "https://opencollective.com/vitest"
} }
}, },
"node_modules/@vitest/mocker": {
"version": "4.1.2",
"resolved": "https://registry.npmmirror.com/@vitest/mocker/-/mocker-4.1.2.tgz",
"integrity": "sha512-Ize4iQtEALHDttPRCmN+FKqOl2vxTiNUhzobQFFt/BM1lRUTG7zRCLOykG/6Vo4E4hnUdfVLo5/eqKPukcWW7Q==",
"dev": true,
"dependencies": {
"@vitest/spy": "4.1.2",
"estree-walker": "^3.0.3",
"magic-string": "^0.30.21"
},
"funding": {
"url": "https://opencollective.com/vitest"
},
"peerDependencies": {
"msw": "^2.4.9",
"vite": "^6.0.0 || ^7.0.0 || ^8.0.0"
},
"peerDependenciesMeta": {
"msw": {
"optional": true
},
"vite": {
"optional": true
}
}
},
"node_modules/@vitest/mocker/node_modules/estree-walker": {
"version": "3.0.3",
"resolved": "https://registry.npmmirror.com/estree-walker/-/estree-walker-3.0.3.tgz",
"integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",
"dev": true,
"dependencies": {
"@types/estree": "^1.0.0"
}
},
"node_modules/@vitest/pretty-format": { "node_modules/@vitest/pretty-format": {
"version": "4.1.2", "version": "4.1.2",
"resolved": "https://registry.npmmirror.com/@vitest/pretty-format/-/pretty-format-4.1.2.tgz", "resolved": "https://registry.npmmirror.com/@vitest/pretty-format/-/pretty-format-4.1.2.tgz",
@@ -12671,9 +12636,10 @@
}, },
"node_modules/vite": { "node_modules/vite": {
"version": "5.0.4", "version": "5.0.4",
"resolved": "https://registry.npmmirror.com/vite/-/vite-5.0.4.tgz", "resolved": "https://registry.npmjs.org/vite/-/vite-5.0.4.tgz",
"integrity": "sha512-RzAr8LSvM8lmhB4tQ5OPcBhpjOZRZjuxv9zO5UcxeoY2bd3kP3Ticd40Qma9/BqZ8JS96Ll/jeBX9u+LJZrhVg==", "integrity": "sha512-RzAr8LSvM8lmhB4tQ5OPcBhpjOZRZjuxv9zO5UcxeoY2bd3kP3Ticd40Qma9/BqZ8JS96Ll/jeBX9u+LJZrhVg==",
"dev": true, "dev": true,
"license": "MIT",
"dependencies": { "dependencies": {
"esbuild": "^0.19.3", "esbuild": "^0.19.3",
"postcss": "^8.4.31", "postcss": "^8.4.31",
@@ -13336,6 +13302,33 @@
"node": ">=18" "node": ">=18"
} }
}, },
"node_modules/vitest/node_modules/@vitest/mocker": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-4.1.2.tgz",
"integrity": "sha512-Ize4iQtEALHDttPRCmN+FKqOl2vxTiNUhzobQFFt/BM1lRUTG7zRCLOykG/6Vo4E4hnUdfVLo5/eqKPukcWW7Q==",
"dev": true,
"license": "MIT",
"dependencies": {
"@vitest/spy": "4.1.2",
"estree-walker": "^3.0.3",
"magic-string": "^0.30.21"
},
"funding": {
"url": "https://opencollective.com/vitest"
},
"peerDependencies": {
"msw": "^2.4.9",
"vite": "^6.0.0 || ^7.0.0 || ^8.0.0"
},
"peerDependenciesMeta": {
"msw": {
"optional": true
},
"vite": {
"optional": true
}
}
},
"node_modules/vitest/node_modules/chokidar": { "node_modules/vitest/node_modules/chokidar": {
"version": "4.0.3", "version": "4.0.3",
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz",
@@ -13398,6 +13391,16 @@
"@esbuild/win32-x64": "0.27.7" "@esbuild/win32-x64": "0.27.7"
} }
}, },
"node_modules/vitest/node_modules/estree-walker": {
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",
"integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",
"dev": true,
"license": "MIT",
"dependencies": {
"@types/estree": "^1.0.0"
}
},
"node_modules/vitest/node_modules/fsevents": { "node_modules/vitest/node_modules/fsevents": {
"version": "2.3.3", "version": "2.3.3",
"resolved": "https://registry.npmmirror.com/fsevents/-/fsevents-2.3.3.tgz", "resolved": "https://registry.npmmirror.com/fsevents/-/fsevents-2.3.3.tgz",

View File

@@ -83,11 +83,11 @@
"typescript": "^5.9.3", "typescript": "^5.9.3",
"unplugin-auto-import": "0.17.1", "unplugin-auto-import": "0.17.1",
"unplugin-vue-setup-extend-plus": "1.0.0", "unplugin-vue-setup-extend-plus": "1.0.0",
"vite": "5.0.4", "vite": "^5.0.4",
"vite-plugin-compression": "0.5.1", "vite-plugin-compression": "0.5.1",
"vite-plugin-svg-icons": "2.0.1", "vite-plugin-svg-icons": "2.0.1",
"vite-plugin-vue-mcp": "^0.3.2", "vite-plugin-vue-mcp": "^0.3.2",
"vitest": "^4.0.18", "vitest": "^4.0.18",
"vue-tsc": "^3.1.8" "vue-tsc": "^3.1.8"
} }
} }