From 19ada4ace95b5f8fb85a99ac289b947ef3e56c84 Mon Sep 17 00:00:00 2001 From: wangjian963 <15215920+aprilry@user.noreply.gitee.com> Date: Thu, 22 Jan 2026 09:20:35 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E8=B0=83=E7=94=A8=E5=AD=97?= =?UTF-8?q?=E5=85=B8=E6=8E=A5=E5=8F=A3=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inspection/inspectionApplication.vue | 31 ------------------- 1 file changed, 31 deletions(-) diff --git a/openhis-ui-vue3/src/views/doctorstation/components/inspection/inspectionApplication.vue b/openhis-ui-vue3/src/views/doctorstation/components/inspection/inspectionApplication.vue index 241d8987..55cc219c 100644 --- a/openhis-ui-vue3/src/views/doctorstation/components/inspection/inspectionApplication.vue +++ b/openhis-ui-vue3/src/views/doctorstation/components/inspection/inspectionApplication.vue @@ -419,40 +419,10 @@ import {ElMessage, ElMessageBox} from 'element-plus' import {deleteInspectionApplication, getInspectionApplicationList, saveInspectionApplication} from '../api' import useUserStore from '@/store/modules/user.js' import {storeToRefs} from 'pinia' -import {listType} from "@/api/system/dict/type.js"; - -// const getCurrentDeptCode = async () => { -// // try { -// const res = await listType({ dictType: 'dept' }); // 按字典类型查询科室 -// console.log('【检验】获取科室字典数据:', res.data) -// deptOptions.value = res.data; -// console.log('【检验】科室字典数据:',deptOptions.value) - - // // 获取当前科室名称(来自患者信息) - // const currentDeptName = props.patientInfo?.organizationName; - // console.log('【检验】当前科室名称:', currentDeptName) - // - // // 根据当前科室名称查找对应的编码 - // const deptItem = res.data.find(item => item.dictLabel === currentDeptName); - // console.log('【检验】找到的科室名称:', deptItem) - // if (deptItem) { - // return deptItem.dictValue; // 返回科室编码 - // } else { - // console.warn(`未找到科室名称为 ${currentDeptName} 的对应编码`); - // return currentDeptName || ''; // 使用原始名称作为默认值,符合防御性编程原则 - // } - // } catch (error) { - // console.error('获取科室字典数据失败:', error); - // return ''; - // } -// } // 在 onMounted 中调用初始化函数 onMounted(async () => { await initData(); - // 设置当前科室编码 - // const currentDeptCode = await getCurrentDeptCode(); - // formData.applyDeptCode = currentDeptCode || ''; }) // Props @@ -474,7 +444,6 @@ const showForm = ref(false) const loading = ref(false) const total = ref(0) const leftActiveTab = ref('application') -const deptOptions = ref([]) // 用户信息store const userStore = useUserStore()