From 24ab98ae89bded07b2b76abcc9b81db2aba82c25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B6=E9=94=A6=E6=B6=9B?= <26050301730@qq.com> Date: Wed, 12 Nov 2025 13:51:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E7=A5=A8=E5=8F=B7=E7=A0=81=E7=BB=B4?= =?UTF-8?q?=E6=8A=A4=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- openhis-ui-vue3/src/router/index.js | 37 +- .../basicmanage/InvoiceManagement/index.vue | 1173 +++++++++++++++++ 2 files changed, 1208 insertions(+), 2 deletions(-) create mode 100644 openhis-ui-vue3/src/views/basicmanage/InvoiceManagement/index.vue diff --git a/openhis-ui-vue3/src/router/index.js b/openhis-ui-vue3/src/router/index.js index a9e33aa3..53c218e3 100644 --- a/openhis-ui-vue3/src/router/index.js +++ b/openhis-ui-vue3/src/router/index.js @@ -87,7 +87,37 @@ export const constantRoutes = [ ] // 动态路由,基于用户权限动态去加载 -export const dynamicRoutes = [ + export const dynamicRoutes = [ + { + path: '/basicmanage', + component: Layout, + redirect: '/basicmanage/invoice-management', + name: 'BasicManage', + meta: { title: '基础管理', icon: 'component' }, + children: [ + { + path: 'invoice-management', + component: () => import('@/views/basicmanage/InvoiceManagement/index.vue'), + name: 'invoice-management', + meta: { title: '发票管理' } + } + ] + }, + // 兼容系统业务管理路径 + { + path: '/system/ywgz', + component: Layout, + redirect: '/system/ywgz/InvoiceManagement', + hidden: true, + children: [ + { + path: 'InvoiceManagement', + component: () => import('@/views/basicmanage/InvoiceManagement/index.vue'), + name: 'SystemInvoiceManagement', + meta: { title: '发票管理' } + } + ] + }, { path: '/maintainSystem', component: Layout, @@ -312,9 +342,12 @@ export const dynamicRoutes = [ } ] +// 合并常量路由和动态路由,确保所有路由都能被访问 +const allRoutes = [...constantRoutes, ...dynamicRoutes]; + const router = createRouter({ history: createWebHistory(), - routes: constantRoutes, + routes: allRoutes, scrollBehavior(to, from, savedPosition) { if (savedPosition) { return savedPosition diff --git a/openhis-ui-vue3/src/views/basicmanage/InvoiceManagement/index.vue b/openhis-ui-vue3/src/views/basicmanage/InvoiceManagement/index.vue new file mode 100644 index 00000000..585f99bd --- /dev/null +++ b/openhis-ui-vue3/src/views/basicmanage/InvoiceManagement/index.vue @@ -0,0 +1,1173 @@ + + + + + \ No newline at end of file