Fix Bug #498: 补充修复结果到分析报告
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -62,3 +62,17 @@ public R<?> getTestResult(Long encounterId) {
|
|||||||
| 撤回 | withdrawRequestForm → POST /withdraw | withdrawRequestForm (验证status=2) | ✅ |
|
| 撤回 | withdrawRequestForm → POST /withdraw | withdrawRequestForm (验证status=2) | ✅ |
|
||||||
| 打印 | 前端 window.open 打印 | 无后端依赖 | ✅ |
|
| 打印 | 前端 window.open 打印 | 无后端依赖 | ✅ |
|
||||||
| 看报告 | getTestResult → GET /test-result | getTestResult(encounterId) | ❌ 参数名不匹配 |
|
| 看报告 | getTestResult → GET /test-result | getTestResult(encounterId) | ❌ 参数名不匹配 |
|
||||||
|
|
||||||
|
## 修复结果:✅ 成功(commit 3a928afb),2行改动
|
||||||
|
|
||||||
|
### 修复内容
|
||||||
|
`examineApplication.vue:920` - 将 `handleViewReport` 中的请求参数从 `prescriptionNo` 改为 `encounterId`:
|
||||||
|
```diff
|
||||||
|
- const res = await getTestResult({ prescriptionNo: row.prescriptionNo });
|
||||||
|
+ const res = await getTestResult({ encounterId: row.encounterId || patientInfo.value?.encounterId });
|
||||||
|
```
|
||||||
|
|
||||||
|
### 说明
|
||||||
|
- 操作列的动态按钮逻辑(修改/删除/撤回/打印/看报告)已在之前的提交中完整实现
|
||||||
|
- 本修复解决了"看报告"功能因参数名不匹配导致始终返回空数据的问题
|
||||||
|
- 其余操作(修改/删除/撤回/打印)的后端接口参数均正确匹配
|
||||||
|
|||||||
Reference in New Issue
Block a user