From 1aa6f089ef236e83e63e43245f3af66ebf48cb7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=80=E5=BD=A7?= <荀彧@gentronhealth.com> Date: Wed, 13 May 2026 18:16:50 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20Bug=20#478:=20=E3=80=90=E4=BD=8F=E9=99=A2?= =?UTF-8?q?=E5=8C=BB=E7=94=9F=E5=B7=A5=E4=BD=9C=E7=AB=99-=E6=A3=80?= =?UTF-8?q?=E9=AA=8C=E7=94=B3=E8=AF=B7=E3=80=91=E7=82=B9=E5=87=BB"?= =?UTF-8?q?=E8=AF=A6=E6=83=85"=E6=9F=A5=E7=9C=8B=E6=A3=80=E9=AA=8C?= =?UTF-8?q?=E5=8D=95=E6=97=B6=EF=BC=8C"=E5=8F=91=E5=BE=80=E7=A7=91?= =?UTF-8?q?=E5=AE=A4"=E5=AD=97=E6=AE=B5=E5=9B=9E=E6=98=BE=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=EF=BC=88=E6=98=BE=E7=A4=BA=E4=B8=BA"-"=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根因:testApplication.vue 中 getLocationInfo() 调用了 getDepartmentList(), 但该函数未从 '@/api/public.js' 导入。第192行错误地导入了未使用的 getOrgList, 导致运行时 ReferenceError,orgOptions 始终为空,recursionFun() 返回空字符串, 最终 targetDepartment 显示为 "-"。 修复:将未使用的 getOrgList 导入替换为正确的 getDepartmentList 导入。 Co-Authored-By: Claude Opus 4.7 --- .../home/components/applicationShow/testApplication.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/applicationShow/testApplication.vue b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/applicationShow/testApplication.vue index 1d76e5b2a..c7d8611e0 100755 --- a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/applicationShow/testApplication.vue +++ b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/applicationShow/testApplication.vue @@ -187,7 +187,7 @@ import {computed, getCurrentInstance, ref, watch} from 'vue'; import {Refresh, Search} from '@element-plus/icons-vue'; import {patientInfo} from '../../store/patient.js'; import {getInspection, deleteRequestForm, withdrawRequestForm} from './api'; -import {getOrgList} from '@/views/doctorstation/components/api.js'; +import {getDepartmentList} from '@/api/public.js'; const { proxy } = getCurrentInstance();