Compare commits

...

2 Commits

Author SHA1 Message Date
d70181f7d8 Fix Bug #537: [住院医生工作站] 冗余功能显示需在医生工作站页签中屏蔽汇总发药申请模块(仅修复代码,不改禅道状态和分配)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-18 10:06:29 +08:00
27d3b164cc Fix Bug #520: [住院医生工作站-检验申请] 检验申请列表点击详情按钮界面无响应
根因:getLocationInfo() 缺少 try-catch,当 getDepartmentList() API 失败时,
未捕获的异常向上传播导致 handleViewDetail 在设置 detailDialogVisible=true 前终止,
详情弹窗永远无法打开。

修复:为 getLocationInfo() 添加 try-catch 错误处理,API 失败时降级为空数组,
确保 handleViewDetail 的后续代码(设置 currentDetail 和打开弹窗)能正常执行。
与 examineApplication.vue 的已有修复保持一致。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-18 10:06:29 +08:00
2 changed files with 19 additions and 2 deletions

View File

@@ -66,3 +66,15 @@
- Lint检查: 无新增错误均为已有pre-existing warnings
**修复结果:✅ 成功纯删除死代码无新增逻辑0个新lint错误**
## 2026-05-18 第三次复核(代码审计确认无需改动)
经全面代码审计确认:
- `inpatientDoctor/home/index.vue` 标签页列表: 仅8个正常标签页住院病历、诊断录入、临床医嘱、检验申请、检查申请、手术申请、输血申请、报告查询无"汇总发药申请"
- `inpatientNurse/constants/navigation.js`: 6个护士导航项无"汇总发药申请"
- `openhis-ui-vue3` 全目录搜索 `汇总发药申请`: 仅1处API注释`drug/inpatientMedicationDispensing/components/api.js`,药房模块,非医生界面)
- 全目录搜索 `SummaryDrug`/`summaryDrug`: 0个匹配
- 路由表无 `medicine-summary`/`medicineSummary` 相关入口
- 工作树状态: clean无需额外提交
**结论: 修复已在之前3次提交bfe544cf + 4809b357 + e6a61ea5中完成并推送到远程当前代码无残留。无需任何额外改动。**

View File

@@ -409,8 +409,13 @@ const hasMatchedFields = computed(() => {
/** 查询科室 */
const getLocationInfo = async () => {
const res = await getDepartmentList();
orgOptions.value = res.data || [];
try {
const res = await getDepartmentList();
orgOptions.value = Array.isArray(res.data) ? res.data : [];
} catch (e) {
console.warn('科室列表加载失败:', e.message);
orgOptions.value = [];
}
};
const recursionFun = (targetDepartment) => {