diff --git a/src/assets/js/getData1.js b/src/assets/js/getData1.js index 79a6a66..f78d1fe 100644 --- a/src/assets/js/getData1.js +++ b/src/assets/js/getData1.js @@ -23,228 +23,178 @@ export const errCensus = (id) => post('api/deviceScreen/errCensus', {}) /** 仓储监控 */ export const storageMonitor = (id) => post('api/dashboard/warehouseMonitor', {}) -/** 生产统计 */ -// export const productionStatistics = (id) => post('api/dashboard/productionStatistics', {}) -export const productionStatistics = () => { +/** 压制看板 */ +// export const cockpitpress = (id) => post('api/cockpit/press', {}) +export const cockpitpress = () => { let res = { - 'pressProduction': { - 'dailyProductionQty': 32.25, - 'equipmentProduction': [ - { - 'qty': 11000, - 'name': '压机1', - 'weight': 13000 - }, - { - 'qty': 4000, - 'name': '压机2', - 'weight': 19000 - }, - { - 'qty': 5000, - 'name': '压机3', - 'weight': 6000 - }, - { - 'qty': 9120, - 'name': '压机4', - 'weight': 8010 - }, - { - 'qty': 9000, - 'name': '压机5', - 'weight': 16200 - }, - { - 'qty': 5900, - 'name': '压机6', - 'weight': 2000 - }, - { - 'qty': 2220, - 'name': '压机7', - 'weight': 9010 - }, - { - 'qty': 3000, - 'name': '压机8', - 'weight': 8200 - }, - { - 'qty': 5000, - 'name': '压机9', - 'weight': 12000 - }, - { - 'qty': 6220, - 'name': '压机10', - 'weight': 16010 - }, - { - 'qty': 3900, - 'name': '压机11', - 'weight': 10200 - }, - { - 'qty': 6300, - 'name': '压机12', - 'weight': 9200 - }, - { - 'qty': 3020, - 'name': '压机13', - 'weight': 17010 - }, - { - 'qty': 5500, - 'name': '压机14', - 'weight': 9500 - }, - { - 'qty': 7200, - 'name': '压机15', - 'weight': 18000 - } - ], - 'dailyProductionWeight': 64.25 - }, - 'workOrder': [ + 'PersonnelMonthlyProduction': [ { - 'planStartTime': '2023-08-18 14:02:48', - 'workOrderCode': 'DD001', - 'equipment': '压机1', - 'materialCode': 'WL01', - 'startTime': '2023-08-18 14:02:48', - 'planned': '1000kg', - 'completed': '827kg', - 'endTime': '2023-08-18 14:02:48', - 'customer': '厂家1', - 'status': '完成' + 'operator': '小二', + 'real_qty': '1186' }, { - 'planStartTime': '2023-08-18 14:02:48', - 'workOrderCode': 'DD002', - 'equipment': '混料机2', - 'materialCode': 'WL02', - 'startTime': '2023-08-18 14:02:48', - 'planned': '1000kg', - 'completed': '894kg', - 'customer': '厂家2', - 'status': '已下发' - }, - { - 'planStartTime': '2023-08-18 14:02:48', - 'workOrderCode': 'DD003', - 'equipment': '压机3', - 'materialCode': 'WL03', - 'planned': '3000kg', - 'completed': '627kg', - 'customer': '厂家3', - 'status': '未生产' - }, - { - 'planStartTime': '2023-08-18 14:02:48', - 'workOrderCode': 'DD004', - 'equipment': '混料机4', - 'materialCode': 'WL04', - 'startTime': '2023-08-18 14:02:48', - 'planned': '8000kg', - 'completed': '6137kg', - 'customer': '厂家4', - 'status': '暂停' - }, - { - 'planStartTime': '2023-08-18 14:02:48', - 'workOrderCode': 'DD005', - 'equipment': '混料机5', - 'materialCode': 'WL05', - 'startTime': '2023-08-18 14:02:48', - 'planned': '1000kg', - 'completed': '894kg', - 'customer': '厂家5', - 'status': '已下发' - }, - { - 'planStartTime': '2023-08-18 14:02:48', - 'workOrderCode': 'DD006', - 'equipment': '压机6', - 'materialCode': 'WL06', - 'planned': '3000kg', - 'completed': '627kg', - 'customer': '厂家6', - 'status': '未生产' - }, - { - 'planStartTime': '2023-08-18 14:02:48', - 'workOrderCode': 'DD007', - 'equipment': '混料机7', - 'materialCode': 'WL07', - 'startTime': '2023-08-18 14:02:48', - 'planned': '8000kg', - 'completed': '6137kg', - 'customer': '厂家7', - 'status': '暂停' - }, - { - 'planStartTime': '2023-08-18 14:02:48', - 'workOrderCode': 'DD008', - 'equipment': '混料机8', - 'materialCode': 'WL08', - 'startTime': '2023-08-18 14:02:48', - 'planned': '1000kg', - 'completed': '894kg', - 'customer': '厂家8', - 'status': '已下发' - }, - { - 'planStartTime': '2023-08-18 14:02:48', - 'workOrderCode': 'DD009', - 'equipment': '压机9', - 'materialCode': 'WL09', - 'planned': '3000kg', - 'completed': '627kg', - 'customer': '厂家9', - 'status': '未生产' + 'operator': '小一', + 'real_qty': '1315' } ], - 'total': { - 'pressWeight': 30.25, - 'dryWeight': 20.25, - 'sortWeight': 16.25 - }, - 'finishedProductCompletionRate': [ + 'ProductionTask': [ { - 'uncompleted': 5000, - 'name': '物料1', - 'completed': 4000 + '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': '-' }, { - 'uncompleted': 3000, - 'name': '物料2', - 'completed': 4000 + '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': '-' }, { - 'uncompleted': 4000, - 'name': '物料3', - 'completed': 3000 + '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': '-' } ], - 'mixProduction': [ + 'ShiftProductionList': [ { - 'name': '物料1', - 'value': 800.25 + 'column_name': '压机04', + 'qualified_qty': '53', + 'unqualified_qty': '70', + 'total_difference': '1877' }, { - 'name': '物料2', - 'value': 800.25 - }, + 'column_name': '压机06', + 'qualified_qty': '0', + 'unqualified_qty': '0', + 'total_difference': '2000' + } + ], + 'DayShift': '白班', + 'DayShiftList': [ { - 'name': '物料3', - 'value': 900.25 - }, - { - 'name': '物料4', - 'value': 600.25 + 'plan_qty': '4000', + 'real_qty': '123', + 'unqualified_qty': '70', + 'qualified_qty': '53' } ] } diff --git a/src/pages/proj/ProdCount.vue b/src/pages/proj/ProdCount.vue index 39a07f5..e21101d 100644 --- a/src/pages/proj/ProdCount.vue +++ b/src/pages/proj/ProdCount.vue @@ -7,7 +7,7 @@