From 7ffa0fcdea7d758aed498dd439f03108e9a3c58b Mon Sep 17 00:00:00 2001 From: xiangxy Date: Wed, 1 Mar 2023 17:45:28 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E4=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/js/getData1.js | 89 ++++++++++++++++++++++++++++++++++++ src/pages/ProdCount2.vue | 96 ++++++++++++++++++--------------------- src/router/index.js | 2 +- 3 files changed, 134 insertions(+), 53 deletions(-) diff --git a/src/assets/js/getData1.js b/src/assets/js/getData1.js index e69de29..09ab5d1 100644 --- a/src/assets/js/getData1.js +++ b/src/assets/js/getData1.js @@ -0,0 +1,89 @@ +// import {post} from './http.js' + +// 仓储监控 +// export const storageMonitor = () => post('/api/cockpit/storageMonitor', { +// }) +export const storageMonitor = () => { + let res = { + 'productionTask': [ + { + 'point_id': '1597551506607968256', + 'point_code': 'YZJHJ04', + 'point_name': '压制机旧料盅货架04', + 'material_id': 1556534702800769024, + '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, + 'warn_time': '5', + 'is_full': '1' + } + ], + 'materialTask': [ + { + 'point_id': '1518061204965298176', + 'point_code': 'YZJ0904', + 'point_name': '压制机9料盅位4', + 'material_id': 1556534702800769024, + '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' + } + ] + } + return res +} + +// 生产统计 +// export const productionStatistics = () => post(' /api/cockpit/productionStatistics', { +// }) +export const productionStatistics = () => { + let res = { + 'finishedTask': [ + { + 'realqty': '130', + 'planqty': '300', + 'workorder_procedure': '2' + }, + { + 'realqty': '160', + 'planqty': '200', + 'workorder_procedure': '3' + }, + { + 'realqty': '70', + 'planqty': '100', + 'workorder_procedure': '4' + } + ], + 'productionTask': [ + { + 'workorder_id': '1597564588067524613', + 'label': '烧制工序', + 'device_name': '混料机3', + 'material_code': 'HW00001', + 'material_name': '木质花纹2cm', + 'cust_name': '新余钢铁', + 'plan_qty': 100, + 'real_qty': 80, + 'order_status': '5', + 'shift_type': '烧制白班', + 'realproducestart_date': '2023-2-27 12:40:00' + } + ], + 'materialTask': [ + { + 'realqty': '360', + 'planqty': '600' + } + ] + } + return res +} diff --git a/src/pages/ProdCount2.vue b/src/pages/ProdCount2.vue index 7227873..669a4ea 100644 --- a/src/pages/ProdCount2.vue +++ b/src/pages/ProdCount2.vue @@ -1,6 +1,6 @@