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 productionStatistics = (id) => post('api/dashboard/productionStatistics', {}) // export const productionStatistics = () => { // let res = { // 'total': { // 'pressWeight': 0, // 'dryWeight': 0, // 'sortWeight': 0 // }, // 'mixProduction': [ // { // 'value': 0, // 'name': 'string' // } // ], // 'pressProduction': { // 'dailyProductionQty': 0, // 'dailyProductionWeight': 0, // 'equipmentProduction': [ // { // 'name': 'string', // 'qty': 0, // 'weight': 0 // } // ] // }, // 'finishedProductCompletionRate': [ // { // 'name': 'string', // 'completed': 0, // 'uncompleted': 0 // } // ], // 'workOrder': [ // { // 'workOrderCode': 'string', // 'equipment': 'string', // 'materialCode': 'string', // 'customer': 'string', // 'planned': 0, // 'completed': 0, // 'status': 'string', // 'planStartTime': 'string', // 'startTime': 'string', // 'endTime': 'string' // } // ] // } // return res // }