| | |
| | | component: Layout, |
| | | redirect: '/basicSettings/organizationList', |
| | | name: '基础设置', |
| | | code: '1001', |
| | | meta: { code: '1001', title: '基础设置', icon: 'tree2' }, |
| | | code: '01', |
| | | meta: { code: '01', title: '基础设置', icon: 'tree2' }, |
| | | alwaysShow: true, // 当children只有一个时,也显示父菜单 |
| | | children: [ |
| | | { |
| | | path: 'organizationList', |
| | | name: 'organizationListCancel', |
| | | code: '1010', |
| | | code: '0101', |
| | | component: () => import('@/views/basicSettings/organizationList'), |
| | | meta: { code: '1010', title: '组织架构', icon: '', keepAlive: true } |
| | | meta: { code: '0101', title: '组织架构', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'postList', |
| | | name: 'personListCancel', |
| | | code: '0102', |
| | | component: () => import('@/views/basicSettings/postList'), |
| | | meta: { code: '0102', title: '岗位管理', icon: '', keepAlive: true } |
| | | }, { |
| | | path: 'groupList', |
| | | name: 'groupListCancel', |
| | | code: '0103', |
| | | component: () => import('@/views/basicSettings/groupList'), |
| | | meta: { code: '0103', title: '班组管理', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'personList', |
| | | name: 'personListCancel', |
| | | code: '1011', |
| | | code: '0104', |
| | | component: () => import('@/views/basicSettings/personList'), |
| | | meta: { code: '1011', title: '人员管理', icon: '', keepAlive: true } |
| | | }, { |
| | | path: 'postList', |
| | | name: 'personListCancel', |
| | | code: '1012', |
| | | component: () => import('@/views/basicSettings/postList'), |
| | | meta: { code: '1012', title: '岗位管理', icon: '', keepAlive: true } |
| | | meta: { code: '0104', title: '人员管理', icon: '', keepAlive: true } |
| | | }, { |
| | | path: 'roleList', |
| | | name: 'roleListCancel', |
| | | code: '1013', |
| | | code: '0105', |
| | | component: () => import('@/views/basicSettings/roleList'), |
| | | meta: { code: '1013', title: '角色管理', icon: '', keepAlive: true } |
| | | meta: { code: '0105', title: '角色管理', icon: '', keepAlive: true } |
| | | }, { |
| | | path: 'groupList', |
| | | name: 'groupListCancel', |
| | | code: '1014', |
| | | component: () => import('@/views/basicSettings/groupList'), |
| | | meta: { code: '1014', title: '班组管理', icon: '', keepAlive: true } |
| | | path: 'contactUnitList', |
| | | name: 'contactUnitListCancel', |
| | | code: '0106', |
| | | component: () => import('@/views/basicSettings/contactUnitList'), |
| | | meta: { code: '0106', title: '往来单位', icon: '', keepAlive: true } |
| | | }, { |
| | | path: 'warehouseList', |
| | | name: 'warehouseListCancel', |
| | | code: '0107', |
| | | component: () => import('@/views/basicSettings/warehouseList'), |
| | | meta: { code: '0107', title: '仓库设置', icon: '', keepAlive: true } |
| | | }, { |
| | | path: 'storageList', |
| | | name: 'storageListCancel', |
| | | code: '0108', |
| | | component: () => import('@/views/basicSettings/storageList'), |
| | | meta: { code: '0108', title: '库位设置', icon: '', keepAlive: true } |
| | | }, { |
| | | path: 'installLampList', |
| | | name: 'installLampListCancel', |
| | | code: '0109', |
| | | component: () => import('@/views/basicSettings/installLampList'), |
| | | meta: { code: '0109', title: '安灯设置', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'menuList', |
| | | name: 'menuListCancel', |
| | | code: '1015', |
| | | component: () => import('@/views/basicSettings/menuList'), |
| | | meta: { code: '1015', title: '菜单管理', icon: '', keepAlive: true } |
| | | path: 'powerDivider', |
| | | name: 'powerDividerCancel', |
| | | code: '0110', |
| | | component: () => import('@/views/basicSettings/powerDivider'), |
| | | meta: { code: '0110', title: '权限分配', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'roleDivider', |
| | | name: 'roleDividerCancel', |
| | | code: '0111', |
| | | hidden: true, |
| | | component: () => import('@/views/basicSettings/roleDivider'), |
| | | meta: { code: '0111', title: '角色分配', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'cronTime', |
| | | name: 'cronTimeCancel', |
| | | code: '0113', |
| | | hidden: true, |
| | | component: () => import('@/views/basicSettings/cronTime'), |
| | | meta: { code: '0113', title: '定时任务', icon: '', keepAlive: true } |
| | | } |
| | | |
| | | ] |
| | | }, |
| | | |
| | | { |
| | | path: '/materialManager', |
| | | component: Layout, |
| | | redirect: '/materialManager/unitList', |
| | | name: '物料管理', |
| | | code: '02', |
| | | meta: { code: '02', title: '物料管理', icon: 'table' }, |
| | | alwaysShow: true, // 当children只有一个时,也显示父菜单 |
| | | children: [ |
| | | { |
| | | path: 'unitList', |
| | | name: 'unitListCancel', |
| | | code: '0201', |
| | | component: () => import('@/views/materialManager/unitList'), |
| | | meta: { code: '0201', title: '计量单位', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'inventoryList', |
| | | name: 'inventoryListCancel', |
| | | code: '0202', |
| | | component: () => import('@/views/materialManager/inventoryList'), |
| | | meta: { code: '0202', title: '存货档案', icon: '', keepAlive: true } |
| | | }, { |
| | | path: 'materialList', |
| | | name: 'materialListCancel', |
| | | code: '0203', |
| | | component: () => import('@/views/materialManager/materialList'), |
| | | meta: { code: '0203', title: '物料清单', icon: '', keepAlive: true } |
| | | } |
| | | |
| | | ] |
| | | }, |
| | | |
| | | { |
| | | path: '/deviceManager', |
| | | component: Layout, |
| | | redirect: '/deviceManager/deviceType', |
| | | name: '设备管理', |
| | | code: '03', |
| | | meta: { code: '03', title: '设备管理', icon: 'example' }, |
| | | alwaysShow: true, |
| | | children: [ |
| | | { |
| | | path: 'deviceList', |
| | | name: 'deviceListCancel', |
| | | code: '0301', |
| | | component: () => import('@/views/deviceManager/deviceList'), |
| | | meta: { code: '0301', title: '设备清单', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'checkStandard', |
| | | name: 'checkStandardCancel', |
| | | code: '0302', |
| | | component: () => import('@/views/deviceManager/checkStandard'), |
| | | meta: { code: '0302', title: '点检标准', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'checkPosition', |
| | | name: 'checkPositionCancel', |
| | | code: '0303', |
| | | component: () => import('@/views/deviceManager/checkPosition'), |
| | | meta: { code: '0303', title: '点检部位', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'maintainStandard', |
| | | name: 'maintainStandardCancel', |
| | | code: '0304', |
| | | component: () => import('@/views/deviceManager/maintainStandard'), |
| | | meta: { code: '0304', title: '保养标准', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'maintainPosition', |
| | | name: 'maintainPositionCancel', |
| | | code: '0305', |
| | | component: () => import('@/views/deviceManager/maintainPosition'), |
| | | meta: { code: '0305', title: '保养部位', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'checkRecord', |
| | | name: 'checkRecordCancel', |
| | | code: '0306', |
| | | component: () => import('@/views/deviceManager/checkRecord'), |
| | | meta: { code: '0306', title: '点检记录', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'maintainRecord', |
| | | name: 'maintainRecordCancel', |
| | | code: '0307', |
| | | component: () => import('@/views/deviceManager/maintainRecord'), |
| | | meta: { code: '0307', title: '保养记录', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'repairRecord', |
| | | code: '0308', |
| | | name: 'repairRecordCancel', |
| | | component: () => import('@/views/deviceManager/repairRecord'), |
| | | meta: { code: '0308', title: '维修记录', icon: '', keepAlive: true } |
| | | } |
| | | ] |
| | | }, |
| | | |
| | | { |
| | | path: '/qualityManager', |
| | | component: Layout, |
| | | redirect: '/qualityManager/defectDefine', |
| | | name: '质量管理', |
| | | code: '04', |
| | | meta: { code: '04', title: '质量管理', icon: 'quality' }, |
| | | alwaysShow: true, |
| | | children: [ |
| | | { |
| | | path: 'defectDefine', |
| | | name: 'defectDefineCancel', |
| | | code: '0401', |
| | | component: () => import('@/views/qualityManager/defectDefine'), |
| | | meta: { code: '0401', title: '缺陷定义', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'processCheckItem', |
| | | name: 'processCheckItemCancel', |
| | | code: '0402', |
| | | component: () => import('@/views/qualityManager/processCheckItem'), |
| | | meta: { code: '0402', title: '检验项设置', icon: '', keepAlive: true } |
| | | }, { |
| | | path: 'qualityPlaning', |
| | | name: 'qualityPlaningCancel', |
| | | code: '0403', |
| | | component: () => import('@/views/qualityManager/qualityPlaning'), |
| | | meta: { code: '0403', title: '质检方案', icon: '', keepAlive: true } |
| | | }, { |
| | | path: 'processCheck', |
| | | name: 'processCheckCancel', |
| | | code: '0404', |
| | | component: () => import('@/views/qualityManager/processCheck'), |
| | | meta: { code: '0404', title: '工序检验', icon: '', keepAlive: true } |
| | | }, { |
| | | path: 'processCheckRecord', |
| | | name: 'processCheckRecordCancel', |
| | | code: '0405', |
| | | component: () => import('@/views/qualityManager/processCheckRecord'), |
| | | meta: { code: '0405', title: '工序检验', icon: '', keepAlive: true } |
| | | } |
| | | ] |
| | | }, |
| | | |
| | | { |
| | | path: '/workOrder', |
| | | component: Layout, |
| | | redirect: '/workOrder/workOrderList', |
| | | name: '工单管理', |
| | | code: '1002', |
| | | meta: { code: '1002', title: '工单管理', icon: 'bbgl' }, |
| | | code: '05', |
| | | meta: { code: '05', title: '工单管理', icon: 'bbgl' }, |
| | | alwaysShow: true, // 当children只有一个时,也显示父菜单 |
| | | children: [ |
| | | { |
| | | path: 'produceOrderList', |
| | | name: 'produceOrderListCancel', |
| | | code: '0501', |
| | | component: () => import('@/views/workOrder/produceOrderList'), |
| | | meta: { code: '0501', title: 'ERP订单', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'workOrderList', |
| | | name: 'workOrderListCancel', |
| | | code: '1020', |
| | | code: '0502', |
| | | component: () => import('@/views/workOrder/workOrderList'), |
| | | meta: { code: '1010', title: '工单列表', icon: '', keepAlive: true } |
| | | meta: { code: '0502', title: 'MES工单', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'workOrderSend', |
| | | name: 'workOrderSendCancel', |
| | | code: '1021', |
| | | code: '0503', |
| | | component: () => import('@/views/workOrder/workOrderSend'), |
| | | meta: { code: '1021', title: '工单派发', icon: '', keepAlive: true } |
| | | meta: { code: '0503', title: '工单派发', icon: '', keepAlive: true } |
| | | }, { |
| | | path: 'workOrderClose', |
| | | name: 'workOrderCloseCancel', |
| | | code: '1022', |
| | | code: '0504', |
| | | component: () => import('@/views/workOrder/workOrderClose'), |
| | | meta: { code: '1022', title: '工单关闭', icon: '', keepAlive: true } |
| | | meta: { code: '0504', title: '工单关闭', icon: '', keepAlive: true } |
| | | } |
| | | |
| | | ] |
| | | }, |
| | | |
| | | { |
| | | path: '/produce', |
| | | component: Layout, |
| | | redirect: '/produce/stepReport', |
| | | name: '生产执行', |
| | | code: '1003', |
| | | meta: { code: '1003', title: '生产执行', icon: 'production' }, |
| | | code: '06', |
| | | meta: { code: '06', title: '生产执行', icon: 'component' }, |
| | | alwaysShow: true, // 当children只有一个时,也显示父菜单 |
| | | children: [ |
| | | { |
| | | path: 'stepReport', |
| | | name: 'stepReportCancel', |
| | | code: '1030', |
| | | code: '0601', |
| | | component: () => import('@/views/produce/stepReport'), |
| | | meta: { code: '1030', title: '工序报工', icon: '', keepAlive: true } |
| | | meta: { code: '0601', title: '工序报工', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'reportCorrect', |
| | | name: 'reportCorrectCancel', |
| | | code: '1031', |
| | | code: '0602', |
| | | component: () => import('@/views/produce/reportCorrect'), |
| | | meta: { code: '1031', title: '报工修正', icon: '', keepAlive: true } |
| | | meta: { code: '0602', title: '报工调整', icon: '', keepAlive: true } |
| | | }, { |
| | | path: 'reportVerify', |
| | | name: 'reportVerifyCancel', |
| | | code: '1032', |
| | | code: '0603', |
| | | component: () => import('@/views/produce/reportVerify'), |
| | | meta: { code: '1032', title: '报工审核', icon: '', keepAlive: true } |
| | | meta: { code: '0603', title: '报工审核', icon: '', keepAlive: true } |
| | | } |
| | | |
| | | ] |
| | | }, |
| | | |
| | | // { |
| | | // path: '/statistic', |
| | | // component: Layout, |
| | | // redirect: '/statistic/reportList', |
| | | // name: '统计报表', |
| | | // code: '1004', |
| | | // meta: { code: '1004', title: '统计报表', icon: 'quality' }, |
| | | // alwaysShow: true, // 当children只有一个时,也显示父菜单 |
| | | // children: [ |
| | | // { |
| | | // path: 'reportList', |
| | | // name: 'reportListCancel', |
| | | // code: '1040', |
| | | // component: () => import('@/views/statistic/reportList'), |
| | | // meta: { code: '1040', title: '报工记录', icon: '', keepAlive: true } |
| | | // }, |
| | | // { |
| | | // path: 'monthReport', |
| | | // name: 'monthReportCancel', |
| | | // code: '1041', |
| | | // component: () => import('@/views/statistic/monthReport'), |
| | | // meta: { code: '1041', title: '月度统计', icon: '', keepAlive: true } |
| | | // }, { |
| | | // path: 'workOrderProcess', |
| | | // name: 'workOrderProcessCancel', |
| | | // code: '1042', |
| | | // component: () => import('@/views/statistic/workOrderProcess'), |
| | | // meta: { code: '1042', title: '工单进度', icon: '', keepAlive: true } |
| | | // }, { |
| | | // path: 'inProcessList', |
| | | // name: 'inProcessListCancel', |
| | | // code: '1043', |
| | | // component: () => import('@/views/statistic/inProcessList'), |
| | | // meta: { code: '1043', title: '在制列表', icon: '', keepAlive: true } |
| | | // } |
| | | // |
| | | // ] |
| | | // }, |
| | | |
| | | { |
| | | path: '/statistic', |
| | | path: '/systemSetting', |
| | | component: Layout, |
| | | redirect: '/statistic/reportList', |
| | | name: '统计报表', |
| | | code: '1004', |
| | | meta: { code: '1004', title: '统计报表', icon: 'quality' }, |
| | | redirect: '/systemSetting/encodingRules', |
| | | name: '系统设置', |
| | | code: '08', |
| | | meta: { code: '08', title: '系统设置', icon: 'xtsz' }, |
| | | alwaysShow: true, // 当children只有一个时,也显示父菜单 |
| | | children: [ |
| | | { |
| | | path: 'reportList', |
| | | name: 'reportListCancel', |
| | | code: '1040', |
| | | component: () => import('@/views/statistic/reportList'), |
| | | meta: { code: '1040', title: '报工记录', icon: '', keepAlive: true } |
| | | path: 'menuList', |
| | | name: 'menuListCancel', |
| | | code: '0801', |
| | | component: () => import('@/views/systemSetting/menuList'), |
| | | meta: { code: '0801', title: '菜单管理', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'monthReport', |
| | | name: 'monthReportCancel', |
| | | code: '1041', |
| | | component: () => import('@/views/statistic/monthReport'), |
| | | meta: { code: '1041', title: '月度统计', icon: '', keepAlive: true } |
| | | }, { |
| | | path: 'workOrderProcess', |
| | | name: 'workOrderProcessCancel', |
| | | code: '1042', |
| | | component: () => import('@/views/statistic/workOrderProcess'), |
| | | meta: { code: '1042', title: '工单进度', icon: '', keepAlive: true } |
| | | }, { |
| | | path: 'inProcessList', |
| | | name: 'inProcessListCancel', |
| | | code: '1043', |
| | | component: () => import('@/views/statistic/inProcessList'), |
| | | meta: { code: '1043', title: '在制列表', icon: '', keepAlive: true } |
| | | path: 'reportList', |
| | | name: 'reportListCancel', |
| | | code: '0802', |
| | | component: () => import('@/views/systemSetting/encodingRules'), |
| | | meta: { code: '0802', title: '编码规则', icon: '', keepAlive: true } |
| | | } |
| | | |
| | | ] |
| | | } |
| | | ] |