Files
screen-huahong/src/config/mork2.js

1092 lines
24 KiB
JavaScript
Raw Normal View History

2024-02-19 17:27:25 +08:00
/**
* 新版大屏首页左侧报表
*/
export const homepageDataLeft = () => {
let res = {
// 当日混料 最多7个元素
'todayMix': [
{
// 物料编码
'materialCode': 'GBMCZ3027L323217GM003ZX22-30',
'materialName': '物料一',
// 需生产
'plan': 14,
// 已生产
'real': 17
},
{
// 物料编码
'materialCode': 'GBMCZ3027L323217GM003ZX22-30',
'materialName': '物料二',
// 需生产
'plan': 14,
// 已生产
'real': 16
},
{
// 物料编码
'materialCode': 'GBMCZ3027L323217GM003ZX22-30',
'materialName': '物料三',
// 需生产
'plan': 20,
// 已生产
'real': 16
},
{
// 物料编码
'materialCode': 'GBMCZ3027L323217GM003ZX22-30',
'materialName': '物料四',
// 需生产
'plan': 14,
// 已生产
'real': 16
},
{
// 物料编码
'materialCode': 'GBMCZ3027L323217GM003ZX22-30',
'materialName': '物料五',
// 需生产
'plan': 14,
// 已生产
'real': 16
},
{
// 物料编码
'materialCode': 'GBMCZ3027L323217GM003ZX22-31',
'materialName': '物料6',
// 需生产
'plan': 14,
// 已生产
'real': 16
},
{
// 物料编码
'materialCode': 'GBMCZ3027L323217GM003ZX22-32',
'materialName': '物料7',
// 需生产
'plan': 14,
// 已生产
'real': 16
}
],
// 当日成品 最多7个元素
'todaySort': [
{
// 物料编码
'materialCode': 'GBMCZ3027L323217GM003ZX22-30',
// 需生产
'plan': 10,
// 已压制
'press': 20,
// 已完成
'real': 30
},
{
// 物料编码
'materialCode': 'GBMCZ3027L323217GM003ZX22-30',
// 需生产
'plan': 10,
// 已压制
'press': 20,
// 已完成
'real': 30
},
{
// 物料编码
'materialCode': 'GBMCZ3027L323217GM003ZX22-30',
// 需生产
'plan': 10,
// 已压制
'press': 20,
// 已完成
'real': 30
},
{
// 物料编码
'materialCode': 'GBMCZ3027L323217GM003ZX22-30',
// 需生产
'plan': 10,
// 已压制
'press': 20,
// 已完成
'real': 30
},
{
// 物料编码
'materialCode': 'GBMCZ3027L323217GM003ZX22-30',
// 需生产
'plan': 10,
// 已压制
'press': 20,
// 已完成
'real': 30
},
{
// 物料编码
'materialCode': 'GBMCZ3027L323217GM003ZX22-30',
// 需生产
'plan': 10,
// 已压制
'press': 20,
// 已完成
'real': 30
},
{
// 物料编码
'materialCode': 'GBMCZ3027L323217GM003ZX22-30',
// 需生产
'plan': 10,
// 已压制
'press': 20,
// 已完成
'real': 30
}
],
// 今日生产
'todayProduction': {
// 压制
'todayPressProduction': {
// 已生产
'real': 2122,
// 计划生产
'plan': 8400
},
// 包装
'todaySortProduction': {
// 已生产
'real': 0,
// 计划生产
'plan': 0
},
// 订单完成
'orderFulfillmentRate': {
// 已生产
'real': 2122,
// 计划生产
'plan': 8400
},
// 混料
'todayMixProduction': {
// 已生产
'real': 0.0,
// 计划生产
'plan': 0.0
},
todayTotalPlan: '80',
materialCountSize: '2',
sortCompleted: '11',
sortCompletedQty: '900',
sortMaterialCountSize: '1',
fulfillmentRate: '25'
// 信息
// 'message': '今日共需生产<span>8400</span>块物料种类2种已完成包装11托共900块1个物料完成率25%。'
},
// 历史分析 固定7个元素
'history': [
{
// 日期
'date': '12月31日',
// 成品
'sort': 0,
// 压制
'press': 1890
},
{
'date': '12月31日',
'sort': 0,
'press': 2640
},
{
'date': '12月31日',
'sort': 0,
'press': 5364
},
{
'date': '12月31日',
'sort': 720,
'press': 4962
},
{
'date': '12月31日',
'sort': 1584,
'press': 1260
},
{
'date': '12月31日',
'sort': 1872,
'press': 2400
},
{
'date': '12月31日',
'sort': 576,
'press': 630
}
],
// 库存量监控 最多7个元素
'inventory': [
{
// 物料编码
'materialCode': 'GBMCZ3027L323217GM003ZX22-31',
'materialName': '物料一',
// 数量
'qty': 1
},
{
// 物料编码
'materialCode': 'GBMCZ3027L323217GM003ZX22-32',
'materialName': '物料二',
// 数量
'qty': 2
},
{
// 物料编码
'materialCode': 'GBMCZ3027L323217GM003ZX22-3',
'materialName': '物料三',
// 数量
'qty': 3
},
{
// 物料编码
'materialCode': 'GBMCZ3027L323217GM003ZX22-4',
'materialName': '物料四',
// 数量
'qty': 4
},
{
// 物料编码
'materialCode': 'GBMCZ3027L323217GM003ZX22-5',
'materialName': '物料五',
// 数量
'qty': 5
},
{
// 物料编码
'materialCode': 'GBMCZ3027L323217GM003ZX22-6',
'materialName': '物料6',
// 数量
'qty': 6
},
{
// 物料编码
'materialCode': 'GBMCZ3027L323217GM003ZX22-7',
'materialName': '物料7',
// 数量
'qty': 7
}
]
}
return res
}
/**
* 新版大屏首页右侧报表
*/
export const homepageDataRight = () => {
let res = {
'capacityRate': [{'device_name': '混料设备', 'numerical': '60'}, {'device_name': '压制设备', 'numerical': '60'}, {'device_name': '压制设备2', 'numerical': '60'}, {'device_name': '压制设备3', 'numerical': '60'}],
'stateStatistics': {
count: '20',
fourState: [{'status': '5', 'stateName': '正常运行'}, {'status': '5', 'stateName': '暂未生产'}, {'status': '5', 'stateName': '空闲设备'}, {'status': '5', 'stateName': '故障设备'}]
},
'areaDeviceStatus': {
'mix': {
'running': 7,
'pausing': 3,
'shutdown': 4,
'inTrouble': 1
},
'press': {
'running': 4,
'pausing': 2,
'shutdown': 1,
'inTrouble': 0
},
'dry': {
'running': 4,
'pausing': 7,
'shutdown': 8,
'inTrouble': 2
},
'sort': {
'running': 7,
'pausing': 3,
'shutdown': 3,
'inTrouble': 1
}
},
'top10Of30Days': [
{
'device_name': '压机1',
'count': 10
},
{
'device_name': '压机2',
'count': 9
},
{
'device_name': '混料机1',
'count': 8
},
{
'device_name': '窑1',
'count': 7
},
{
'device_name': '分拣拆垛机械手1',
'count': 6
},
{
'device_name': '压机7',
'count': 5
},
{
'device_name': '码垛机械手1',
'count': 4
},
{
'device_name': '窑前桁架1',
'count': 3
},
{
'device_name': '拆盘机1',
'count': 2
},
{
'device_name': '覆膜机1',
'count': 1
}
],
'deviceWorkOrder': [
{
'process': '压制',
'deviceCode': 'YJ01',
'deviceName': '压机1',
'status': '2',
'workOrder': 'GD0001',
'bom': '1001C1',
'material': 'ZLMCZ1001C122211GM001BD20-8',
'qty': '1000块',
'startTime': '2023-11-20 14:32:32'
},
{
'process': '压制',
'deviceCode': 'YJ01',
'deviceName': '压机1',
'status': '0',
'workOrder': 'GD0001',
'bom': '1001C1',
'material': 'ZLMCZ1001C122211GM001BD20-8',
'qty': '1000块',
'startTime': '2023-11-20 14:32:32'
},
{
'process': '压制',
'deviceCode': 'YJ01',
'deviceName': '压机1',
'status': '1',
'workOrder': 'GD0001',
'bom': '1001C1',
'material': 'ZLMCZ1001C122211GM001BD20-8',
'qty': '1000块',
'startTime': '2023-11-20 14:32:32'
},
{
'process': '压制',
'deviceCode': 'YJ01',
'deviceName': '压机1',
'status': '1',
'workOrder': 'GD0001',
'bom': '1001C1',
'material': 'ZLMCZ1001C122211GM001BD20-8',
'qty': '1000块',
'startTime': '2023-11-20 14:32:32'
},
{
'process': '压制',
'deviceCode': 'YJ01',
'deviceName': '压机1',
'status': '1',
'workOrder': 'GD0001',
'bom': '1001C1',
'material': 'ZLMCZ1001C122211GM001BD20-8',
'qty': '1000块',
'startTime': '2023-11-20 14:32:32'
}
]
}
return res
}
/**
* 大屏首页设备
*/
2024-03-06 15:40:46 +08:00
export const deviceCondition = () => {
2024-02-28 10:40:36 +08:00
let res = {
2024-03-06 15:40:46 +08:00
'MixMachineList': [
{
'device_status': 2,
'error_time': 0,
'stand_time': 10,
'real_qty': 255,
'device_code': 'HNJ01',
'mix_num': 2,
'open_time': '09:54:53.147',
'work_time': 10,
'error': 0
},
{
'device_status': 2,
'error_time': 0,
'stand_time': 10,
'real_qty': 255,
'device_code': 'HNJ02',
'mix_num': 2,
'open_time': '09:54:53.147',
'work_time': 10,
'error': 0
},
{
'device_status': 2,
'error_time': 0,
'stand_time': 10,
'real_qty': 255,
'device_code': 'HNJ03',
'mix_num': 2,
'open_time': '09:54:53.147',
'work_time': 10,
'error': 0
},
{
'device_status': 2,
'error_time': 0,
'stand_time': 10,
'real_qty': 255,
'device_code': 'HNJ04',
'mix_num': 2,
'open_time': '09:54:53.147',
'work_time': 10,
'error': 0
},
{
'device_status': 2,
'error_time': 0,
'stand_time': 10,
'real_qty': 255,
'device_code': 'HNJ05',
'mix_num': 2,
'open_time': '09:54:53.147',
'work_time': 10,
'error': 0
},
{
'device_status': 2,
'error_time': 0,
'stand_time': 10,
'real_qty': 255,
'device_code': 'HNJ06',
'mix_num': 2,
'open_time': '09:54:53.147',
'work_time': 10,
'error': 0
},
{
'device_status': 2,
'error_time': 0,
'stand_time': 10,
'real_qty': 255,
'device_code': 'HNJ07',
'mix_num': 2,
'open_time': '09:54:53.147',
'work_time': 10,
'error': 0
},
{
'device_status': 2,
'error_time': 0,
'stand_time': 10,
'real_qty': 255,
'device_code': 'HNJ08',
'mix_num': 2,
'open_time': '09:54:53.147',
'work_time': 10,
'error': 0
}
],
'ManipulatorInfoList': [
{
'device_status': 3,
'error_time': 0,
'stand_time': 10,
'real_qty': 255,
'color_status': 3,
'device_code': 'FJCDJXS01',
'open_time': '06:54:53.147',
'work_time': 40,
'error': 0
},
{
'device_status': 3,
'error_time': 0,
'stand_time': 10,
'real_qty': 255,
'color_status': 3,
'device_code': 'FJMDJXS01',
'open_time': '06:54:53.147',
'work_time': 40,
'error': 0
},
{
'device_status': 3,
'error_time': 0,
'stand_time': 10,
'real_qty': 255,
'color_status': 3,
'device_code': 'FJMDJXS02',
'open_time': '06:54:53.147',
'work_time': 40,
'error': 0
},
{
'device_status': 3,
'error_time': 0,
'stand_time': 10,
'color_status': 3,
'device_code': 'YZJXS01',
'open_time': '07:54:53.147',
'work_time': 50,
'error': 0
},
{
'device_status': 3,
'error_time': 0,
'stand_time': 10,
'color_status': 3,
'device_code': 'YZJXS02',
'open_time': '07:54:53.147',
'work_time': 50,
'error': 0
},
{
'device_status': 3,
'error_time': 0,
'stand_time': 10,
'color_status': 3,
'device_code': 'YZJXS03',
'open_time': '07:54:53.147',
'work_time': 50,
'error': 0
},
{
'device_status': 3,
'error_time': 0,
'stand_time': 10,
'color_status': 3,
'device_code': 'YZJXS04',
'open_time': '07:54:53.147',
'work_time': 50,
'error': 0
},
{
'device_status': 3,
'error_time': 0,
'stand_time': 10,
'color_status': 3,
'device_code': 'YZJXS05',
'open_time': '07:54:53.147',
'work_time': 50,
'error': 0
}
],
'SortAndPalletizingList': [
{
'mode': 3,
'move': 2,
'color_status': 2,
'device_code': 'FJ01CDW01',
'error': 0,
'encoder_qty': 100,
'barcode': 10010
},
{
'mode': 3,
'move': 2,
'color_status': 2,
'device_code': 'FJ01CDW02',
'error': 0,
'encoder_qty': 100,
'barcode': 10010
2024-03-06 18:52:05 +08:00
},
{
'mode': 3,
'move': 2,
'color_status': 2,
'device_code': 'FJ01MDW01',
'error': 0,
'encoder_qty': 100,
'barcode': 10010
},
{
'mode': 3,
'move': 2,
'color_status': 2,
'device_code': 'FJ01MDW02',
'error': 0,
'encoder_qty': 100,
'barcode': 10010
2024-03-06 15:40:46 +08:00
}
],
'PressMachineList': [
{
'device_status': 2,
'error_time': 0,
'stand_time': 10,
'real_qty': 255,
'device_code': 'YJ01',
'open_time': '05:54:53.147',
'work_time': 20,
'current_weight': 1000,
'error': 0,
'now_capacity': '255'
},
{
'device_status': 2,
'error_time': 0,
'stand_time': 10,
'real_qty': 255,
'device_code': 'YJ02',
'open_time': '05:54:53.147',
'work_time': 20,
'current_weight': 1000,
'error': 0,
'now_capacity': '255'
},
{
'device_status': 2,
'error_time': 0,
'stand_time': 10,
'real_qty': 255,
'device_code': 'YJ03',
'open_time': '05:54:53.147',
'work_time': 20,
'current_weight': 1000,
'error': 0,
'now_capacity': '255'
},
{
'device_status': 2,
'error_time': 0,
'stand_time': 10,
'real_qty': 255,
'device_code': 'YJ04',
'open_time': '05:54:53.147',
'work_time': 20,
'current_weight': 1000,
'error': 0,
'now_capacity': '255'
},
{
'device_status': 2,
'error_time': 0,
'stand_time': 10,
'real_qty': 255,
'device_code': 'YJ05',
'open_time': '05:54:53.147',
'work_time': 20,
'current_weight': 1000,
'error': 0,
'now_capacity': '255'
},
{
'device_status': 2,
'error_time': 0,
'stand_time': 10,
'real_qty': 255,
'device_code': 'YJ06',
'open_time': '05:54:53.147',
'work_time': 20,
'current_weight': 1000,
'error': 0,
'now_capacity': '255'
},
{
'device_status': 2,
'error_time': 0,
'stand_time': 10,
'real_qty': 255,
'device_code': 'YJ07',
'open_time': '05:54:53.147',
'work_time': 20,
'current_weight': 1000,
'error': 0,
'now_capacity': '255'
},
{
'device_status': 2,
'error_time': 0,
'stand_time': 10,
'real_qty': 255,
'device_code': 'YJ08',
'open_time': '05:54:53.147',
'work_time': 20,
'current_weight': 1000,
'error': 0,
'now_capacity': '255'
}
],
'MixBlankingList': [
{
'pointStatus': '1',
'pointName': '混碾机01对接位',
'pointCode': 'HNJ01DJW'
},
{
'pointStatus': '1',
'pointName': '混碾机02对接位',
'pointCode': 'HNJ02DJW'
},
{
'pointStatus': '1',
'pointName': '混碾机03对接位',
'pointCode': 'HNJ03DJW'
},
{
'pointStatus': '1',
'pointName': '混碾机04对接位',
'pointCode': 'HNJ04DJW'
},
{
'pointStatus': '1',
'pointName': '混碾机05对接位',
'pointCode': 'HNJ05DJW'
},
{
'pointStatus': '1',
'pointName': '混碾机06对接位',
'pointCode': 'HNJ06DJW'
},
{
'pointStatus': '1',
'pointName': '混碾机07对接位',
'pointCode': 'HNJ07DJW'
},
{
'pointStatus': '1',
'pointName': '混碾机08对接位',
'pointCode': 'HNJ08DJW'
}
],
'StackingPositionList': [
{
'mode': 3,
'move': 2,
'color_status': 2,
'device_code': 'YJ01XLW01',
'error': 0,
'encoder_qty': 100,
'barcode': 10010
},
{
'mode': 3,
'move': 2,
'color_status': 2,
'device_code': 'YJ01XLW02',
'error': 0,
'encoder_qty': 100,
'barcode': 10010
},
{
'mode': 3,
'move': 2,
'color_status': 2,
'device_code': 'YJ02XLW01',
'error': 0,
'encoder_qty': 100,
'barcode': 10010
},
{
'mode': 3,
'move': 2,
'color_status': 2,
'device_code': 'YJ02XLW02',
'error': 0,
'encoder_qty': 100,
'barcode': 10010
},
{
'mode': 3,
'move': 2,
'color_status': 2,
'device_code': 'YJ03XLW01',
'error': 0,
'encoder_qty': 100,
'barcode': 10010
},
{
'mode': 3,
'move': 2,
'color_status': 2,
'device_code': 'YJ03XLW02',
'error': 0,
'encoder_qty': 100,
'barcode': 10010
},
{
'mode': 3,
'move': 2,
'color_status': 2,
'device_code': 'YJ04XLW01',
'error': 0,
'encoder_qty': 100,
'barcode': 10010
},
{
'mode': 3,
'move': 2,
'color_status': 2,
'device_code': 'YJ04XLW02',
'error': 0,
'encoder_qty': 100,
'barcode': 10010
},
{
'mode': 3,
'move': 2,
'color_status': 2,
'device_code': 'YJ05XLW01',
'error': 0,
'encoder_qty': 100,
'barcode': 10010
},
{
'mode': 3,
'move': 2,
'color_status': 2,
'device_code': 'YJ05XLW02',
'error': 0,
'encoder_qty': 100,
'barcode': 10010
},
{
'mode': 3,
'move': 2,
'color_status': 2,
'device_code': 'YJ06XLW01',
'error': 0,
'encoder_qty': 100,
'barcode': 10010
},
{
'mode': 3,
'move': 2,
'color_status': 2,
'device_code': 'YJ06XLW02',
'error': 0,
'encoder_qty': 100,
'barcode': 10010
},
{
'mode': 3,
'move': 2,
'color_status': 2,
'device_code': 'YJ07XLW01',
'error': 0,
'encoder_qty': 100,
'barcode': 10010
},
{
'mode': 3,
'move': 2,
'color_status': 2,
'device_code': 'YJ07XLW02',
'error': 0,
'encoder_qty': 100,
'barcode': 10010
},
{
'mode': 3,
'move': 2,
'color_status': 2,
'device_code': 'YJ08XLW01',
'error': 0,
'encoder_qty': 100,
'barcode': 10010
},
{
'mode': 3,
'move': 2,
'color_status': 2,
'device_code': 'YJ08XLW02',
'error': 0,
'encoder_qty': 100,
'barcode': 10010
}
]
2024-02-28 10:40:36 +08:00
}
2024-02-19 17:27:25 +08:00
return res
}
2024-03-06 18:52:05 +08:00
/**
* 入窑输送线弹窗
*/
export const inOutKilnDetail = () => {
let res = [
{
'stat': '1',
'pointName': '入窑输送线',
'workTime': '3.5',
'palletNum': '0',
'materialNum': '25000',
'deliveredPalletNum': '0',
'deliveredMaterialNum': null
},
{
'stat': '1',
'pointName': '出窑输送线',
'workTime': '3.5',
'palletNum': '0',
'materialNum': '25000',
'deliveredPalletNum': '0',
'deliveredMaterialNum': '25000'
}
]
return res
}
/**
* 窑弹出框
*/
export const kilnDetail = () => {
let res = {
'pointName': '窑1',
'workTime': 'string',
'palletNum': 'string',
'materialNum': 'string',
'produceNum': 'string',
'materialInfos': [
'string'
]
}
return res
}
/**
* 大屏-两侧图表
*/
export const screenTableData = () => {
let res = {
'deviceErrorRecordList': [
{
'deviceCode': 'YJ06',
'deviceName': '压机06',
'errorInfo': '故障',
'errorTime': '2024-02-28 13:02:44'
},
{
'deviceCode': 'YJ01',
'deviceName': '压机01',
'errorInfo': '故障',
'errorTime': '2024-02-28 13:02:44'
},
{
'deviceCode': 'YJ02',
'deviceName': '压机02',
'errorInfo': '故障',
'errorTime': '2024-02-28 13:02:44'
},
{
'deviceCode': 'YJ03',
'deviceName': '压机03',
'errorInfo': '故障',
'errorTime': '2024-02-28 13:02:44'
},
{
'deviceCode': 'YJ03',
'deviceName': '压机03',
'errorInfo': '故障',
'errorTime': '2024-02-28 13:02:44'
}
],
'mixingList': [
{
'materialName': '004',
'planQty': '0',
'realQty': '0'
}
],
'historyList': [
{
'produceDate': '03-06',
'suppressedNum': '800',
'finishedNum': '0'
}
],
'deviceErrorList': [
{
2024-03-07 01:01:51 +08:00
'deviceName': '压机01',
'errorNum': '1'
},
{
'deviceName': '压机02',
2024-03-06 18:52:05 +08:00
'errorNum': '2'
},
2024-03-07 01:01:51 +08:00
{
'deviceName': '压机03',
'errorNum': '3'
},
{
'deviceName': '压机04',
'errorNum': '4'
},
{
'deviceName': '压机05',
'errorNum': '5'
},
2024-03-06 18:52:05 +08:00
{
'deviceName': '压机06',
2024-03-07 01:01:51 +08:00
'errorNum': '6'
2024-03-06 18:52:05 +08:00
},
{
2024-03-07 01:01:51 +08:00
'deviceName': '压机07',
'errorNum': '7'
2024-03-06 18:52:05 +08:00
},
{
2024-03-07 01:01:51 +08:00
'deviceName': '压机08',
'errorNum': '8'
},
{
'deviceName': '压机09',
'errorNum': '9'
},
{
'deviceName': '压机10',
'errorNum': '10'
2024-03-06 18:52:05 +08:00
}
],
'deviceRunStat': {
'total': 240,
'runNum': 0,
'unProducedNum': 240,
'freeNum': 0,
'errorNum': 0
},
'productList': [
{
'materialName': '001',
'requiredNum': '1000',
'suppressedNum': '378',
2024-03-07 01:01:51 +08:00
'finishedNum': '100'
2024-03-06 18:52:05 +08:00
},
{
'materialName': '003',
'requiredNum': '1000',
'suppressedNum': '756',
'finishedNum': '0'
},
{
'materialName': '004',
'requiredNum': '6000',
'suppressedNum': '7846',
'finishedNum': '0'
}
]
}
return res
}