import type { Route } from '@/global' // 业务管理 const Layout = () => import('@/layouts/index.vue') const routes: Route.recordRaw[] = [ { path: '/businessManage', component: Layout, redirect: '/businessManage/bench', name: 'BussinessBench', meta: { title: '工作台', icon: 'ep:key', auth: '/business/bench', }, children: [ { path: 'bench', name: 'BusinessBenchPage', component: () => import('@/views/business/bench/bench.vue'), meta: { title: '工作台', auth: '/business/bench', sidebar: false, breadcrumb: true, activeMenu: '/businessManage', }, }, ], }, { path: '/schedule', component: Layout, redirect: '/schedule/orderList', name: 'Schedule', meta: { title: '业务调度', icon: 'ep:key', auth: '/schedule', }, children: [ { path: 'orderList', name: 'OrderList', component: () => import('@/views/business/schedule/order/orderList.vue'), meta: { title: '委托书', icon: 'ep:key', auth: '/schedule/orderList', }, }, { path: 'order/:type/:id?/:status?', name: 'OrderDetail', component: () => import('@/views/business/schedule/order/orderEdit.vue'), meta: { title: '委托书详情', icon: 'ep:key', sidebar: false, breadcrumb: true, activeMenu: '/schedule/orderList', }, }, { path: 'interchangeList', name: 'InterchangeList', component: () => import('@/views/business/schedule/interchange/interchangeList.vue'), meta: { title: '设备收发', icon: 'ep:key', auth: '/schedule/interchangeList', }, }, { path: 'interchange/:type/:id?', name: 'InterchangeDetail', component: () => import('@/views/business/schedule/interchange/interchangeDetail.vue'), meta: { title: '设备收发详情', icon: 'ep:key', sidebar: false, breadcrumb: true, activeMenu: '/schedule/interchangeList', }, }, { path: 'receiptList', name: 'InterchangeReceiptList', component: () => import('@/views/business/schedule/interchangeReceipt/receiptList.vue'), meta: { title: '设备交接单', icon: 'ep:key', auth: '/schedule/receiptList', }, }, { path: 'receipt/:type/:id?', name: 'InterchangeReceiptDetail', component: () => import('@/views/business/schedule/interchangeReceipt/receiptEdit.vue'), meta: { title: '设备交接单详情', icon: 'ep:key', sidebar: false, breadcrumb: true, activeMenu: '/schedule/receiptList', }, }, { path: 'taskList', name: 'TaskList', component: () => import('@/views/business/schedule/task/taskList.vue'), meta: { title: '任务分发', icon: 'ep:key', auth: '/schedule/taskList', }, }, { path: 'task/:role/:id?', name: 'taskDetail', component: () => import('@/views/business/schedule/task/taskEdit.vue'), meta: { title: '样品详情', icon: 'ep:key', sidebar: false, breadcrumb: true, activeMenu: '/schedule/taskList', }, }, { path: 'certPrintList', name: 'CerPrintList', component: () => import('@/views/business/schedule/certPrint/certList.vue'), meta: { title: '证书打印', icon: 'ep:key', auth: '/schedule/certPrint', }, }, { path: 'cert/detail/:id?', name: 'certPrintDetail', component: () => import('@/views/business/schedule/certPrint/certDetail.vue'), meta: { title: '证书详情', icon: 'ep:key', sidebar: false, breadcrumb: true, activeMenu: '/schedule/certPrintList', }, }, ], }, { path: '/lab', component: Layout, redirect: '/lab/myMeasureList', name: 'Lab', meta: { title: '实验室检测', icon: 'ep:key', auth: '/business/lab', }, children: [ { path: 'myMeasureList', name: 'MyMeasure', component: () => import('@/views/business/lab/myMeasure/myMeasureList.vue'), meta: { title: '我的检测', icon: 'ep:key', auth: '/lab/myMeasure', }, }, { path: 'deptMeasureList', name: 'DeptMeasureList', component: () => import('@/views/business/lab/deptMeasure/deptMeasureList.vue'), meta: { title: '部门检测', icon: 'ep:key', auth: '/lab/deptMeasureList', }, }, { path: 'reportOnCredentialsApproval', name: 'ReportOnCredentialsApproval', component: () => import('@/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue'), meta: { title: '证书报告', icon: 'ep:key', auth: '/lab/reportOnCredentialsApproval', }, }, { path: 'reportOnCredentialsApproval/:type/:id?', name: 'reportOnCredentialsAdd', component: () => import('@/views/business/lab/reportOnCredentials/components/reportOnCredentialsAdd.vue'), meta: { title: '证书报告详情', icon: 'ep:key', sidebar: false, breadcrumb: true, activeMenu: '/lab/reportOnCredentialsApproval', }, }, { path: 'primitiveLogList', name: 'PrimitiveLogList', component: () => import('@/views/business/lab/primitiveLog/primitiveLogList.vue'), meta: { title: '原始记录', icon: 'ep:key', auth: '/lab/primitiveLogList', }, }, { path: 'primitiveLogList/:type/:id?', name: 'PrimitiveLogAdd', component: () => import('@/views/business/lab/primitiveLog/primitveLogAdd.vue'), meta: { title: '原始记录详情', icon: 'ep:key', sidebar: false, breadcrumb: true, activeMenu: '/lab/primitiveLogList', }, }, { path: 'environmentalList', name: 'EnvironmentalList', component: () => import('@/views/business/lab/environmental/environmentalList.vue'), meta: { title: '环境记录单', icon: 'ep:key', auth: '/lab/environmentalList', }, }, { path: 'environmentalList/:type/:id?', name: 'EnvironmentalAdd', component: () => import('@/views/business/lab/environmental/environmentalAdd.vue'), meta: { title: '环境记录单详情', icon: 'ep:key', sidebar: false, breadcrumb: true, activeMenu: '/lab/environmentalList', }, }, ], }, ] export default routes