diff --git a/src/api/kanban/Packagingline.js b/src/api/kanban/Packagingline.js index cff605f..e0d0eed 100644 --- a/src/api/kanban/Packagingline.js +++ b/src/api/kanban/Packagingline.js @@ -47,3 +47,11 @@ export function getProductionNumberPLC(data){ data: data }); } + +export function getProductionLineData(data){ + return request({ + url: '/mes/mesborad/getProductionLineData', + method: 'get', + data: data + }); +} diff --git a/src/api/kanban/quality.js b/src/api/kanban/quality.js index 31f1038..af251f0 100644 --- a/src/api/kanban/quality.js +++ b/src/api/kanban/quality.js @@ -111,3 +111,12 @@ export function getKBTest() { method: 'post' }); } + +// 白坯每月不合格数量 +export function getBpMonthNoOk(data) { + return request({ + url: '/quality/qcInterface/getBpMonthNoOk', + method: 'get', + data: data + }); +} diff --git a/src/router/index.js b/src/router/index.js index b6d75de..6888b1c 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -156,6 +156,11 @@ export const constantRoutes = [ component: () => import("@/views/kanban/Dryingprocess/index"), hidden: true, }, + { + path: "/kanban/productLine", + component: () => import("@/views/kanban/productLine/index"), + hidden: true, + }, // { // path: "/report/board/LeadershipViewCheart", // component: () => import("@/views/energy/LeadershipView/LeadershipViewChearts"), diff --git a/src/views/kanban/productLine/index.vue b/src/views/kanban/productLine/index.vue new file mode 100644 index 0000000..0b81a26 --- /dev/null +++ b/src/views/kanban/productLine/index.vue @@ -0,0 +1,420 @@ + + + + + + + + 产线生产看板 + {{ currentTime }} + + + + + + 总产线数 + 18 + + + 生产产线 + {{ productionLines.length }} + + + 计划总产量 + {{ planTotal }} + + + 实际完成产量 + {{ completeTotal }} + + + 完成比例 + {{ completeRate }} % + + + + + + {{ line.equipmentName }} + + {{ line.productName }} + + + 计划产量: + {{ line.planTotal }} + + + 当前产量: + + {{ line.completTotal || 0 }} + + + + + 产量完成率: + + {{ line.completionRate }}% + + + + + + + + + + + + + + + + diff --git a/src/views/kanban/quality/kanban1.vue b/src/views/kanban/quality/kanban1.vue index 31150d8..8e48d58 100644 --- a/src/views/kanban/quality/kanban1.vue +++ b/src/views/kanban/quality/kanban1.vue @@ -601,7 +601,7 @@ export default { }; myChart3.setOption(option3); // console.log(_this.selectxt) - getProMonthNoOk({ + getBpMonthNoOk({ typeCode: "produce", factoryCode: "ds_" + _this.selectxt, }).then((response) => {