This commit is contained in:
2024-03-07 18:09:36 +08:00
parent 786415bce6
commit 21ba8d723f
4 changed files with 399 additions and 4393 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1,422 +1,3 @@
/**
* 新版大屏首页左侧报表
*/
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
}
/**
* 大屏首页设备
*/
@@ -514,83 +95,83 @@ export const deviceCondition = () => {
],
'ManipulatorInfoList': [
{
'device_status': 3,
'device_status': 2,
'error_time': 0,
'stand_time': 10,
'real_qty': 255,
'color_status': 3,
'color_status': 2,
'device_code': 'FJCDJXS01',
'open_time': '06:54:53.147',
'work_time': 40,
'error': 0
},
{
'device_status': 3,
'device_status': 2,
'error_time': 0,
'stand_time': 10,
'real_qty': 255,
'color_status': 3,
'color_status': 2,
'device_code': 'FJMDJXS01',
'open_time': '06:54:53.147',
'work_time': 40,
'error': 0
},
{
'device_status': 3,
'device_status': 2,
'error_time': 0,
'stand_time': 10,
'real_qty': 255,
'color_status': 3,
'color_status': 2,
'device_code': 'FJMDJXS02',
'open_time': '06:54:53.147',
'work_time': 40,
'error': 0
},
{
'device_status': 3,
'device_status': 2,
'error_time': 0,
'stand_time': 10,
'color_status': 3,
'color_status': 2,
'device_code': 'YZJXS01',
'open_time': '07:54:53.147',
'work_time': 50,
'error': 0
},
{
'device_status': 3,
'device_status': 2,
'error_time': 0,
'stand_time': 10,
'color_status': 3,
'color_status': 2,
'device_code': 'YZJXS02',
'open_time': '07:54:53.147',
'work_time': 50,
'error': 0
},
{
'device_status': 3,
'device_status': 2,
'error_time': 0,
'stand_time': 10,
'color_status': 3,
'color_status': 2,
'device_code': 'YZJXS03',
'open_time': '07:54:53.147',
'work_time': 50,
'error': 0
},
{
'device_status': 3,
'device_status': 2,
'error_time': 0,
'stand_time': 10,
'color_status': 3,
'color_status': 2,
'device_code': 'YZJXS04',
'open_time': '07:54:53.147',
'work_time': 50,
'error': 0
},
{
'device_status': 3,
'device_status': 2,
'error_time': 0,
'stand_time': 10,
'color_status': 3,
'color_status': 2,
'device_code': 'YZJXS05',
'open_time': '07:54:53.147',
'work_time': 50,
@@ -600,8 +181,8 @@ export const deviceCondition = () => {
'SortAndPalletizingList': [
{
'mode': 3,
'device_status': 2,
'move': 2,
'color_status': 2,
'device_code': 'FJ01CDW01',
'error': 0,
'encoder_qty': 100,
@@ -609,8 +190,8 @@ export const deviceCondition = () => {
},
{
'mode': 3,
'device_status': 2,
'move': 2,
'color_status': 2,
'device_code': 'FJ01CDW02',
'error': 0,
'encoder_qty': 100,
@@ -618,8 +199,8 @@ export const deviceCondition = () => {
},
{
'mode': 3,
'device_status': 2,
'move': 2,
'color_status': 2,
'device_code': 'FJ01MDW01',
'error': 0,
'encoder_qty': 100,
@@ -627,14 +208,46 @@ export const deviceCondition = () => {
},
{
'mode': 3,
'device_status': 2,
'move': 2,
'color_status': 2,
'device_code': 'FJ01MDW02',
'error': 0,
'encoder_qty': 100,
'barcode': 10010
}
],
'manualSortingList': [
{
'pointStatus': '1',
'pointName': '人工分拣拆01',
'pointCode': 'RGFJC01'
},
{
'pointStatus': '2',
'pointName': '人工分拣拆02',
'pointCode': 'RGFJC02'
},
{
'pointStatus': '2',
'pointName': '人工分拣拆03',
'pointCode': 'RGFJC03'
},
{
'pointStatus': '1',
'pointName': '人工分拣拆04',
'pointCode': 'RGFJC04'
},
{
'pointStatus': '1',
'pointName': '人工分拣拆05',
'pointCode': 'RGFJC05'
},
{
'pointStatus': '1',
'pointName': '人工分拣拆06',
'pointCode': 'RGFJC06'
}
],
'PressMachineList': [
{
'device_status': 2,
@@ -775,11 +388,233 @@ export const deviceCondition = () => {
'pointCode': 'HNJ08DJW'
}
],
'hchjList': [
{
'pointStatus': '1',
'pointName': '缓存货架01',
'pointCode': 'HCHJ01'
},
{
'pointStatus': '1',
'pointName': '缓存货架02',
'pointCode': 'HCHJ02'
},
{
'pointStatus': '1',
'pointName': '缓存货架03',
'pointCode': 'HCHJ03'
},
{
'pointStatus': '1',
'pointName': '缓存货架04',
'pointCode': 'HCHJ04'
},
{
'pointStatus': '1',
'pointName': '缓存货架05',
'pointCode': 'HCHJ05'
},
{
'pointStatus': '1',
'pointName': '缓存货架06',
'pointCode': 'HCHJ06'
},
{
'pointStatus': '1',
'pointName': '缓存货架07',
'pointCode': 'HCHJ07'
},
{
'pointStatus': '1',
'pointName': '缓存货架08',
'pointCode': 'HCHJ08'
},
{
'pointStatus': '1',
'pointName': '缓存货架09',
'pointCode': 'HCHJ09'
},
{
'pointStatus': '1',
'pointName': '缓存货架10',
'pointCode': 'HCHJ10'
},
{
'pointStatus': '1',
'pointName': '缓存货架11',
'pointCode': 'HCHJ11'
},
{
'pointStatus': '3',
'pointName': '缓存货架12',
'pointCode': 'HCHJ12'
},
{
'pointStatus': '3',
'pointName': '缓存货架13',
'pointCode': 'HCHJ13'
},
{
'pointStatus': '3',
'pointName': '缓存货架14',
'pointCode': 'HCHJ14'
},
{
'pointStatus': '3',
'pointName': '缓存货架15',
'pointCode': 'HCHJ15'
},
{
'pointStatus': '3',
'pointName': '缓存货架16',
'pointCode': 'HCHJ16'
},
{
'pointStatus': '3',
'pointName': '缓存货架17',
'pointCode': 'HCHJ17'
},
{
'pointStatus': '3',
'pointName': '缓存货架18',
'pointCode': 'HCHJ18'
},
{
'pointStatus': '1',
'pointName': '缓存货架19',
'pointCode': 'HCHJ19'
},
{
'pointStatus': '1',
'pointName': '缓存货架20',
'pointCode': 'HCHJ20'
},
{
'pointStatus': '1',
'pointName': '缓存货架21',
'pointCode': 'HCHJ21'
},
{
'pointStatus': '1',
'pointName': '缓存货架22',
'pointCode': 'HCHJ22'
},
{
'pointStatus': '1',
'pointName': '缓存货架23',
'pointCode': 'HCHJ23'
},
{
'pointStatus': '1',
'pointName': '缓存货架24',
'pointCode': 'HCHJ24'
},
{
'pointStatus': '1',
'pointName': '缓存货架25',
'pointCode': 'HCHJ25'
},
{
'pointStatus': '2',
'pointName': '缓存货架26',
'pointCode': 'HCHJ26'
},
{
'pointStatus': '2',
'pointName': '缓存货架27',
'pointCode': 'HCHJ27'
},
{
'pointStatus': '2',
'pointName': '缓存货架28',
'pointCode': 'HCHJ28'
},
{
'pointStatus': '2',
'pointName': '缓存货架29',
'pointCode': 'HCHJ29'
},
{
'pointStatus': '2',
'pointName': '缓存货架30',
'pointCode': 'HCHJ30'
},
{
'pointStatus': '2',
'pointName': '缓存货架31',
'pointCode': 'HCHJ31'
},
{
'pointStatus': '2',
'pointName': '缓存货架32',
'pointCode': 'HCHJ32'
},
{
'pointStatus': '2',
'pointName': '缓存货架33',
'pointCode': 'HCHJ33'
},
{
'pointStatus': '2',
'pointName': '缓存货架34',
'pointCode': 'HCHJ34'
},
{
'pointStatus': '1',
'pointName': '缓存货架35',
'pointCode': 'HCHJ35'
},
{
'pointStatus': '1',
'pointName': '缓存货架36',
'pointCode': 'HCHJ36'
},
{
'pointStatus': '1',
'pointName': '缓存货架37',
'pointCode': 'HCHJ37'
},
{
'pointStatus': '1',
'pointName': '缓存货架38',
'pointCode': 'HCHJ38'
},
{
'pointStatus': '1',
'pointName': '缓存货架39',
'pointCode': 'HCHJ39'
},
{
'pointStatus': '1',
'pointName': '缓存货架40',
'pointCode': 'HCHJ40'
},
{
'pointStatus': '1',
'pointName': '缓存货架41',
'pointCode': 'HCHJ41'
},
{
'pointStatus': '1',
'pointName': '缓存货架42',
'pointCode': 'HCHJ42'
},
{
'pointStatus': '1',
'pointName': '缓存货架43',
'pointCode': 'HCHJ43'
},
{
'pointStatus': '1',
'pointName': '缓存货架44',
'pointCode': 'HCHJ44'
}
],
'StackingPositionList': [
{
'mode': 3,
'device_status': 2,
'move': 2,
'color_status': 2,
'device_code': 'YJ01XLW01',
'error': 0,
'encoder_qty': 100,
@@ -787,8 +622,8 @@ export const deviceCondition = () => {
},
{
'mode': 3,
'device_status': 2,
'move': 2,
'color_status': 2,
'device_code': 'YJ01XLW02',
'error': 0,
'encoder_qty': 100,
@@ -796,8 +631,8 @@ export const deviceCondition = () => {
},
{
'mode': 3,
'device_status': 2,
'move': 2,
'color_status': 2,
'device_code': 'YJ02XLW01',
'error': 0,
'encoder_qty': 100,
@@ -805,8 +640,8 @@ export const deviceCondition = () => {
},
{
'mode': 3,
'device_status': 2,
'move': 2,
'color_status': 2,
'device_code': 'YJ02XLW02',
'error': 0,
'encoder_qty': 100,
@@ -814,8 +649,8 @@ export const deviceCondition = () => {
},
{
'mode': 3,
'device_status': 2,
'move': 2,
'color_status': 2,
'device_code': 'YJ03XLW01',
'error': 0,
'encoder_qty': 100,
@@ -823,8 +658,8 @@ export const deviceCondition = () => {
},
{
'mode': 3,
'device_status': 2,
'move': 2,
'color_status': 2,
'device_code': 'YJ03XLW02',
'error': 0,
'encoder_qty': 100,
@@ -832,8 +667,8 @@ export const deviceCondition = () => {
},
{
'mode': 3,
'device_status': 2,
'move': 2,
'color_status': 2,
'device_code': 'YJ04XLW01',
'error': 0,
'encoder_qty': 100,
@@ -841,8 +676,8 @@ export const deviceCondition = () => {
},
{
'mode': 3,
'device_status': 2,
'move': 2,
'color_status': 2,
'device_code': 'YJ04XLW02',
'error': 0,
'encoder_qty': 100,
@@ -850,8 +685,8 @@ export const deviceCondition = () => {
},
{
'mode': 3,
'device_status': 2,
'move': 2,
'color_status': 2,
'device_code': 'YJ05XLW01',
'error': 0,
'encoder_qty': 100,
@@ -859,8 +694,8 @@ export const deviceCondition = () => {
},
{
'mode': 3,
'device_status': 2,
'move': 2,
'color_status': 2,
'device_code': 'YJ05XLW02',
'error': 0,
'encoder_qty': 100,
@@ -868,8 +703,8 @@ export const deviceCondition = () => {
},
{
'mode': 3,
'device_status': 2,
'move': 2,
'color_status': 2,
'device_code': 'YJ06XLW01',
'error': 0,
'encoder_qty': 100,
@@ -877,8 +712,8 @@ export const deviceCondition = () => {
},
{
'mode': 3,
'device_status': 2,
'move': 2,
'color_status': 2,
'device_code': 'YJ06XLW02',
'error': 0,
'encoder_qty': 100,
@@ -886,8 +721,8 @@ export const deviceCondition = () => {
},
{
'mode': 3,
'device_status': 2,
'move': 2,
'color_status': 2,
'device_code': 'YJ07XLW01',
'error': 0,
'encoder_qty': 100,
@@ -895,8 +730,8 @@ export const deviceCondition = () => {
},
{
'mode': 3,
'device_status': 2,
'move': 2,
'color_status': 2,
'device_code': 'YJ07XLW02',
'error': 0,
'encoder_qty': 100,
@@ -904,8 +739,8 @@ export const deviceCondition = () => {
},
{
'mode': 3,
'device_status': 2,
'move': 2,
'color_status': 2,
'device_code': 'YJ08XLW01',
'error': 0,
'encoder_qty': 100,
@@ -913,8 +748,8 @@ export const deviceCondition = () => {
},
{
'mode': 3,
'device_status': 2,
'move': 2,
'color_status': 2,
'device_code': 'YJ08XLW02',
'error': 0,
'encoder_qty': 100,