From 567c7b76cef33b734a99d334232417b100ca6f40 Mon Sep 17 00:00:00 2001 From: xiangxy Date: Tue, 7 Mar 2023 09:06:36 +0800 Subject: [PATCH] prod --- src/assets/js/getData1.js | 111 ++++- src/pages/ProdCount2.vue | 33 +- src/pages/StorageMonitor2.vue | 823 ++++++++++++++++++++++++++++++++++ src/router/index.js | 2 +- 4 files changed, 936 insertions(+), 33 deletions(-) create mode 100644 src/pages/StorageMonitor2.vue diff --git a/src/assets/js/getData1.js b/src/assets/js/getData1.js index 09ab5d1..fea4510 100644 --- a/src/assets/js/getData1.js +++ b/src/assets/js/getData1.js @@ -10,23 +10,28 @@ export const storageMonitor = () => { 'point_id': '1597551506607968256', 'point_code': 'YZJHJ04', 'point_name': '压制机旧料盅货架04', + 'point_status': '1', 'material_id': 1556534702800769024, + 'material_code': 'HW00001', 'material_name': '木质花纹2cm', 'vehicle_code': '1M3000009', 'ivt_qty': 1000.000000, 'ivt_weight': 800.000000, 'instorage_time': '2023-2-27 16:07:09', 'standing_time': 20, + 'standing_status': null, 'warn_time': '5', 'is_full': '1' } ], 'materialTask': [ { - 'point_id': '1518061204965298176', - 'point_code': 'YZJ0904', - 'point_name': '压制机9料盅位4', + 'point_id': '1597551506607968256', + 'point_code': 'YZJHJ04', + 'point_name': '压制机旧料盅货架04', + 'point_status': '1', 'material_id': 1556534702800769024, + 'material_code': 'HW00001', 'material_name': '木质花纹2cm', 'vehicle_code': '1M3000009', 'ivt_qty': 1000.000000, @@ -34,7 +39,46 @@ export const storageMonitor = () => { 'instorage_time': '2023-2-27 16:07:09', 'standing_time': 20, 'standing_status': '静置完成', - 'warn_time': '5' + 'warn_time': '5', + 'is_full': '是' + } + ], + 'productionList': [ + { + 'point_id': '1597551506607968256', + 'point_code': 'YZJHJ04', + 'point_name': '压制机旧料盅货架04', + 'point_status': '1', + 'material_id': 1556534702800769024, + 'material_code': 'HW00001', + 'material_name': '木质花纹2cm', + 'vehicle_code': '1M3000009', + 'ivt_qty': 1000.000000, + 'ivt_weight': 800.000000, + 'instorage_time': '2023-2-27 16:07:09', + 'standing_time': 20, + 'standing_status': null, + 'warn_time': '5', + 'is_full': '1' + } + ], + 'materialList': [ + { + 'point_id': '1597551506607968256', + 'point_code': 'YZJHJ04', + 'point_name': '压制机旧料盅货架04', + 'point_status': '1', + 'material_id': 1556534702800769024, + 'material_code': 'HW00001', + 'material_name': '木质花纹2cm', + 'vehicle_code': '1M3000009', + 'ivt_qty': 1000.000000, + 'ivt_weight': 800.000000, + 'instorage_time': '2023-2-27 16:07:09', + 'standing_time': 20, + 'standing_status': '静置完成', + 'warn_time': '5', + 'is_full': '是' } ] } @@ -48,40 +92,67 @@ export const productionStatistics = () => { let res = { 'finishedTask': [ { - 'realqty': '130', - 'planqty': '300', - 'workorder_procedure': '2' + 'workorder_procedure': '今日压制量', + 'real_qty': 130 }, { - 'realqty': '160', - 'planqty': '200', - 'workorder_procedure': '3' + 'workorder_procedure': '今日干燥量', + 'real_qty': 160 }, { - 'realqty': '70', - 'planqty': '100', - 'workorder_procedure': '4' + 'workorder_procedure': '今日成品量', + 'real_qty': 70 + } + ], + 'planRes': [ + { + 'workorder_procedure': '压制', + 'plan_qty': 300, + 'real_qty': 130 + }, + { + 'workorder_procedure': '干燥', + 'plan_qty': 200, + 'real_qty': 160 + }, + { + 'workorder_procedure': '包装', + 'plan_qty': 100, + 'real_qty': 70 + } + ], + 'materialTask': [ + { + 'plan_qty': '600', + 'real_qty': '360' } ], 'productionTask': [ { 'workorder_id': '1597564588067524613', - 'label': '烧制工序', + 'label': '烧制', 'device_name': '混料机3', 'material_code': 'HW00001', 'material_name': '木质花纹2cm', 'cust_name': '新余钢铁', 'plan_qty': 100, 'real_qty': 80, - 'order_status': '5', + 'order_status': '完成', 'shift_type': '烧制白班', 'realproducestart_date': '2023-2-27 12:40:00' - } - ], - 'materialTask': [ + }, { - 'realqty': '360', - 'planqty': '600' + 'workorder_id': '1597564588067524608', + 'label': '压制', + 'device_name': '混料机3', + 'material_code': 'HW00001', + 'material_name': '木质花纹2cm', + 'cust_name': '新余钢铁', + 'plan_qty': 100, + 'real_qty': 0, + 'order_status': '暂停', + 'shift_type': '压制白班', + 'realproducestart_date': '2023-2-27 09:15:00' } ] } diff --git a/src/pages/ProdCount2.vue b/src/pages/ProdCount2.vue index 669a4ea..3f701d9 100644 --- a/src/pages/ProdCount2.vue +++ b/src/pages/ProdCount2.vue @@ -1,6 +1,6 @@