123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234 |
- import Vue from 'vue'
- import Router from 'vue-router'
- /* Layout */
- import Layout from '@/views/layout/Layout'
-
- import data_dict from './modules/data_dict'
- import device from './modules/device'
- import dialysis from './modules/dialysis'
- import patient from './modules/patient'
- import qcd from './modules/qcd'
- import Dialysisanalysis from './modules/Dialysisanalysis'
- import DialysisIndex from './modules/dialysisIndex'
- import DialysisLogIndex from './modules/logIndex'
- import stock from './modules/stock'
- import weight_sign from './modules/weight_sign'
- import workforce from './modules/workforce'
-
- import service from './modules/service'
- import org from './modules/org'
- import systems from './modules/systems'
- import data_upload from './modules/data_upload'
- import integration from './modules/integration'
- import medicalScheduling from './modules/medical_scheduling'
- import slow from './modules/slow'
- import scrm from './modules/scrm'
- import shop from './modules/shop'
- import selfPreparedMedicine from './modules/selfPreparedMedicine'
- import wareHouseManage from './modules/wareHouseManage'
- import inventoryTransfer from './modules/inventoryTransfer'
- import drugs from './modules/drugs'
- import outpatientRegistration from './modules/outpatientRegistration'
- import outpatientDoctorStation from './modules/outpatientDoctorStation'
- import outpatientCharges from './modules/outpatientCharges'
- import outpatientPharmacy from './modules/outpatientPharmacy'
- import hospitalRecord from './modules/hospitalRecord'
- import hospitalStation from './modules/hospitalStation'
- import hospitalCharges from './modules/hospitalCharges'
- import DepositManagement from './modules/DepositManagement'
- import hisTool from './modules/hisTool'
- import eleFaPiao from './modules/eleFaPiao'
-
- import supply from './modules/supply'
-
- import PatientDispensing from './modules/PatientDispensing'
- import DrugDispensing from './modules/DrugDispensing'
- import DispensingDetails from './modules/DispensingDetails'
- // import ConsumablesManagement from './modules/ConsumablesManagement'
- import MedicianManagement from './modules/MedicianManagement'
-
- // import outpatientRecord from './modules/outpatientRecord'
- import kuyiShopping from './modules/kuyiShopping'
- import createPatient from './modules/createPatient'
- import dialysisRecord from './modules/dialysisRecord'
- import otherManagement from './modules/otherManagement'
- import roleManage from './modules/roleManage'
- import dataDictionary from './modules/dataDictionary'
- import specialDictionary from './modules/specialDictionary'
- import dataTemplate from './modules/dataTemplate'
- import dataPrescription from './modules/dataPrescription'
- import dataDruguse from './modules/dataDruguse'
- import dataShowconfig from './modules/dataShowconfig'
- import dataPrint from './modules/dataPrint'
- import bedManagement from './modules/bedManagement'
- import dictionaryManagement from './modules/dictionaryManagement'
- import templateManagement from './modules/templateManagement'
- import DepartManage from './modules/DepartManage'
- import basicConfig from './modules/basicConfig'
-
- Vue.use(Router)
-
- /** note: submenu only apppear when children.length>=1
- * detail see https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html
- **/
-
- /**
- * hidden: true if `hidden:true` will not show in the sidebar(default is false)
- * alwaysShow: true if set true, will always show the root menu, whatever its child routes length
-
- // 详见 xt_permission.xt_filterAsyncRouter 函数的逻辑
- is_menu: false 加载路由时验证用的(即该路由是否要在侧边栏展示,需要展示的即需要),为 false 时表示该路由不需要进行权限验证
-
- * if not set alwaysShow, only more than one route under the children
- * it will becomes nested mode, otherwise not show the root menu
- * redirect: noredirect if `redirect:noredirect` will no redirct in the breadcrumb
- * name:'router-name' the name is used by <keep-alive> (must set!!!)
- * meta : {
- title: 'title' the name show in submenu and breadcrumb (recommend set)
- icon: 'svg-name' the icon show in the sidebar,
- noCache: true if true ,the page will no be cached(default is false)
-
- // 详见 xt_permission.xt_filterAsyncRouter 函数的逻辑
- is_menu: false 加载路由时验证用的,为 false 时表示该路由不需要进行权限验证
- hidden: false 加载路由时验证用的,is_menu 为true时才有作用,为 true 时表示该路由需要进行权限验证
- }
- **/
- var _constant_router_map = [{
- path: '/token/verify',
- component: () => import('@/xt_pages/index/verify_token'),
- hidden: true
- },
- {
- path: '/404',
- component: () => import('@/views/errorPage/404'),
- hidden: true
- },
- {
- path: '/401',
- component: () => import('@/views/errorPage/401'),
- hidden: true
- },
- {
- path: '',
- component: Layout,
- redirect: '/home',
- name: 'home',
- children: [{
- path: '/home',
- component: () => import('@/xt_pages/home/index'),
- name: 'home',
- meta: {
- title: 'home',
- icon: 'dashboard',
- noCache: true
- }
- }]
- },
-
- {
- path: '/kuyiShopping',
- component: Layout,
- name: 'kuyiShopping',
- redirct: '/kuyiShopping/index',
- children: [{
- path: '/kuyiShopping/index',
- component: () => import('@/xt_pages/kuyiShopping/index'),
- name: 'kuyiShopping',
- meta: {
- title: 'kuyiShopping',
- icon: 'kuyiShopping',
- noCache: true
- }
- }]
- },
- service
- // patient,
- // workforce,
- // weight_sign,
- // dialysis,
- // stock,
- // qcd,
- // data_dict,
- // device,
- // role,
- // org
- ]
-
- var _asy_router_map = [
- patient,
- createPatient,
- workforce,
- medicalScheduling,
- weight_sign,
- dialysisRecord,
- dialysis,
- stock,
- drugs,
- selfPreparedMedicine, // 自备药管理模块
- wareHouseManage, // 仓库管理模块
- DepositManagement, // 押金管理模块
- inventoryTransfer, // 库存调拨模块
- PatientDispensing, // 患者发药模块
- DrugDispensing, // 药房管理模块
- DispensingDetails, // 药房管理模块
- //ConsumablesManagement, // 药房管理模块
- MedicianManagement, // 药房管理模块
-
- otherManagement,
- qcd,
- device,
- org,
- data_upload,
- slow,
- scrm,
- shop,
- systems,
- DepartManage,
- roleManage,
- bedManagement,
- dictionaryManagement,
- templateManagement,
- // dataDictionary,
- // specialDictionary,
- dataTemplate,
- dataPrescription,
- dataDruguse,
- dataShowconfig,
- dataPrint,
- outpatientRegistration,
- outpatientDoctorStation,
- outpatientCharges,
- outpatientPharmacy,
- hospitalRecord,
- hospitalStation,
- hospitalCharges,
- hisTool,
- eleFaPiao,
- integration,
- basicConfig,
- supply,
- Dialysisanalysis,// 新菜单6.1
- DialysisIndex,
- DialysisLogIndex,
- ]
-
- var is_asy_router = process.env.NODE_ENV === 'production' // true; 设置为 true 强制进行路由验证
- if (!is_asy_router) {
- _constant_router_map = _constant_router_map.concat(_asy_router_map)
- _asy_router_map = []
- } else {
-
- }
-
- export const xt_constantRouterMap = _constant_router_map
- export const xt_asyncRouterMap = _asy_router_map
-
- export default new Router({
- // mode: 'history', // require service support
- scrollBehavior: () => ({
- y: 0
- }),
- routes: xt_constantRouterMap
- })
-
|