| | |
| | | // 动态路由,基于用户权限动态去加载 |
| | | export const dynamicRoutes = [ |
| | | { |
| | | // 原材料下单 |
| | | path: '/materialOrder', |
| | | component: Layout, |
| | | hidden: true, |
| | | permissions: ['business:order'], |
| | | children: [ |
| | | { |
| | | // 原材料下单-进行下单 |
| | | path: 'customsInspectionOrder', |
| | | component: () => import('@/views/business/materialOrder/customsInspectionOrder'), |
| | | name: 'CustomsInspectionOrder', |
| | | meta: { title: '进行原材料下单', activeMenu: '/business/materialOrder', keepAlive: true } |
| | | }, |
| | | { |
| | | // 原材料下单-查看详情 |
| | | path: 'customsInspectionView', |
| | | component: () => import('@/views/business/materialOrder/customsInspectionView'), |
| | | name: 'CustomsInspectionView', |
| | | meta: { title: '查看原材料下单详情', activeMenu: '/business/materialOrder', keepAlive: true } |
| | | }, |
| | | { |
| | | // 铜材料下单 |
| | | path: 'copperOrder', |
| | | component: () => import('@/views/business/materialOrder/copperOrder'), |
| | | name: 'CopperOrder', |
| | | meta: { title: '进行铜材料下单', activeMenu: '/business/materialOrder', keepAlive: true } |
| | | }, |
| | | { |
| | | // 铜材料下单-查看详情 |
| | | path: 'copperView', |
| | | component: () => import('@/views/business/materialOrder/copperView'), |
| | | name: 'CopperView', |
| | | meta: { title: '查看铜材料下单详情', activeMenu: '/business/materialOrder', keepAlive: true } |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | // 成品下单 |
| | | path: '/productOrder', |
| | | component: Layout, |
| | | hidden: true, |
| | | permissions: ['business:productOrder'], |
| | | children: [ |
| | | { |
| | | // 查看成品下单详情 |
| | | path: 'addView', |
| | | component: () => import('@/views/business/productOrder/components/addView.vue'), |
| | | name: 'AddView', |
| | | meta: { title: '查看成品下单详情', activeMenu: '/business/productOrder', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'inspectionView', |
| | | component: () => import('@/views/business/inspectionView/index.vue'), |
| | | name: 'ProductOrderInspectionView', |
| | | meta: { title: '原始记录', activeMenu: '/business/productOrder', keepAlive: false } |
| | | }, |
| | | { |
| | | // 进行下单-成品下单 |
| | | path: 'addOrder', |
| | | component: () => import('@/views/business/productOrder/components/addOrder.vue'), |
| | | name: 'AddOrder', |
| | | meta: { title: '进行成品下单', activeMenu: '/business/productOrder', keepAlive: true } |
| | | }, |
| | | { |
| | | // 外购下单-进行外购下单 |
| | | path: 'customsInspectionOrder', |
| | | component: () => import('@/views/business/productOrder/components/addOrder.vue'), |
| | | name: 'ProductOrderCustomsInspectionOrder', |
| | | meta: { title: '进行外购成品下单', activeMenu: '/business/outsourcingFinishProduct', keepAlive: true } |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | // 外购成品下单 |
| | | path: '/outsourcingFinishProduct', |
| | | component: Layout, |
| | | hidden: true, |
| | | permissions: ['business:outsourcingFinishProduct'], |
| | | children: [ |
| | | { |
| | | // 查看成品下单详情 |
| | | path: 'addView', |
| | | component: () => import('@/views/business/productOrder/components/addView.vue'), |
| | | name: 'OutsourcingAddView', |
| | | meta: { title: '查看成品下单详情', activeMenu: '/business/outsourcingFinishProduct', keepAlive: true } |
| | | }, |
| | | { |
| | | // 进行下单-成品下单 |
| | | path: 'addOrder', |
| | | component: () => import('@/views/business/productOrder/components/addOrder.vue'), |
| | | name: 'OutsourcingAddOrder', |
| | | meta: { title: '进行成品下单', activeMenu: '/business/outsourcingFinishProduct', keepAlive: true } |
| | | }, |
| | | { |
| | | // 外购下单-进行外购下单 |
| | | path: 'customsInspectionOrder', |
| | | component: () => import('@/views/business/materialOrder/customsInspectionOrder'), |
| | | name: 'OutsourcingCustomsInspectionOrder', |
| | | meta: { title: '进行外购成品下单', activeMenu: '/business/outsourcingFinishProduct', keepAlive: true } |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | // 检验任务 |
| | | path: '/inspectionTask', |
| | | component: Layout, |
| | | hidden: true, |
| | | permissions: ['business:inspection'], |
| | | children: [ |
| | | { |
| | | // 检验单详情 |
| | | path: 'inspection', |
| | | component: () => import('@/views/business/inspectionTask/inspection'), |
| | | name: 'inspection', |
| | | meta: { title: '检验单详情', activeMenu: '/business/inspectionTask', keepAlive: false } |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | // 原始记录 |
| | | path: '/inspectionView', |
| | | component: Layout, |
| | | hidden: true, |
| | | permissions: ['business:inspectionView'], |
| | | children: [ |
| | | { |
| | | path: 'index', |
| | | component: () => import('@/views/business/inspectionView/index'), |
| | | name: 'InspectionView', |
| | | meta: { title: '原始记录', activeMenu: '/business/inspectionTask', keepAlive: false } |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | path: '/customer', |
| | | component: Layout, |
| | | hidden: true, |
| | | permissions: ['customer:edit'] |
| | | }, |
| | | { |
| | | path: '/system/user-auth', |
| | | component: Layout, |
| | | hidden: true, |