123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854 |
- import Vue from 'vue'
- import Router from 'vue-router'
-
- Vue.use(Router)
-
- /* Layout */
- import Layout from '@/views/layout/Layout'
-
- /** 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
- * 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 : {
- roles: ['admin','editor'] will control the page roles (you can set multiple roles)
- 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)
- }
- **/
- export const xt_constantRouterMap = [
- // { path: '/login', component: () => import('@/views/login/index'), hidden: true },
- { 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',
- children: [{
- path: '/home',
- component: () => import('@/xt_pages/home/index'),
- name: 'home',
- meta: { title: 'home', icon: 'dashboard', noCache: true }
- }]
- },
- {
- path: '/service',
- component: Layout,
- // redirect: '/service',
- hidden: true,
- is_menu: false,
-
- meta: { title: 'service', icon: 'shebei' },
- children: [{
- path: '/service',
- component: () => import('@/xt_pages/service/index'),
- hidden: true,
- is_menu: false,
- name: 'service',
- meta: { title: 'service', icon: 'shebei', noCache: true }
- }, {
- path: '/service/invoice',
- component: () => import('@/xt_pages/service/invoice'),
- hidden: true,
- is_menu: false,
- name: 'invoice',
- meta: { title: 'invoice', icon: 'shebei', noCache: true }
- }, {
- path: '/service/invoice/apply',
- component: () => import('@/xt_pages/service/invoiceApply'),
- hidden: true,
- is_menu: false,
- name: 'invoiceApply',
- meta: { title: 'invoiceApply', icon: 'shebei', noCache: true }
- },
- {
- path: '/servicePay',
- component: () => import('@/xt_pages/service/servicePay'),
- hidden: true,
- name: 'servicePay',
- meta: { title: 'servicePay' }
- },
- {
- path: '/payType',
- component: () => import('@/xt_pages/service/payType'),
- hidden: true,
- name: 'payType',
- meta: { title: 'payType' }
- },
- {
- path: '/weChatPay',
- component: () => import('@/xt_pages/service/weChatPay'),
- hidden: true,
- name: 'weChatPay',
- meta: { title: 'weChatPay' }
- },
- {
- path: '/service/completeOrder',
- component: () => import('@/xt_pages/service/completeOrder'),
- hidden: true,
- name: 'completeOrder',
- meta: { title: 'completeOrder' }
- },{
- path: '/service/buy',
- component: () => import('@/xt_pages/service/serviceOrder'),
- hidden: true,
- is_menu: false,
- name: 'serviceOrder',
- meta: { title: 'serviceOrder', icon: 'shebei', noCache: true }
- },{
- path: '/order',
- component: () => import('@/xt_pages/service/orderRecord'),
- hidden: true,
- is_menu: false,
- name: 'orderRecord',
- meta: { title: 'orderRecord', icon: 'shebei', noCache: true }
- },{
- path: '/service/recordList',
- component: () => import('@/xt_pages/service/serviceRecord'),
- hidden: true,
- is_menu: false,
- name: 'recordList',
- meta: { title: 'recordList', icon: 'shebei', noCache: true }
- }
- ]
- },
-
- // ////////////////////////////本地开始
- // {
- // path: 'statistics',
- // component: Layout,
- // redirect: '/statistics/index',
- // children: [{
- // path: '/statistics',
- // component: () => import('@/xt_pages/statistics/index'),
- // name: 'statistics',
- // meta: { title: 'statistics', icon: 'chart', noCache: true }
- // }]
- // },
- // {
- // path: '/sign',
- // component: Layout,
- // redirect: '/sign/index',
- // name: 'sign',
- // alwaysShow: true,
- // meta: { title: 'signWeight', icon: 'table' },
- // children: [
- // { path: '/sign/index', component: () => import('@/xt_pages/sign/index'), name: 'signWeight', meta: { title: 'signWeight' }}
- // ]
- // },
- // {
- // path: '/patients',
- // component: Layout,
- // redirect: 'noredirect',
- // name: 'User',
- // meta: {
- // title: 'user',
- // icon: 'bingren'
- // },
- // children: [
- // {
- // path: '/patients/patients',
- // component: () => import('@/xt_pages/user/patients'),
- // name: 'Patient',
- // meta: { title: 'patient', noCache: true }
- // },
- // {
- // path: '/patients/create',
- // component: () => import('@/xt_pages/user/createPatient'),
- // name: 'createPatient',
- // meta: { title: 'createPatient', noCache: true }
- // },
- // {
- // path: '/patients/patient/:id',
- // component: () => import('@/xt_pages/user/patientInfo'),
- // hidden: true,
- // is_menu: false,
- // name: 'patient Page',
- // meta: { title: 'patientPage', noCache: true }
- // },
- // {
- // path: '/patients/patient/:id/edit',
- // component: () => import('@/xt_pages/user/editPatient'),
- // hidden: true,
- // is_menu: false,
- // name: 'Edit Patient',
- // meta: { title: 'editPatient', noCache: true }
- // },
- // {
- // path: '/patients/patient/:id/dialysisSolution',
- // component: () => import('@/xt_pages/user/dialysisSolution'),
- // hidden: true,
- // is_menu: false,
- // name: 'dialysisSolution',
- // meta: { title: 'dialysisSolution', noCache: true }
- // },
- // {
- // path: '/patients/patient/:id/weight',
- // component: () => import('@/xt_pages/user/weight'),
- // hidden: true,
- // is_menu: false,
- // name: 'weight',
- // meta: { title: 'weight', noCache: true }
- // },
- // {
- // path: '/patients/patient/:id/dialysisRecord',
- // component: () => import('@/xt_pages/user/dialysisRecord'),
- // hidden: true,
- // is_menu: false,
- // name: 'dialysisRecord',
- // meta: { title: 'dialysisRecord', noCache: true }
- // },
- // {
- // path: '/patients/patient/:id/scheduling',
- // component: () => import('@/xt_pages/user/scheduling'),
- // hidden: true,
- // is_menu: false,
- // name: 'scheduling',
- // meta: { title: 'scheduling', noCache: true }
- // },
- // {
- // path: '/patients/patient/:id/doctorAdvice',
- // component: () => import('@/xt_pages/user/doctorAdvice'),
- // hidden: true,
- // is_menu: false,
- // name: 'doctorAdvice',
- // meta: { title: 'doctorAdvice', noCache: true }
- // },
- // {
- // path: '/patients/inspection',
- // component: () => import('@/xt_pages/user/inspection'),
- // hidden: true,
- // is_menu: false,
- // name: 'Inspection',
- // meta: { title: 'inspection', noCache: true }
- // },
- // {
- // path: '/patients/course',
- // component: () => import('@/xt_pages/user/courseOfDisease'),
- // hidden: true,
- // is_menu: false,
- // name: 'CourseOfDiseaseManage',
- // meta: { title: 'CourseOfDiseaseManage', noCache: true }
- // },
- // {
- // path: '/patients/rescue',
- // component: () => import('@/xt_pages/user/rescueRecord'),
- // hidden: true,
- // is_menu: false,
- // name: 'RescueRecord',
- // meta: { title: 'RescueRecord', noCache: true }
- // },
- // {
- // path: '/patients/patient/:id/proeducation',
- // component: () => import('@/xt_pages/user/proeducation'),
- // hidden: true,
- // is_menu: false,
- // name: 'proeducation',
- // meta: { title: 'proeducation', noCache: true }
- // }
- // ]
- // },
- // {
- // path: '/workforce',
- // component: Layout,
- // redirect: 'noredirect',
- // name: 'workforce',
- // meta: {
- // title: 'workforce',
- // icon: 'paiban'
- // },
- // children: [
- // {
- // path: '/workforce/appointment',
- // component: () => import('@/xt_pages/workforce/appointment'),
- // name: 'appointment',
- // meta: { title: 'appointment', noCache: true }
- // },
- // {
- // path: '/workforce/sign',
- // component: () => import('@/xt_pages/workforce/sign'),
- // hidden: true,
- // is_menu: false,
- // name: 'sign',
- // meta: { title: 'sign', noCache: true }
- // },
- // {
- // path: '/workforce/remind',
- // component: () => import('@/xt_pages/workforce/remind'),
- // name: 'remind',
- // meta: { title: 'remind', noCache: true }
- // },
- // {
- // path: "/workforce/template",
- // component: () => import("@/xt_pages/workforce/template"),
- // name: "workforce_template",
- // hidden: true,
- // is_menu: false,
- // meta: { title: 'workforce_template', noCache: true }
- // },
- // {
- // path: "/workforce/schedule/print",
- // component: () => import("@/xt_pages/workforce/schedule_print"),
- // name: "schedule_print",
- // hidden: true,
- // is_menu: false,
- // meta: { title: 'schedule_print', noCache: true }
- // },
- // ]
- // },
- // {
- // path: '/dialysis/',
- // component: Layout,
- // redirect: 'noredirect',
- // name: 'dialysis',
- // meta: {
- // title: 'dialysis',
- // icon: 'touxi'
- // },
- // children: [
- // { path: '/dialysis/dialysisrecord', component: () => import('@/xt_pages/dialysis/schedualPatient'), name: '透析记录', meta: { title: '透析记录' }},
- // {
- // path: '/dialysis/record/:id',
- // component: () => import('@/xt_pages/dialysis/dialysisPage'),
- // hidden: true,
- // is_menu: false,
- // name: 'paper',
- // meta: { title: 'paper', noCache: true }
- // },
- // {
- // path: '/dialysis/print',
- // component: () => import('@/xt_pages/dialysis/dialysisPrintOrder'),
- // hidden: true,
- // is_menu: false,
- // name: 'dialysisPrintOrder',
- // meta: { title: 'dialysisPrintOrder', noCache: true }
- // },
-
- // // { path: 'advice', component: () => import('@/xt_pages/dialysis/doctorAdvice'), name: 'advice', meta: { title: 'advice' }},
- // // { path: 'prepare', component: () => import('@/xt_pages/dialysis/dialysisPrepare'), name: 'prepare', meta: { title: 'prepare' }},
- // { path: '/dialysis/watch', component: () => import('@/xt_pages/dialysis/bloodPresssWatch'), name: 'watch', meta: { title: 'watch' }},
- // { path: '/dialysis/details', component: () => import('@/xt_pages/dialysis/details'), name: 'details', meta: { title: 'details' }},
- // {
- // path: '/dialysis/print/batch',
- // component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order'),
- // hidden: true,
- // is_menu: false,
- // name: 'dialysis_batch_print',
- // meta: { title: 'dialysis_batch_print', noCache: true }
- // },
- // ]
- // },
- // {
- // path: '/device',
- // component: Layout,
- // redirect: '/device/main',
- // name: 'device',
- // alwaysShow: true,
- // meta: { title: 'deviceManage', icon: 'shebei' },
- // children: [
- // { path: '/device/zones', component: () => import('@/xt_pages/device/zone_main'), name: 'deviceZoneManage', meta: { title: 'deviceZoneManage' }},
- // { path: '/device/groups', component: () => import('@/xt_pages/device/group_main'), name: 'deviceGroupManage', meta: { title: 'deviceGroupManage' }},
- // { path: '/device/numbers', component: () => import('@/xt_pages/device/number_main'), name: 'deviceNumberManage', meta: { title: 'deviceNumberManage' }},
- // { path: '/device/main', component: () => import('@/xt_pages/device/main'), name: 'dialysisMachineManage', meta: { title: 'dialysisMachineManage' }}
- // ]
- // },{
- // path: '/stock/',
- // component: Layout,
- // redirect: 'noredirect',
- // name: 'stockManage',
- // meta: {title: 'stockManage', icon: 'excel'},
- // children: [
- // {
- // path: '/stock/config',
- // component: () => import('@/xt_pages/stock/index'),
- // name: 'config',
- // meta: {title: 'config'},
- // children:[
-
- // {
- // path: 'manufacturer',
- // component: () => import('@/xt_pages/stock/config/manufacturer'),
- // name: 'manufacturer',
- // meta: {title: 'manufacturer'}
- // },
- // {
- // path: 'dealer',
- // component: () => import('@/xt_pages/stock/config/dealer'),
- // name: 'dealer',
- // meta: {title: 'dealer'}
- // },
- // {
- // path: 'type',
- // component: () => import('@/xt_pages/stock/config/goodType'),
- // name: 'goodType',
- // meta: {title: 'goodType'}
- // },
-
- // {
- // path: 'info',
- // component: () => import('@/xt_pages/stock/config/goodInfo'),
- // name: 'goodInfo',
- // meta: {title: 'goodInfo'}
- // },
- // ]
- // },
-
- // {
- // path: '/stock/in',
- // component: () => import('@/xt_pages/stock/stockIn'),
- // name: 'stockIn',
- // meta: {title: 'stockIn',noCache: true }
-
- // },
-
- // {
- // path: '/stock/out',
- // component: () => import('@/xt_pages/stock/stockOut'),
- // name: 'stockOut',
- // meta: {title: 'stockOut'}
- // },{
- // path: '/stock/query',
- // component: () => import('@/xt_pages/stock/stockQuery'),
- // name: 'stockQuery',
- // meta: {title: 'stockQuery'}
- // },{
- // path: '/stock/in/add',
- // component: () => import('@/xt_pages/stock/addStockIn'),
- // name: 'addStockIn',
- // hidden: true,
- // is_menu: false,
- // meta: {title: 'addStockIn',noCache: true}
- // }, {
- // path: '/stock/out/add',
- // component: () => import('@/xt_pages/stock/addStockOut'),
- // name: 'addStockOut',
- // hidden: true,
- // is_menu: false,
- // meta: {title: 'addStockOut',noCache: true }
- // },{
- // path: '/stock/return',
- // component: () => import('@/xt_pages/stock/salesReturn'),
- // name: 'salesReturn',
- // hidden: true,
- // is_menu: false,
- // meta: {title: 'salesReturn'}
- // },{
- // path: '/stock/return/record',
- // component: () => import('@/xt_pages/stock/salesReutrnRecord'),
- // name: 'salesReutrnRecord',
- // hidden: true,
- // is_menu: false,
- // meta: {title: 'salesReutrnRecord'}
- // },{
- // path: '/stock/warehouse/record',
- // component: () => import('@/xt_pages/stock/warehouseRecord'),
- // name: 'warehouseRecord',
- // hidden: true,
- // is_menu: false,
- // meta: {title: 'warehouseRecord'}
- // },{
- // path: '/stock/cancel/',
- // component: () => import('@/xt_pages/stock/cancelStock'),
- // name: 'cancelStock',
- // hidden: true,
- // is_menu: false,
- // meta: {title: 'cancelStock'}
- // }, {
- // path: '/stock/cancel/record',
- // component: () => import('@/xt_pages/stock/cancelStockRecord'),
- // name: 'cancelStockRecord',
- // hidden: true,
- // is_menu: false,
- // meta: {title: 'cancelStockRecord'}
- // }, {
- // path: '/stock/out/record',
- // component: () => import('@/xt_pages/stock/stockOutRecord'),
- // name: 'stockOutRecord',
- // hidden: true,
- // is_menu: false,
- // meta: {title: 'stockOutRecord'}
- // },
- // ]
- // },
- // {
- // path: '/data/',
- // component: Layout,
- // redirect: 'noredirect',
- // name: 'data',
- // meta: { title: 'data_dictionary', icon: 'excel' },
- // children: [
- // { path: '/data/dictionary', component: () => import('@/xt_pages/data/index'), name: 'dictionary', meta: { title: 'field_config' }},
- // { path: '/data/template', component: () => import('@/xt_pages/data/template'), name: 'template', meta: { title: 'template' }},
- // { path: '/data/druguse', component: () => import('@/xt_pages/data/druguseTemplate'), name: 'druguse', meta: { title: 'druguse' }}
- // ]
- // }
- // /////////////本地要end/
- ]
-
- export default new Router({
- // mode: 'history', // require service support
- scrollBehavior: () => ({ y: 0 }),
- routes: xt_constantRouterMap
- })
-
- export const xt_asyncRouterMap = [
- // //////////////////////////////////线在开始
- {
- path: '/patients',
- component: Layout,
- redirect: 'noredirect',
- name: 'User',
- alwaysShow: true,
- meta: {
- title: 'user',
- icon: 'bingren'
- },
- children: [
- {
- path: '/patients/patients',
- component: () => import('@/xt_pages/user/patients'),
- name: 'Patient',
- meta: { title: 'patient', noCache: true }
- },
- {
- path: '/patients/create',
- component: () => import('@/xt_pages/user/createPatient'),
- name: 'createPatient',
- meta: { title: 'createPatient', noCache: true }
- },
- {
- path: '/patients/patient/:id',
- component: () => import('@/xt_pages/user/patientInfo'),
- hidden: true,
- is_menu: false,
- name: 'patient Page',
- meta: { title: 'patientPage', noCache: true }
- },
- {
- path: '/patients/patient/:id/edit',
- component: () => import('@/xt_pages/user/editPatient'),
- hidden: true,
- is_menu: false,
- name: 'Edit Patient',
- meta: { title: 'editPatient', noCache: true }
- },
- {
- path: '/patients/patient/:id/dialysisSolution',
- component: () => import('@/xt_pages/user/dialysisSolution'),
- hidden: true,
- is_menu: false,
- name: 'dialysisSolution',
- meta: { title: 'dialysisSolution', noCache: true }
- },
- {
- path: '/patients/patient/:id/weight',
- component: () => import('@/xt_pages/user/weight'),
- hidden: true,
- is_menu: false,
- name: 'weight',
- meta: { title: 'weight', noCache: true }
- },
- {
- path: '/patients/patient/:id/dialysisRecord',
- component: () => import('@/xt_pages/user/dialysisRecord'),
- hidden: true,
- is_menu: false,
- name: 'dialysisRecord',
- meta: { title: 'dialysisRecord', noCache: true }
- },
- {
- path: '/patients/patient/:id/scheduling',
- component: () => import('@/xt_pages/user/scheduling'),
- hidden: true,
- is_menu: false,
- name: 'scheduling',
- meta: { title: 'scheduling', noCache: true }
- },
- {
- path: '/patients/patient/:id/doctorAdvice',
- component: () => import('@/xt_pages/user/doctorAdvice'),
- hidden: true,
- is_menu: false,
- name: 'doctorAdvice',
- meta: { title: 'doctorAdvice', noCache: true }
- },
- {
- path: '/patients/inspection',
- component: () => import('@/xt_pages/user/inspection'),
- hidden: true,
- is_menu: false,
- name: 'Inspection',
- meta: { title: 'inspection', noCache: true }
- },
- {
- path: '/patients/course',
- component: () => import('@/xt_pages/user/courseOfDisease'),
- hidden: true,
- is_menu: false,
- name: 'CourseOfDiseaseManage',
- meta: { title: 'CourseOfDiseaseManage', noCache: true }
- },
- {
- path: '/patients/rescue',
- component: () => import('@/xt_pages/user/rescueRecord'),
- hidden: true,
- is_menu: false,
- name: 'RescueRecord',
- meta: { title: 'RescueRecord', noCache: true }
- },
- {
- path: '/patients/patient/:id/proeducation',
- component: () => import('@/xt_pages/user/proeducation'),
- hidden: true,
- is_menu: false,
- name: 'proeducation',
- meta: { title: 'proeducation', noCache: true }
- }
- ]
- },
- {
- path: '/workforce',
- component: Layout,
- redirect: 'noredirect',
- name: 'workforce',
- alwaysShow: true,
- meta: {
- title: 'workforce',
- icon: 'paiban'
- },
- children: [
- {
- path: '/workforce/appointment',
- component: () => import('@/xt_pages/workforce/appointment'),
- name: 'appointment',
- meta: { title: 'appointment', noCache: true }
- },
- {
- path: '/workforce/sign',
- component: () => import('@/xt_pages/workforce/sign'),
- hidden: true,
- is_menu: false,
- name: 'sign',
- meta: { title: 'sign', noCache: true }
- },
- {
- path: '/workforce/remind',
- component: () => import('@/xt_pages/workforce/remind'),
- name: 'remind',
- meta: { title: 'remind', noCache: true }
- },
- {
- path: "/workforce/template",
- component: () => import("@/xt_pages/workforce/template"),
- name: "workforce_template",
- hidden: true,
- is_menu: false,
- meta: { title: 'workforce_template', noCache: true }
- },
- {
- path: "/workforce/schedule/print",
- component: () => import("@/xt_pages/workforce/schedule_print"),
- name: "schedule_print",
- hidden: true,
- is_menu: false,
- meta: { title: 'schedule_print', noCache: true }
- },
- ]
- },
- {
- path: '/dialysis/',
- component: Layout,
- redirect: 'noredirect',
- name: 'dialysis',
- alwaysShow: true,
- meta: {
- title: 'dialysis',
- icon: 'touxi'
- },
- children: [
- { path: '/dialysis/dialysisrecord', component: () => import('@/xt_pages/dialysis/schedualPatient'), name: '透析记录', meta: { title: '透析记录' }},
- {
- path: '/dialysis/record/:id',
- component: () => import('@/xt_pages/dialysis/dialysisPage'),
- hidden: true,
- is_menu: false,
- name: 'paper',
- meta: { title: 'paper', noCache: true }
- },
- {
- path: '/dialysis/print',
- component: () => import('@/xt_pages/dialysis/dialysisPrintOrder'),
- hidden: true,
- is_menu: false,
- name: 'dialysisPrintOrder',
- meta: { title: 'dialysisPrintOrder', noCache: true }
- },
-
- // { path: 'advice', component: () => import('@/xt_pages/dialysis/doctorAdvice'), name: 'advice', meta: { title: 'advice' }},
- // { path: 'prepare', component: () => import('@/xt_pages/dialysis/dialysisPrepare'), name: 'prepare', meta: { title: 'prepare' }},
- { path: '/dialysis/watch', component: () => import('@/xt_pages/dialysis/bloodPresssWatch'), name: 'watch', meta: { title: 'watch' }},
- { path: '/dialysis/details', component: () => import('@/xt_pages/dialysis/details'), name: 'details', meta: { title: 'details' }, is_menu: false,},
- {
- path: '/dialysis/print/batch',
- component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order'),
- hidden: true,
- is_menu: false,
- name: 'dialysis_batch_print',
- meta: { title: 'dialysis_batch_print', noCache: true }
- },
- ]
- },
- {
- path: '/device',
- component: Layout,
- redirect: '/device/main',
- name: 'device',
- alwaysShow: true,
- meta: { title: 'deviceManage', icon: 'shebei' },
- children: [
- { path: '/device/zones', component: () => import('@/xt_pages/device/zone_main'), name: 'deviceZoneManage', meta: { title: 'deviceZoneManage' }},
- { path: '/device/groups', component: () => import('@/xt_pages/device/group_main'), name: 'deviceGroupManage', meta: { title: 'deviceGroupManage' }},
- { path: '/device/numbers', component: () => import('@/xt_pages/device/number_main'), name: 'deviceNumberManage', meta: { title: 'deviceNumberManage' }},
- { path: '/device/main', component: () => import('@/xt_pages/device/main'), name: 'dialysisMachineManage', meta: { title: 'dialysisMachineManage' }}
- ]
- },{
- path: '/stock/',
- component: Layout,
- redirect: 'noredirect',
- name: 'stockManage',
- meta: {title: 'stockManage', icon: 'nested'},
- children: [
- {
- path: '/stock/in',
- component: () => import('@/xt_pages/stock/stockIn'),
- name: 'stockIn',
- meta: {title: 'stockIn',noCache: true }
-
- },
-
- {
- path: '/stock/out',
- component: () => import('@/xt_pages/stock/stockOut'),
- name: 'stockOut',
- meta: {title: 'stockOut',noCache: true}
- },{
- path: '/stock/query',
- component: () => import('@/xt_pages/stock/stockQuery'),
- name: 'stockQuery',
- meta: {title: 'stockQuery',noCache: true}
- },
- {
- path: '/stock/config',
- component: () => import('@/xt_pages/stock/index'),
- name: 'config',
- meta: {title: 'config'},
- },{
- path: '/stock/in/add',
- component: () => import('@/xt_pages/stock/addStockIn'),
- name: 'addStockIn',
- hidden: true,
- is_menu: false,
- meta: {title: 'addStockIn',noCache: true}
- }, {
- path: '/stock/out/add',
- component: () => import('@/xt_pages/stock/addStockOut'),
- name: 'addStockOut',
- hidden: true,
- is_menu: false,
- meta: {title: 'addStockOut',noCache: true }
- },{
- path: '/stock/return',
- component: () => import('@/xt_pages/stock/salesReturn'),
- name: 'salesReturn',
- hidden: true,
- is_menu: false,
- meta: {title: 'salesReturn'}
- },{
- path: '/stock/return/record',
- component: () => import('@/xt_pages/stock/salesReutrnRecord'),
- name: 'salesReutrnRecord',
- hidden: true,
- is_menu: false,
- meta: {title: 'salesReutrnRecord'}
- },{
- path: '/stock/warehouse/record',
- component: () => import('@/xt_pages/stock/warehouseRecord'),
- name: 'warehouseRecord',
- hidden: true,
- is_menu: false,
- meta: {title: 'warehouseRecord'}
- },{
- path: '/stock/cancel/',
- component: () => import('@/xt_pages/stock/cancelStock'),
- name: 'cancelStock',
- hidden: true,
- is_menu: false,
- meta: {title: 'cancelStock'}
- }, {
- path: '/stock/cancel/record',
- component: () => import('@/xt_pages/stock/cancelStockRecord'),
- name: 'cancelStockRecord',
- hidden: true,
- is_menu: false,
- meta: {title: 'cancelStockRecord'}
- }, {
- path: '/stock/out/record',
- component: () => import('@/xt_pages/stock/stockOutRecord'),
- name: 'stockOutRecord',
- hidden: true,
- is_menu: false,
- meta: {title: 'stockOutRecord'}
- },
- ]
- },
- {
- path: 'statistics',
- component: Layout,
- redirect: '/statistics/index',
- children: [{
- path: '/statistics',
- component: () => import('@/xt_pages/statistics/index'),
- name: 'statistics',
- meta: { title: 'statistics', icon: 'chart', noCache: true }
- }]
- },
- {
- path: '/data/',
- component: Layout,
- redirect: 'noredirect',
- name: 'data',
- meta: { title: 'data_dictionary', icon: 'excel' },
- children: [
- { path: '/data/dictionary', component: () => import('@/xt_pages/data/index'), name: 'dictionary', meta: { title: 'field_config' }},
- { path: '/data/template', component: () => import('@/xt_pages/data/template'), name: 'template', meta: { title: 'template' }},
- { path: '/data/druguse', component: () => import('@/xt_pages/data/druguseTemplate'), name: 'druguse', meta: { title: 'druguse' }}
- ]
- },
- // /////////////////////////////////////线在end
- {
- path: '/role',
- component: Layout,
- redirect: '/role/admin/manage',
- name: 'role',
- alwaysShow: true,
- meta: { title: 'permissionManage', icon: 'table' },
- children: [
- { path: '/role/admin/manage', component: () => import('@/xt_pages/role/admin'), name: 'adminManage', meta: { title: 'adminManage' }},
- { path: '/role/manage', component: () => import('@/xt_pages/role/role'), name: 'roleManage', meta: { title: 'roleManage' }},
- { path: '/role/admin/create', component: () => import('@/xt_pages/role/CreateAdmin'), name: 'addAdmin', meta: { title: 'addAdmin', noCache: true }, hidden: true, is_menu: false },
- { path: '/role/admin/edit', component: () => import('@/xt_pages/role/EditAdmin'), name: 'editAdmin', meta: { title: 'editAdmin', noCache: true }, hidden: true, is_menu: false },
- { path: '/role/perview', component: () => import('@/xt_pages/role/EditPerview'), name: 'setupPerview', meta: { title: 'setupPerview', noCache: true }, hidden: true, is_menu: false },
- { path: '/role/admin/specialpermission', component: () => import('@/xt_pages/role/special_permission'), name: 'special_permission_manage', meta: { title: 'special_permission_manage' }},
- ]
- }
- ]
|