From 257fe3ad47588b8882ce1d151cc849cca1e16b74 Mon Sep 17 00:00:00 2001 From: xiangxy Date: Fri, 27 Oct 2023 16:04:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=8B=E5=88=B6=E7=9C=8B=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/js/getData1.js | 352 +++++++++++++++++++------------------- 1 file changed, 176 insertions(+), 176 deletions(-) diff --git a/src/assets/js/getData1.js b/src/assets/js/getData1.js index f78d1fe..c46acdc 100644 --- a/src/assets/js/getData1.js +++ b/src/assets/js/getData1.js @@ -24,179 +24,179 @@ export const errCensus = (id) => post('api/deviceScreen/errCensus', {}) /** 仓储监控 */ export const storageMonitor = (id) => post('api/dashboard/warehouseMonitor', {}) /** 压制看板 */ -// export const cockpitpress = (id) => post('api/cockpit/press', {}) -export const cockpitpress = () => { - let res = { - 'PersonnelMonthlyProduction': [ - { - 'operator': '小二', - 'real_qty': '1186' - }, - { - 'operator': '小一', - 'real_qty': '1315' - } - ], - 'ProductionTask': [ - { - 'device': '压机04', - 'workorder_code': '2423090628', - 'team': '白班', - 'material_name': '底部槽砖', - 'planproducestart_date': '08:00', - 'plan_qty': '2000', - 'real_qty': '123', - 'unqualified_qty': '70', - 'qualified_rate': '2.6500', - 'workorder_status': '未生产', - 'operator': '小一', - 'realproducestart_date': '-', - 'realproduceend_date': '-' - }, - { - 'device': '压机06', - 'workorder_code': '230921004', - 'team': '白班', - 'material_name': 'RH下部槽工作层砖(宝钢)', - 'planproducestart_date': '2023-09-01 00:00:00', - 'plan_qty': '2000', - 'real_qty': '0', - 'unqualified_qty': '0', - 'qualified_rate': '0.0000', - 'workorder_status': '未生产', - 'operator': '小二', - 'realproducestart_date': '-', - 'realproduceend_date': '-' - }, - { - 'device': '压机02', - 'workorder_code': '230916005', - 'team': '白班', - 'material_name': '钢包镁铝碳砖3015C221', - 'planproducestart_date': '2023-09-16 08:59:51', - 'plan_qty': '2000', - 'real_qty': '0', - 'unqualified_qty': '0', - 'qualified_rate': '40.0000', - 'workorder_status': '已下发', - 'operator': '小二', - 'realproducestart_date': '-', - 'realproduceend_date': '-' - }, - { - 'device': '压机03', - 'workorder_code': '230916007', - 'team': '白班', - 'material_name': '钢包镁铝碳砖3015C221', - 'planproducestart_date': '2023-09-16 00:00:00', - 'plan_qty': '2000', - 'real_qty': '0', - 'unqualified_qty': '0', - 'qualified_rate': '40.0000', - 'workorder_status': '已下发', - 'operator': '小二', - 'realproducestart_date': '-', - 'realproduceend_date': '-' - }, - { - 'device': '压机01', - 'workorder_code': '230916004', - 'team': '白班', - 'material_name': '钢包镁铝碳砖3015C221', - 'planproducestart_date': '2023-09-16 08:59:04', - 'plan_qty': '2000', - 'real_qty': '776', - 'unqualified_qty': '0', - 'qualified_rate': '38.8000', - 'workorder_status': '生产中', - 'operator': '小二', - 'realproducestart_date': '2023-09-16 09:02:24', - 'realproduceend_date': '-' - }, - { - 'device': '压机05', - 'workorder_code': '230916013', - 'team': '白班', - 'material_name': '钢包镁铝碳砖3015C221', - 'planproducestart_date': '2023-09-16 09:02:08', - 'plan_qty': '2000', - 'real_qty': '894', - 'unqualified_qty': '0', - 'qualified_rate': '40.0000', - 'workorder_status': '生产中', - 'operator': '小一', - 'realproducestart_date': '2023-09-16 09:03:06', - 'realproduceend_date': '-' - }, - { - 'device': '压机08', - 'workorder_code': '230916016', - 'team': '白班', - 'material_name': '钢包镁铝碳砖3015C221', - 'planproducestart_date': '2023-09-16 09:36:05', - 'plan_qty': '2000', - 'real_qty': '298', - 'unqualified_qty': '0', - 'qualified_rate': '40.0000', - 'workorder_status': '生产中', - 'operator': '小一', - 'realproducestart_date': '2023-09-16 09:36:44', - 'realproduceend_date': '-' - }, - { - 'device': '压机07', - 'workorder_code': '230918019', - 'team': '白班', - 'material_name': '钢包镁铝碳砖3015C221', - 'planproducestart_date': '2023-09-18 10:33:09', - 'plan_qty': '2000', - 'real_qty': '410', - 'unqualified_qty': '0', - 'qualified_rate': '0.0000', - 'workorder_status': '生产中', - 'operator': '小二', - 'realproducestart_date': '2023-09-18 10:39:24', - 'realproduceend_date': '-' - }, - { - 'device': '压机04', - 'workorder_code': '230916010', - 'team': '晚班', - 'material_name': '钢包镁铝碳砖3015C221', - 'planproducestart_date': '2023-09-16 09:01:28', - 'plan_qty': '2000', - 'real_qty': '990', - 'unqualified_qty': '0', - 'qualified_rate': '40.0000', - 'workorder_status': '生产中', - 'operator': '小二', - 'realproducestart_date': '2023-09-16 11:12:03', - 'realproduceend_date': '-' - } - ], - 'ShiftProductionList': [ - { - 'column_name': '压机04', - 'qualified_qty': '53', - 'unqualified_qty': '70', - 'total_difference': '1877' - }, - { - 'column_name': '压机06', - 'qualified_qty': '0', - 'unqualified_qty': '0', - 'total_difference': '2000' - } - ], - 'DayShift': '白班', - 'DayShiftList': [ - { - 'plan_qty': '4000', - 'real_qty': '123', - 'unqualified_qty': '70', - 'qualified_qty': '53' - } - ] - } - return res -} +export const cockpitpress = (id) => post('api/cockpit/press', {}) +// export const cockpitpress = () => { +// let res = { +// 'PersonnelMonthlyProduction': [ +// { +// 'operator': '小二', +// 'real_qty': '1186' +// }, +// { +// 'operator': '小一', +// 'real_qty': '1315' +// } +// ], +// 'ProductionTask': [ +// { +// 'device': '压机04', +// 'workorder_code': '2423090628', +// 'team': '白班', +// 'material_name': '底部槽砖', +// 'planproducestart_date': '08:00', +// 'plan_qty': '2000', +// 'real_qty': '123', +// 'unqualified_qty': '70', +// 'qualified_rate': '2.6500', +// 'workorder_status': '未生产', +// 'operator': '小一', +// 'realproducestart_date': '-', +// 'realproduceend_date': '-' +// }, +// { +// 'device': '压机06', +// 'workorder_code': '230921004', +// 'team': '白班', +// 'material_name': 'RH下部槽工作层砖(宝钢)', +// 'planproducestart_date': '2023-09-01 00:00:00', +// 'plan_qty': '2000', +// 'real_qty': '0', +// 'unqualified_qty': '0', +// 'qualified_rate': '0.0000', +// 'workorder_status': '未生产', +// 'operator': '小二', +// 'realproducestart_date': '-', +// 'realproduceend_date': '-' +// }, +// { +// 'device': '压机02', +// 'workorder_code': '230916005', +// 'team': '白班', +// 'material_name': '钢包镁铝碳砖3015C221', +// 'planproducestart_date': '2023-09-16 08:59:51', +// 'plan_qty': '2000', +// 'real_qty': '0', +// 'unqualified_qty': '0', +// 'qualified_rate': '40.0000', +// 'workorder_status': '已下发', +// 'operator': '小二', +// 'realproducestart_date': '-', +// 'realproduceend_date': '-' +// }, +// { +// 'device': '压机03', +// 'workorder_code': '230916007', +// 'team': '白班', +// 'material_name': '钢包镁铝碳砖3015C221', +// 'planproducestart_date': '2023-09-16 00:00:00', +// 'plan_qty': '2000', +// 'real_qty': '0', +// 'unqualified_qty': '0', +// 'qualified_rate': '40.0000', +// 'workorder_status': '已下发', +// 'operator': '小二', +// 'realproducestart_date': '-', +// 'realproduceend_date': '-' +// }, +// { +// 'device': '压机01', +// 'workorder_code': '230916004', +// 'team': '白班', +// 'material_name': '钢包镁铝碳砖3015C221', +// 'planproducestart_date': '2023-09-16 08:59:04', +// 'plan_qty': '2000', +// 'real_qty': '776', +// 'unqualified_qty': '0', +// 'qualified_rate': '38.8000', +// 'workorder_status': '生产中', +// 'operator': '小二', +// 'realproducestart_date': '2023-09-16 09:02:24', +// 'realproduceend_date': '-' +// }, +// { +// 'device': '压机05', +// 'workorder_code': '230916013', +// 'team': '白班', +// 'material_name': '钢包镁铝碳砖3015C221', +// 'planproducestart_date': '2023-09-16 09:02:08', +// 'plan_qty': '2000', +// 'real_qty': '894', +// 'unqualified_qty': '0', +// 'qualified_rate': '40.0000', +// 'workorder_status': '生产中', +// 'operator': '小一', +// 'realproducestart_date': '2023-09-16 09:03:06', +// 'realproduceend_date': '-' +// }, +// { +// 'device': '压机08', +// 'workorder_code': '230916016', +// 'team': '白班', +// 'material_name': '钢包镁铝碳砖3015C221', +// 'planproducestart_date': '2023-09-16 09:36:05', +// 'plan_qty': '2000', +// 'real_qty': '298', +// 'unqualified_qty': '0', +// 'qualified_rate': '40.0000', +// 'workorder_status': '生产中', +// 'operator': '小一', +// 'realproducestart_date': '2023-09-16 09:36:44', +// 'realproduceend_date': '-' +// }, +// { +// 'device': '压机07', +// 'workorder_code': '230918019', +// 'team': '白班', +// 'material_name': '钢包镁铝碳砖3015C221', +// 'planproducestart_date': '2023-09-18 10:33:09', +// 'plan_qty': '2000', +// 'real_qty': '410', +// 'unqualified_qty': '0', +// 'qualified_rate': '0.0000', +// 'workorder_status': '生产中', +// 'operator': '小二', +// 'realproducestart_date': '2023-09-18 10:39:24', +// 'realproduceend_date': '-' +// }, +// { +// 'device': '压机04', +// 'workorder_code': '230916010', +// 'team': '晚班', +// 'material_name': '钢包镁铝碳砖3015C221', +// 'planproducestart_date': '2023-09-16 09:01:28', +// 'plan_qty': '2000', +// 'real_qty': '990', +// 'unqualified_qty': '0', +// 'qualified_rate': '40.0000', +// 'workorder_status': '生产中', +// 'operator': '小二', +// 'realproducestart_date': '2023-09-16 11:12:03', +// 'realproduceend_date': '-' +// } +// ], +// 'ShiftProductionList': [ +// { +// 'column_name': '压机04', +// 'qualified_qty': '53', +// 'unqualified_qty': '70', +// 'total_difference': '1877' +// }, +// { +// 'column_name': '压机06', +// 'qualified_qty': '0', +// 'unqualified_qty': '0', +// 'total_difference': '2000' +// } +// ], +// 'DayShift': '白班', +// 'DayShiftList': [ +// { +// 'plan_qty': '4000', +// 'real_qty': '123', +// 'unqualified_qty': '70', +// 'qualified_qty': '53' +// } +// ] +// } +// return res +// }