import {post} from '@js/http.js' /** 1.1设备实时状态 */ export const deviceStatus = (id) => post('api/deviceScreen/deviceStatus', {}) /** 1.2设备综合效率OEE&产能利用效率TEEP */ export const oeeAndTeep = (id) => post('api/deviceScreen/oeeAndTeep', {}) /** 1.3运行设备大类产能比 */ export const queryDeviceByWork = (id) => post('api/deviceScreen/queryDeviceByWork', {}) /** 1.4设备TOP10故障次数 */ export const deviceErrorNum = (id) => post('api/deviceScreen/deviceErrorNum', {}) /** 1.5设备管理 */ export const deviceManage = (id) => post('api/deviceScreen/deviceManage', {}) /** 1.6设备综合统计 */ export const deviceCensus = (id) => post('api/deviceScreen/deviceCensus', {}) /** 1.7设备报警信息 */ export const deviceErrorInfo = (id) => post('api/deviceScreen/deviceErrorInfo', {}) /** 1.8设备产能利用 */ export const deviceUseRate = (id) => post('api/deviceScreen/deviceUseRate', {}) /** 1.9设备状态列表 */ export const deviceStatusList = (id) => post('api/deviceScreen/deviceStatusList', {}) /** 1.10近30天设备故障统计 */ 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 = () => { let res = { 'pressProduction': { 'dailyProductionQty': 32.25, 'equipmentProduction': [ { 'qty': 11000, 'name': '压机1', 'weight': 13000 }, { 'qty': 4000, 'name': '压机2', 'weight': 19000 }, { 'qty': 5000, 'name': '压机3', 'weight': 3000 }, { 'qty': 1120, 'name': '压机4', 'weight': 12010 }, { 'qty': 2000, 'name': '压机5', 'weight': 18200 }, { 'qty': 5900, 'name': '压机6', 'weight': 2000 }, { 'qty': 2220, 'name': '压机7', 'weight': 9010 }, { 'qty': 3000, 'name': '压机8', 'weight': 8200 }, { 'qty': 5000, 'name': '压机9', 'weight': 12000 } ], 'dailyProductionWeight': 64.25 }, 'workOrder': [ { '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': '完成' }, { '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': '未生产' } ], 'total': { 'pressWeight': 30.25, 'dryWeight': 20.25, 'sortWeight': 16.25 }, 'finishedProductCompletionRate': [ { 'uncompleted': 5000, 'name': '物料1', 'completed': 4000 }, { 'uncompleted': 3000, 'name': '物料2', 'completed': 4000 }, { 'uncompleted': 4000, 'name': '物料3', 'completed': 3000 } ], 'mixProduction': [ { 'name': '物料1', 'value': 800.25 }, { 'name': '物料2', 'value': 800.25 }, { 'name': '物料3', 'value': 900.25 }, { 'name': '物料4', 'value': 600.25 } ] } return res }