From f515b90c432a8763e06d0c74f86c220a20869422 Mon Sep 17 00:00:00 2001 From: chenqi Date: Mon, 9 Mar 2026 23:26:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0=20doctorreport=20?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=E5=B9=B6=E4=BF=AE=E5=A4=8D=20inspection/repo?= =?UTF-8?q?rt=20=E7=BB=84=E4=BB=B6=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加 /inspection 路由组,包含 7 个子路由 - 添加 /doctorreport 快捷访问路由指向检查报告页面 - 修复 inspection/report/index.vue 组件错误: - 添加缺失的 getCurrentInstance 和 toRefs 导入 - 修复 resetQuery 函数中未定义的 dateRange 引用 - 清理未使用的 cancel 函数 修复后用户可通过 /doctorreport 或 /inspection/report 访问检查报告页面 --- openhis-ui-vue3/src/router/index.js | 73 ++++++++++++++++++- .../src/views/inspection/report/index.vue | 24 +++--- 2 files changed, 83 insertions(+), 14 deletions(-) diff --git a/openhis-ui-vue3/src/router/index.js b/openhis-ui-vue3/src/router/index.js index e518251b..dd2a65a3 100644 --- a/openhis-ui-vue3/src/router/index.js +++ b/openhis-ui-vue3/src/router/index.js @@ -244,11 +244,17 @@ export const dynamicRoutes = [ name: 'DoctorStation', meta: { title: '医生工作站', icon: 'operation' }, children: [ - { +{ path: 'pending-emr', component: () => import('@/views/doctorstation/pendingEmr.vue'), name: 'PendingEmr', meta: { title: '待写病历', icon: 'document', permissions: ['doctorstation:pending-emr:view'] } + }, + { + path: 'my-card-management', + component: () => import('@/views/doctorstation/mycardmanagement/index.vue'), + name: 'MyCardManagement', + meta: { title: '医生个人报卡管理', icon: 'document', permissions: ['doctorstation:my-card-management:view'] } } ] }, @@ -347,6 +353,71 @@ export const dynamicRoutes = [ meta: { title: '日结结算单管理', icon: 'document' } } ] + }, + { + path: '/inspection', + component: Layout, + redirect: '/inspection/report', + name: 'Inspection', + meta: { title: '检查管理', icon: 'inspection' }, + children: [ + { + path: 'report', + component: () => import('@/views/inspection/report/index.vue'), + name: 'Report', + meta: { title: '检查报告', icon: 'document' } + }, + { + path: 'sampleType', + component: () => import('@/views/inspection/sampleType/index.vue'), + name: 'SampleType', + meta: { title: '样本类型', icon: 'sample' } + }, + { + path: 'observation', + component: () => import('@/views/inspection/observation/index.vue'), + name: 'Observation', + meta: { title: '观测记录', icon: 'observation' } + }, + { + path: 'lisconfig', + component: () => import('@/views/inspection/lisconfig/index.vue'), + name: 'LisConfig', + meta: { title: 'LIS 配置', icon: 'setting' } + }, + { + path: 'instrument', + component: () => import('@/views/inspection/instrument/index.vue'), + name: 'Instrument', + meta: { title: '仪器管理', icon: 'instrument' } + }, + { + path: 'groupRec', + component: () => import('@/views/inspection/groupRec/index.vue'), + name: 'GroupRec', + meta: { title: '组合记录', icon: 'group' } + }, + { + path: 'sampleCollection', + component: () => import('@/views/inspection/sampleCollection/index.vue'), + name: 'SampleCollection', + meta: { title: '样本采集', icon: 'collection' } + } + ] + }, + // 医生报告页面 - 快捷访问路径 + { + path: '/doctorreport', + component: Layout, + hidden: true, + children: [ + { + path: '', + component: () => import('@/views/inspection/report/index.vue'), + name: 'DoctorReport', + meta: { title: '医生报告', activeMenu: '/inspection/report' } + } + ] } ]; diff --git a/openhis-ui-vue3/src/views/inspection/report/index.vue b/openhis-ui-vue3/src/views/inspection/report/index.vue index a6616add..221493b8 100644 --- a/openhis-ui-vue3/src/views/inspection/report/index.vue +++ b/openhis-ui-vue3/src/views/inspection/report/index.vue @@ -146,6 +146,7 @@