diff --git a/src/api/model/wpm.js b/src/api/model/wpm.js index c44006bd..58ed4600 100644 --- a/src/api/model/wpm.js +++ b/src/api/model/wpm.js @@ -351,6 +351,26 @@ export default { }, }, }, + mloguser: { + list: { + name: "列表", + req: async function (data) { + return await http.get(`${config.API_URL}/wpm/mloguser/`, data); + }, + }, + create: { + name: "创建", + req: async function (data) { + return await http.post(`${config.API_URL}/wpm/mloguser/`, data); + }, + }, + delete: { + name: "删除", + req: async function (id) { + return await http.delete(`${config.API_URL}/wpm/mloguser/${id}/`); + }, + }, + }, handover: { list: { name: "值班记录列表", @@ -422,6 +442,14 @@ export default { ); }, }, + createsubmit: { + name: "创建并提交", + req: async function (data) { + return await http.post( + `${config.API_URL}/wpm/handover/create_and_submit/`,data + ); + }, + }, mgroups:{ name: "获取可交接的工段", req: async function (data) { @@ -491,6 +519,38 @@ export default { return await http.post(`${config.API_URL}/wpm/ana/put_prod/`, data); }, }, + batchwork:{ + name: "工段批次加工进度", + req: async function (data) { + return await http.post(`${config.API_URL}/wpm/ana/batchwork/`, data); + }, + }, + }, + // batchlog: { + // name: "批次列表", + // req: async function (data) { + // return await http.get(`${config.API_URL}/wpm/batchlog/`, data); + // }, + // }, + batchlog: { + list: { + name: "批次列表", + req: async function (data) { + return await http.get(`${config.API_URL}/wpm/batchlog/`, data); + }, + }, + dag: { + name: "获取批次的DAG图数据", + req: async function (data) { + return await http.post(`${config.API_URL}/wpm/batchlog/dag/`, data); + }, + }, + batchesTo:{ + name: "获取已指向的批次号", + req: async function (data) { + return await http.post(`${config.API_URL}/wpm/batchlog/batches_to/`, data); + }, + } }, batchst: { name: "批次统计数据", @@ -498,6 +558,12 @@ export default { return await http.get(`${config.API_URL}/wpm/batchst/`, data); }, }, + batchstquery: { + name: "批次统计数据", + req: async function (data) { + return await http.post(`${config.API_URL}/wpm/batchst/cquery/`, data); + }, + }, wpr:{ list: { name: "动态产品", @@ -511,5 +577,11 @@ export default { return await http.get(`${config.API_URL}/wpmw/wpr/${id}/`); }, }, + newNumber: { + name: "最新编号", + req: async function (data) { + return await http.post(`${config.API_URL}/wpmw/wpr/new_number/`, data); + } + } }, }; diff --git a/src/components/scDegra.vue b/src/components/scDegra.vue new file mode 100644 index 00000000..a1a538e4 --- /dev/null +++ b/src/components/scDegra.vue @@ -0,0 +1,276 @@ + + + + + + + + + diff --git a/src/config/route.js b/src/config/route.js index e7e7ddfb..639c0866 100644 --- a/src/config/route.js +++ b/src/config/route.js @@ -3459,47 +3459,7 @@ const routes = [ perms: ["statistic_qm"], }, component: "statistics/product_check2.vue", - }, - // { - // "name": "inm_check", - // "path": "/statistic/inm_check", - // "meta": { - // "title": "库存检验统计", - // "icon": "el-icon-DataAnalysis", - // "perms": ["statistic_qm"] - // }, - // "component": "statistics/inm_check.vue" - // }, - // { - // name: "good_check", - // path: "/statistic/good_check", - // meta: { - // title: "成品检验统计", - // // icon: "el-icon-DataAnalysis", - // perms: ["statistic_qm"], - // }, - // component: "statistics/good_check.vue", - // }, - // { - // "name": "behavior_check", - // "path": "/statistic/behavior_check", - // "meta": { - // "title": "性能检验", - // "icon": "el-icon-cellphone", - // "perms": ["statistic_qm"] - // }, - // "component": "statistics/behavior_check.vue" - // }, - // { - // "name": "enter_check", - // "path": "/statistic/enter_check", - // "meta": { - // "title": "入厂检验", - // "icon": "el-icon-cellphone", - // "perms": ["statistic_qm"] - // }, - // "component": "statistics/enter_check.vue" - // }, + } ], }, //物料统计 @@ -3546,94 +3506,6 @@ const routes = [ }, component: "statistics/stock_statistics.vue", }, - //合格数统计——光芯 - { - name: "pass_num_gx", - path: "/statistic/pass_num_gx", - meta: { - title: "合格数统计", - icon: "el-icon-DataAnalysis", - perms: ["pass_num_gx"], - }, - component: "statistics/pass_num_gx.vue", - }, - //任务进度统计——光芯 - { - name: "task_rate_gx", - path: "/statistic/task_rate_gx", - meta: { - title: "任务进度", - icon: "el-icon-DataAnalysis", - perms: ["task_rate_gx"], - }, - component: "statistics/task_rate_gx.vue", - }, - //人员绩效统计——光芯 - { - path: "/work_statistics", - name: "work_statistics", - meta: { - title: "人员生产统计", - icon: "el-icon-trend-charts", - perms: ["work_statistics"], - }, - component: "statistics/work_statistics.vue", - }, - //库存统计——光芯 - { - path: "/statistic_inm", - name: "statistic_inm", - meta: { - title: "库存统计", - icon: "el-icon-trend-charts", - perms: ["statistic_inm_gx"], - }, - component: "statistics/statistics_inm.vue", - }, - //返工统计——光芯 - { - path: "/rework_gx", - name: "rework_gx", - meta: { - title: "返工统计", - icon: "el-icon-trend-charts", - perms: ["rework_gx"], - }, - component: "statistics/rework_gx.vue", - }, - //过程检验统计——光芯 - { - path: "/process_check_gx", - name: "process_check_gx", - meta: { - title: "过程检验统计", - icon: "el-icon-trend-charts", - perms: ["process_check_gx"], - }, - component: "statistics/process_check_gx.vue", - }, - //成品检验统计——光芯 - { - path: "/good_check_gx", - name: "good_check_gx", - meta: { - title: "成品检验统计", - icon: "el-icon-trend-charts", - perms: ["good_check_gx"], - }, - component: "statistics/good_check_gx.vue", - }, - //成品检验记录——光芯 - { - path: "/check_record_gx", - name: "check_record_gx", - meta: { - title: "成品检验记录", - icon: "el-icon-trend-charts", - perms: ["check_record_gx"], - }, - component: "statistics/check_record_gx.vue", - }, //综合查询 { name: "total_statistics", @@ -3667,6 +3539,17 @@ const routes = [ }, component: "statistics/statistics_guan.vue", }, + //批次统计 + { + name: "statistics_batch", + path: "/statistic/statistics_batch", + meta: { + title: "批次统计", + icon: "el-icon-DataAnalysis", + perms: ["statistics_batch"], + }, + component: "statistics/batch_statistics.vue", + }, //综合统计导出 { name: "total_export", diff --git a/src/scui.js b/src/scui.js index 99005705..0add1b85 100644 --- a/src/scui.js +++ b/src/scui.js @@ -23,6 +23,7 @@ import scWaterMark from './components/scWaterMark' import scQrCode from './components/scQrCode' import scIconSelect from './components/scIconSelect' import scEcharts from './components/scEcharts' +import scDegra from './components/scDegra' import scStatusIndicator from './components/scMini/scStatusIndicator' import scTrend from './components/scMini/scTrend' @@ -73,6 +74,8 @@ export default { app.component('scFire', scFire); app.component('scIconSelect', scIconSelect); app.component('scEcharts', scEcharts); + + app.component('scDegra', scDegra); //注册全局指令 app.directive('auth', auth) diff --git a/src/views/statistics/batch_statistics.vue b/src/views/statistics/batch_statistics.vue new file mode 100644 index 00000000..6680d21b --- /dev/null +++ b/src/views/statistics/batch_statistics.vue @@ -0,0 +1,417 @@ + + + + + + + + + + + + + 查询 + + + + + + + + + + + + + 批次流转图 + + + + + + + + + + + + + {{scope.row.material_out_name}} + 返工 + + + + + + + + 返修 + 正常 + + + + + {{scope.row.belong_dept_name}}/{{scope.row.mgroup_name}} + + + + + + {{ getRemaTime(scope.row) }} + + + + + + 是 + 否 + + + + + + + + + + + + + + + + + + {{item.batch}} + + + {{item.count}} + + + {{item.defect_name}} + + + + + + + + + + {{scope.row.handoverb.length}}批 + + + + + + 正常 + 返工 + 报废 + 改版 + + + + + 正常 + 分批 + 合批 + + + + + + + + + + + + + + + + + + + + + + {{wmState[scope.row.state]?.text}} + + + + + + {{ scope.row.material_name }} + ({{ scope.row.material_origin_name }}) + + + + + + {{scope.row.belong_dept_name}}/{{scope.row.mgroup_name}} + + + + + + + + + + + + + + + + + + + + + + + {{ scope.row.material_.specification }} + {{ scope.row.material_.model }} + + + + + + + {{ scope.row.material_.process_name }} + + + + + + + + + + + + + + + + + + + + + + + {{ typeDict[scope.row.type] }} + + + + + + + + {{ stateDict[scope.row.state] }} + + + + + + + + + + + + + + + + + + diff --git a/src/views/statistics/statistics_bang.vue b/src/views/statistics/statistics_bang.vue index 8eecf8de..63725ead 100644 --- a/src/views/statistics/statistics_bang.vue +++ b/src/views/statistics/statistics_bang.vue @@ -530,7 +530,8 @@ export default { return { params: { ordering:'-last_time', - batch__startswith__in:'ZJ2,G05,J2C,A55', + material_start__cate:'棒', + last_time_isnull:false, }, query:{ batch__contains:'', diff --git a/src/views/statistics/statistics_guan.vue b/src/views/statistics/statistics_guan.vue index 8ccc0bac..f81cc3af 100644 --- a/src/views/statistics/statistics_guan.vue +++ b/src/views/statistics/statistics_guan.vue @@ -570,7 +570,8 @@ export default { return { params: { ordering:'-last_time', - batch__startswith__in:'ZB2,B1', + material_start__cate:'管', + last_time_isnull:false, }, query:{ batch__contains:'',
批次流转图