diff --git a/src/config/route.js b/src/config/route.js index 3d13f23a..5bf3b5e3 100644 --- a/src/config/route.js +++ b/src/config/route.js @@ -864,6 +864,17 @@ const routes = [ }, "component": "wpm/mlog_dept6" }, + { + "name": "mlogDept6Detail", + "path": "/pm/mlogDept6Detail", + "meta": { + "title": "6车间", + "icon": "el-icon-cellphone", + "perms": ["mlog_dept6"], + "hidden":true + }, + "component": "wpm/mlog_dept6_detail" + }, ] }, { @@ -2242,37 +2253,124 @@ const routes = [ "icon": "el-icon-histogram", "perms": ["bigScreenP"], }, - children:[ + "children": [ + //生产统计 { - "path": "/product_statistics", - "name": "product_statistics", + "name": "statistic", + "path": "/statistic1", "meta": { "title": "生产统计", - "icon": "el-icon-trend-charts", - "perms": ["bigScreenP"], + "icon": "el-icon-grid", + "type": "menu", + "perms": ["mtm"] }, - "component": "statistics/product_statistics.vue" + "children": [ + { + "name": "pass_num", + "path": "/statistic/pass_num", + "meta": { + "title": "合格数统计", + "icon": "el-icon-cellphone", + "perms": ["mtm"] + }, + "component": "statistics/pass_num.vue" + }, + { + "name": "task_rate", + "path": "/statistic/task_rate", + "meta": { + "title": "任务进度", + "icon": "el-icon-cellphone", + "perms": ["mtm"] + }, + "component": "statistics/task_rate.vue" + }, + { + "name": "ppass_num", + "path": "/statistic/ppass_num", + "meta": { + "title": "工序合格数", + "icon": "el-icon-cellphone", + "perms": ["mtm"] + }, + "component": "statistics/ppass_num.vue" + }, + ] }, + //检验统计 { - "path": "/quality_statistics", - "name": "quality_statistics", + "name": "statistic", + "path": "/statistic2", "meta": { - "title": "质量统计", - "icon": "el-icon-trend-charts", - "perms": ["bigScreenP"], + "title": "检验统计", + "icon": "el-icon-grid", + "type": "menu", + "perms": ["mtm"] }, - "component": "statistics/quality_statistics.vue" - }, - { - "path": "/sale_statistics", - "name": "sale_statistics", - "meta": { - "title": "销售统计", - "icon": "el-icon-trend-charts", - "perms": ["bigScreenP"], - }, - "component": "statistics/sale_statistics.vue" + "children": [ + { + "name": "product_check", + "path": "/statistic/product_check", + "meta": { + "title": "生产检验统计", + "icon": "el-icon-cellphone", + "perms": ["mtm"] + }, + "component": "statistics/product_check.vue" + }, + { + "name": "product_check2", + "path": "/statistic/product_check2", + "meta": { + "title": "生产检验统计(粗加工)", + "icon": "el-icon-cellphone", + "perms": ["mtm"] + }, + "component": "statistics/product_check2.vue" + }, + { + "name": "inm_check", + "path": "/statistic/inm_check", + "meta": { + "title": "库存检验统计", + "icon": "el-icon-cellphone", + "perms": ["mtm"] + }, + "component": "statistics/inm_check.vue" + }, + { + "name": "good_check", + "path": "/statistic/good_check", + "meta": { + "title": "成品检验统计", + "icon": "el-icon-cellphone", + "perms": ["mtm"] + }, + "component": "statistics/good_check.vue" + }, + { + "name": "behavior_check", + "path": "/statistic/behavior_check", + "meta": { + "title": "性能检验", + "icon": "el-icon-cellphone", + "perms": ["mtm"] + }, + "component": "statistics/behavior_check.vue" + }, + { + "name": "enter_check", + "path": "/statistic/enter_check", + "meta": { + "title": "入厂检验", + "icon": "el-icon-cellphone", + "perms": ["mtm"] + }, + "component": "statistics/enter_check.vue" + }, + ] }, + //物料统计 { "path": "/material_statistics", "name": "material_statistics", @@ -2283,7 +2381,71 @@ const routes = [ }, "component": "statistics/material_statistics.vue" }, + //人员统计 + { + "path": "/user_statistics", + "name": "user_statistics", + "meta": { + "title": "人员统计", + "icon": "el-icon-trend-charts", + "perms": ["bigScreenP"], + }, + "component": "statistics/user_statistics.vue" + }, + //主库存统计 + { + "path": "/inm_statistics", + "name": "inm_statistics", + "meta": { + "title": "主库存统计", + "icon": "el-icon-trend-charts", + "perms": ["bigScreenP"], + }, + "component": "statistics/inm_statistics.vue" + }, ], + // children:[ + // { + // "path": "/product_statistics", + // "name": "product_statistics", + // "meta": { + // "title": "生产统计", + // "icon": "el-icon-trend-charts", + // "perms": ["bigScreenP"], + // }, + // "component": "statistics/product_statistics.vue" + // }, + // { + // "path": "/quality_statistics", + // "name": "quality_statistics", + // "meta": { + // "title": "质量统计", + // "icon": "el-icon-trend-charts", + // "perms": ["bigScreenP"], + // }, + // "component": "statistics/quality_statistics.vue" + // }, + // { + // "path": "/sale_statistics", + // "name": "sale_statistics", + // "meta": { + // "title": "销售统计", + // "icon": "el-icon-trend-charts", + // "perms": ["bigScreenP"], + // }, + // "component": "statistics/sale_statistics.vue" + // }, + // { + // "path": "/material_statistics", + // "name": "material_statistics", + // "meta": { + // "title": "物料统计", + // "icon": "el-icon-trend-charts", + // "perms": ["bigScreenP"], + // }, + // "component": "statistics/material_statistics.vue" + // }, + // ], }, //报表 { diff --git a/src/views/statistics/quality_statistics.vue b/src/views/statistics/behavior_check.vue similarity index 100% rename from src/views/statistics/quality_statistics.vue rename to src/views/statistics/behavior_check.vue diff --git a/src/views/statistics/product_statistics.vue b/src/views/statistics/enter_check.vue similarity index 60% rename from src/views/statistics/product_statistics.vue rename to src/views/statistics/enter_check.vue index a62d9222..a3ac64b9 100644 --- a/src/views/statistics/product_statistics.vue +++ b/src/views/statistics/enter_check.vue @@ -1,7 +1,6 @@