|
|
|
@ -1,16 +1,17 @@
|
|
|
|
|
import Layout from '@/layout'
|
|
|
|
|
|
|
|
|
|
const reagentRouter = [
|
|
|
|
|
{
|
|
|
|
|
path: '/reagent',
|
|
|
|
|
hidden: true,
|
|
|
|
|
redirect: '/reagent/mainoverview/index',
|
|
|
|
|
meta: { classification: 'reagent' }
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// path: '/reagent',
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// redirect: '/reagent/mainoverview/index',
|
|
|
|
|
// meta: { classification: 'reagent', module_code: 'MainOverview' }
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
path: '/reagent/mainoverview',
|
|
|
|
|
component: Layout,
|
|
|
|
|
meta: { classification: 'reagent' },
|
|
|
|
|
redirect: '/reagent/mainoverview/index',
|
|
|
|
|
meta: { classification: 'reagent', module_code: 'MainOverview' },
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: 'index',
|
|
|
|
@ -23,7 +24,8 @@ const reagentRouter = [
|
|
|
|
|
{
|
|
|
|
|
path: '/reagent/report',
|
|
|
|
|
component: Layout,
|
|
|
|
|
meta: { classification: 'reagent' },
|
|
|
|
|
redirect: '/reagent/report/index',
|
|
|
|
|
meta: { classification: 'reagent', module_code: 'DataReportIndex' },
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: 'index',
|
|
|
|
@ -92,7 +94,8 @@ const reagentRouter = [
|
|
|
|
|
{
|
|
|
|
|
path: '/reagent/warehousing',
|
|
|
|
|
component: Layout,
|
|
|
|
|
meta: { classification: 'reagent' },
|
|
|
|
|
redirect: '/reagent/warehousing/index',
|
|
|
|
|
meta: { classification: 'reagent', module_code: 'DataReportIndex' },
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: 'index',
|
|
|
|
@ -105,7 +108,8 @@ const reagentRouter = [
|
|
|
|
|
{
|
|
|
|
|
path: '/reagent/receiving',
|
|
|
|
|
component: Layout,
|
|
|
|
|
meta: { classification: 'reagent' },
|
|
|
|
|
redirect: '/reagent/receiving/index',
|
|
|
|
|
meta: { classification: 'reagent', module_code: 'DrugUseView' },
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: 'index',
|
|
|
|
@ -118,7 +122,8 @@ const reagentRouter = [
|
|
|
|
|
{
|
|
|
|
|
path: '/reagent/sendback',
|
|
|
|
|
component: Layout,
|
|
|
|
|
meta: { classification: 'reagent' },
|
|
|
|
|
redirect: '/reagent/sendback/index',
|
|
|
|
|
meta: { classification: 'reagent', module_code: 'DrugReturnView' },
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: 'index',
|
|
|
|
@ -131,7 +136,8 @@ const reagentRouter = [
|
|
|
|
|
{
|
|
|
|
|
path: '/reagent/weighing',
|
|
|
|
|
component: Layout,
|
|
|
|
|
meta: { classification: 'reagent' },
|
|
|
|
|
redirect: '/reagent/weighing/index',
|
|
|
|
|
meta: { classification: 'reagent', module_code: 'DrugWeigh' },
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: 'index',
|
|
|
|
@ -144,7 +150,8 @@ const reagentRouter = [
|
|
|
|
|
{
|
|
|
|
|
path: '/reagent/inventory',
|
|
|
|
|
component: Layout,
|
|
|
|
|
meta: { classification: 'reagent' },
|
|
|
|
|
redirect: '/reagent/inventory/index',
|
|
|
|
|
meta: { classification: 'reagent', module_code: 'StockTakingIndex' },
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: 'index',
|
|
|
|
@ -158,7 +165,7 @@ const reagentRouter = [
|
|
|
|
|
path: '/reagent/database',
|
|
|
|
|
component: Layout,
|
|
|
|
|
redirect: '/reagent/database/msds',
|
|
|
|
|
meta: { title: '化学品数据库', icon: '化学品数据库', classification: 'reagent' },
|
|
|
|
|
meta: { title: '化学品数据库', icon: '化学品数据库', classification: 'reagent', module_code: 'ChemicaDatabase' },
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: 'msds',
|
|
|
|
@ -177,7 +184,8 @@ const reagentRouter = [
|
|
|
|
|
{
|
|
|
|
|
path: '/reagent/management',
|
|
|
|
|
component: Layout,
|
|
|
|
|
meta: { classification: 'reagent' },
|
|
|
|
|
redirect: '/reagent/management/index',
|
|
|
|
|
meta: { classification: 'reagent', module_code: 'DrugIndex' },
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: 'index',
|
|
|
|
@ -190,7 +198,8 @@ const reagentRouter = [
|
|
|
|
|
{
|
|
|
|
|
path: '/reagent/client',
|
|
|
|
|
component: Layout,
|
|
|
|
|
meta: { classification: 'reagent' },
|
|
|
|
|
redirect: '/reagent/client/index',
|
|
|
|
|
meta: { classification: 'reagent', module_code: 'CabinetIndex' },
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: 'index',
|
|
|
|
@ -203,7 +212,8 @@ const reagentRouter = [
|
|
|
|
|
{
|
|
|
|
|
path: '/reagent/envrecord',
|
|
|
|
|
component: Layout,
|
|
|
|
|
meta: { classification: 'reagent' },
|
|
|
|
|
redirect: '/reagent/envrecord/index',
|
|
|
|
|
meta: { classification: 'reagent', module_code: 'HumitureIndex' },
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: 'index',
|
|
|
|
@ -216,7 +226,8 @@ const reagentRouter = [
|
|
|
|
|
{
|
|
|
|
|
path: '/reagent/form',
|
|
|
|
|
component: Layout,
|
|
|
|
|
meta: { classification: 'reagent' },
|
|
|
|
|
redirect: '/reagent/form/index',
|
|
|
|
|
meta: { classification: 'reagent', module_code: 'DrugCustomForm' },
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: 'index',
|
|
|
|
@ -226,19 +237,19 @@ const reagentRouter = [
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/reagent/buy',
|
|
|
|
|
component: Layout,
|
|
|
|
|
meta: { classification: 'reagent' },
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: 'index',
|
|
|
|
|
name: 'Buy',
|
|
|
|
|
component: () => import('@/views/reagent/buy/index'),
|
|
|
|
|
meta: { title: '请购', icon: '请购', classification: 'reagent' }
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// path: '/reagent/buy',
|
|
|
|
|
// component: Layout,
|
|
|
|
|
// meta: { classification: 'reagent' },
|
|
|
|
|
// children: [
|
|
|
|
|
// {
|
|
|
|
|
// path: 'index',
|
|
|
|
|
// name: 'Buy',
|
|
|
|
|
// component: () => import('@/views/reagent/buy/index'),
|
|
|
|
|
// meta: { title: '请购', icon: '请购', classification: 'reagent' }
|
|
|
|
|
// }
|
|
|
|
|
// ]
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
path: '/gotohome',
|
|
|
|
|
redirect: '/home',
|
|
|
|
|