diff --git a/src/assets/images/sctj_bg1.png b/src/assets/images/sctj_bg1.png new file mode 100644 index 0000000..16f69eb Binary files /dev/null and b/src/assets/images/sctj_bg1.png differ diff --git a/src/assets/images/sctj_bg2.png b/src/assets/images/sctj_bg2.png new file mode 100644 index 0000000..75037a0 Binary files /dev/null and b/src/assets/images/sctj_bg2.png differ diff --git a/src/assets/images/sctj_bg3.png b/src/assets/images/sctj_bg3.png new file mode 100644 index 0000000..ef6fa9b Binary files /dev/null and b/src/assets/images/sctj_bg3.png differ diff --git a/src/assets/images/sctj_icon.png b/src/assets/images/sctj_icon.png new file mode 100644 index 0000000..8e20ccc Binary files /dev/null and b/src/assets/images/sctj_icon.png differ diff --git a/src/assets/images/sctj_top.png b/src/assets/images/sctj_top.png new file mode 100644 index 0000000..1a54eff Binary files /dev/null and b/src/assets/images/sctj_top.png differ diff --git a/src/assets/js/getData1.js b/src/assets/js/getData1.js index a606e43..8380e16 100644 --- a/src/assets/js/getData1.js +++ b/src/assets/js/getData1.js @@ -20,3 +20,262 @@ export const deviceUseRate = (id) => post('api/deviceScreen/deviceUseRate', {}) export const deviceStatusList = (id) => post('api/deviceScreen/deviceStatusList', {}) /** 1.10近30天设备故障统计 */ export const errCensus = (id) => post('api/deviceScreen/errCensus', {}) + +export const productionStatistics = () => { + let res = { + 'code': 200, + 'desc': '操作成功', + 'result': { + 'planRes': [ + { + 'workorder_procedure': '压制', + 'label': '2', + 'plan_qty': 20000, + 'real_qty': 480 + }, + { + 'workorder_procedure': '原料', + 'label': '1', + 'plan_qty': 0, + 'real_qty': 0 + }, + { + 'workorder_procedure': '干燥', + 'label': '3', + 'plan_qty': 0, + 'real_qty': 0 + }, + { + 'workorder_procedure': '包装', + 'label': '4', + 'plan_qty': 0, + 'real_qty': 0 + } + ], + 'materialTask': [ + { + 'plan_qty': '0', + 'real_qty': '0', + 'label': '1', + 'workorder_procedure': '原料' + } + ], + 'finishedRes': [ + { + 'workorder_procedure': '压制', + 'label': '2', + 'plan_qty': 20000, + 'real_qty': 480 + }, + { + 'workorder_procedure': '原料', + 'label': '1', + 'plan_qty': 0, + 'real_qty': 0 + }, + { + 'workorder_procedure': '干燥', + 'label': '3', + 'plan_qty': 0, + 'real_qty': 0 + }, + { + 'workorder_procedure': '包装', + 'label': '4', + 'plan_qty': 0, + 'real_qty': 0 + } + ], + 'productionTask': [ + { + 'workorder_id': '1650768844706480128', + 'label': null, + 'device_name': '压机5', + 'material_code': 'ZLMCZ1001C111122GM001BD20-8', + 'material_name': null, + 'cust_name': null, + 'plan_qty': 1000000, + 'real_qty': 0, + 'qualified_qty': 0, + 'unqualified_qty': 0, + 'order_status': '3', + 'order_status_name': '生产中', + 'shift_type': null, + 'realproducestart_date': '2023-04-25 15:51:44', + 'realproduceend_date': '-' + }, + { + 'workorder_id': '1650404416467193856', + 'label': null, + 'device_name': '压机3', + 'material_code': 'ZLMCZ1001C111122GM001BD20-8', + 'material_name': null, + 'cust_name': null, + 'plan_qty': 1000000, + 'real_qty': 0, + 'qualified_qty': 0, + 'unqualified_qty': 0, + 'order_status': '3', + 'order_status_name': '生产中', + 'shift_type': null, + 'realproducestart_date': '2023-04-24 15:42:59', + 'realproduceend_date': '-' + }, + { + 'workorder_id': '1649612373595746304', + 'label': null, + 'device_name': '压机7', + 'material_code': 'ZLMCZ1001C122211GM001BD20-8', + 'material_name': null, + 'cust_name': null, + 'plan_qty': 100000, + 'real_qty': 0, + 'qualified_qty': 0, + 'unqualified_qty': 0, + 'order_status': '3', + 'order_status_name': '生产中', + 'shift_type': null, + 'realproducestart_date': '2023-04-22 11:29:10', + 'realproduceend_date': '-' + }, + { + 'workorder_id': '1648878346865606656', + 'label': null, + 'device_name': '压机4', + 'material_code': 'ZLMCZ1001C122211GM001BD20-8', + 'material_name': null, + 'cust_name': null, + 'plan_qty': 100000, + 'real_qty': 0, + 'qualified_qty': 0, + 'unqualified_qty': 0, + 'order_status': '3', + 'order_status_name': '生产中', + 'shift_type': null, + 'realproducestart_date': '2023-04-20 10:43:55', + 'realproduceend_date': '-' + }, + { + 'workorder_id': '1648195777525485568', + 'label': null, + 'device_name': '压机2', + 'material_code': 'ZLMCZ1001C111122GM001BD20-8', + 'material_name': null, + 'cust_name': null, + 'plan_qty': 10000, + 'real_qty': 0, + 'qualified_qty': 0, + 'unqualified_qty': 0, + 'order_status': '3', + 'order_status_name': '生产中', + 'shift_type': null, + 'realproducestart_date': '2023-04-18 13:34:36', + 'realproduceend_date': '-' + }, + { + 'workorder_id': '1647845461961498624', + 'label': null, + 'device_name': '压机1', + 'material_code': 'ZLMCZ1001C111122GM001BD20-8', + 'material_name': null, + 'cust_name': null, + 'plan_qty': 10000, + 'real_qty': 0, + 'qualified_qty': 0, + 'unqualified_qty': 0, + 'order_status': '3', + 'order_status_name': '生产中', + 'shift_type': null, + 'realproducestart_date': '2023-04-17 14:18:58', + 'realproduceend_date': '-' + }, + { + 'workorder_id': '1650040960085835776', + 'label': null, + 'device_name': '压机3', + 'material_code': 'ZLMCZ1001C111122GM001BD20-8', + 'material_name': null, + 'cust_name': null, + 'plan_qty': 100000, + 'real_qty': 100004, + 'qualified_qty': 99807, + 'unqualified_qty': 197, + 'order_status': '5', + 'order_status_name': '完成', + 'shift_type': null, + 'realproducestart_date': '2023-04-23 15:38:03', + 'realproduceend_date': '2023-04-24 12:01:03' + }, + { + 'workorder_id': '1649231836326563840', + 'label': null, + 'device_name': '压机3', + 'material_code': 'ZLMCZ1001C122211GM001BD20-8', + 'material_name': null, + 'cust_name': null, + 'plan_qty': 100000, + 'real_qty': 276285, + 'qualified_qty': 263808, + 'unqualified_qty': 12477, + 'order_status': '5', + 'order_status_name': '完成', + 'shift_type': null, + 'realproducestart_date': '2023-04-21 10:10:40', + 'realproduceend_date': '2023-04-23 14:17:33' + }, + { + 'workorder_id': '1648871924408909824', + 'label': null, + 'device_name': '压机3', + 'material_code': 'ZLMCZ1001C111122GM001BD20-8', + 'material_name': null, + 'cust_name': null, + 'plan_qty': 100000, + 'real_qty': 0, + 'qualified_qty': 0, + 'unqualified_qty': 0, + 'order_status': '5', + 'order_status_name': '完成', + 'shift_type': null, + 'realproducestart_date': '2023-04-20 10:11:33', + 'realproduceend_date': '2023-04-21 09:44:15' + }, + { + 'workorder_id': '1648869698739240960', + 'label': null, + 'device_name': '压机3', + 'material_code': 'ZLMCZ1001C111122GM001BD20-8', + 'material_name': null, + 'cust_name': null, + 'plan_qty': 100000, + 'real_qty': 1652528, + 'qualified_qty': 1549371, + 'unqualified_qty': 103157, + 'order_status': '5', + 'order_status_name': '完成', + 'shift_type': null, + 'realproducestart_date': '2023-04-20 10:03:54', + 'realproduceend_date': '2023-04-20 10:03:54' + }, + { + 'workorder_id': '1648860718914801664', + 'label': null, + 'device_name': '压机3', + 'material_code': 'ZLMCZ1001C111122GM001BD20-8', + 'material_name': null, + 'cust_name': null, + 'plan_qty': 10000, + 'real_qty': 1652528, + 'qualified_qty': 1549371, + 'unqualified_qty': 103157, + 'order_status': '5', + 'order_status_name': '完成', + 'shift_type': null, + 'realproducestart_date': '-', + 'realproduceend_date': '2023-04-20 09:37:49' + } + ] + } + } + return res +} diff --git a/src/pages/ProdCount.vue b/src/pages/ProdCount.vue new file mode 100644 index 0000000..098bc02 --- /dev/null +++ b/src/pages/ProdCount.vue @@ -0,0 +1,755 @@ + + + + + + + + + 今日压制量: + + {{item}} + + 吨 + + + + 今日干燥量: + + {{item}} + + 吨 + + + + 今日成品量: + + {{item}} + + 吨 + + + + + 混碾生产 + + + + + + 成品计划完成情况 + + + + + + + + 生产任务 + + + 设备物料编码计划数量/重量实际数量/重量合格数量/重量不合格数量/重量生产状态开始时间结束时间 + + + + + {{e.device_name}}{{e.material_code}}{{e.plan_qty}}{{e.real_qty}}{{e.qualified_qty}}{{e.unqualified_qty}}{{e.order_status_name}}{{e.realproducestart_date}}{{e.realproduceend_date}} + + + + + + + + + + + diff --git a/src/router/index.js b/src/router/index.js index 1ccdf4c..1d11fec 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -7,6 +7,8 @@ const DeviceScreen = r => require.ensure([], () => r(require('@page/DeviceScreen const WorkshopScreen = r => require.ensure([], () => r(require('@page/WorkshopScreen')), 'WorkshopScreen') const HomeScreen = r => require.ensure([], () => r(require('@page/HomeScreen')), 'HomeScreen') +const ProdCount = r => require.ensure([], () => r(require('@page/ProdCount')), 'ProdCount') + Vue.use(Router) export default new Router({ @@ -35,6 +37,10 @@ export default new Router({ { path: '/HomeScreen', component: HomeScreen + }, + { + path: '/ProdCount', + component: ProdCount } ] })