This commit is contained in:
2023-06-09 18:36:09 +08:00
parent d64e6a4650
commit 53ca0f3197
27 changed files with 1533 additions and 501 deletions

View File

@@ -10,5 +10,776 @@ export const deviceMonitor = () => post('api/cockpit/deviceMonitor', {
export const findDeviceById = (id) => post('api/cockpit/findDeviceById', {
id: id
})
// 车间情况
export const workshopCondition = () => post('api/cockpit/workshopCondition', {})
// 首页车间情况
// export const workshopCondition = () => post('api/cockpit/workshopCondition', {})
export const workshopCondition = () => {
let res = {
'code': 200,
'desc': '操作成功',
'result': {
'HLDayList': [
{
'plan_qty': 103000,
'real_qty': 46500,
'qualified_qty': 22500,
'unqualified_qty': 0,
'device_code': 'HLJ01',
'material_code': null,
'device_name': '混料机1',
'region_code': 'HL'
},
{
'plan_qty': 103000,
'real_qty': 49500,
'qualified_qty': 25500,
'unqualified_qty': 0,
'device_code': 'HLJ02',
'material_code': null,
'device_name': '混料机2',
'region_code': 'HL'
},
{
'plan_qty': 49000,
'real_qty': 24500,
'qualified_qty': 19500,
'unqualified_qty': 0,
'device_code': 'HLJ03',
'material_code': null,
'device_name': '混料机3',
'region_code': 'HL'
},
{
'plan_qty': 58000,
'real_qty': 38000,
'qualified_qty': 24000,
'unqualified_qty': 0,
'device_code': 'HLJ04',
'material_code': null,
'device_name': '混料机4',
'region_code': 'HL'
},
{
'plan_qty': 5000,
'real_qty': 3000,
'qualified_qty': 0,
'unqualified_qty': 0,
'device_code': 'HLJ05',
'material_code': null,
'device_name': '混料机5',
'region_code': 'HL'
},
{
'plan_qty': 0,
'real_qty': 0,
'qualified_qty': 0,
'unqualified_qty': 0,
'device_code': 'HLJ06',
'material_code': null,
'device_name': '混料机6',
'region_code': 'HL'
},
{
'plan_qty': 65080,
'real_qty': 0,
'qualified_qty': 0,
'unqualified_qty': 0,
'device_code': 'HLJ07',
'material_code': null,
'device_name': '混料机7',
'region_code': 'HL'
},
{
'plan_qty': 0,
'real_qty': 0,
'qualified_qty': 0,
'unqualified_qty': 0,
'device_code': 'HLJ08',
'material_code': null,
'device_name': '混料机8',
'region_code': 'HL'
},
{
'plan_qty': 0,
'real_qty': 0,
'qualified_qty': 0,
'unqualified_qty': 0,
'device_code': 'HLJ09',
'material_code': null,
'device_name': '混料机9',
'region_code': 'HL'
},
{
'plan_qty': 0,
'real_qty': 0,
'qualified_qty': 0,
'unqualified_qty': 0,
'device_code': 'HLJ10',
'material_code': null,
'device_name': '混料机10',
'region_code': 'HL'
},
{
'plan_qty': 0,
'real_qty': 0,
'qualified_qty': 0,
'unqualified_qty': 0,
'device_code': 'HLJ11',
'material_code': null,
'device_name': '混料机11',
'region_code': 'HL'
},
{
'plan_qty': 0,
'real_qty': 0,
'qualified_qty': 0,
'unqualified_qty': 0,
'device_code': 'HLJ12',
'material_code': null,
'device_name': '混料机12',
'region_code': 'HL'
},
{
'plan_qty': 14500,
'real_qty': 0,
'qualified_qty': 0,
'unqualified_qty': 0,
'device_code': 'HLJ13',
'material_code': null,
'device_name': '混料机13',
'region_code': 'HL'
},
{
'plan_qty': 0,
'real_qty': 0,
'qualified_qty': 0,
'unqualified_qty': 0,
'device_code': 'HLJ14',
'material_code': null,
'device_name': '混料机14',
'region_code': 'HL'
},
{
'plan_qty': 0,
'real_qty': 0,
'qualified_qty': 0,
'unqualified_qty': 0,
'device_code': 'HLJ15',
'material_code': null,
'device_name': '混料机15',
'region_code': 'HL'
},
{
'plan_qty': 0,
'real_qty': 0,
'qualified_qty': 0,
'unqualified_qty': 0,
'device_code': 'HLJ16',
'material_code': null,
'device_name': '混料机16',
'region_code': 'HL'
}
],
'DeviceConditionList': [
{
'device_name': '混料',
'failure': 5,
'shutdown': 2,
'standby': 6,
'running': 3
},
{
'device_name': '压制',
'failure': 5,
'shutdown': 2,
'standby': 6,
'running': 3
},
{
'device_name': '干燥',
'failure': 5,
'shutdown': 2,
'standby': 6,
'running': 3
},
{
'device_name': '包装',
'failure': 5,
'shutdown': 2,
'standby': 6,
'running': 3
}
],
'YZDayList': [
{
'plan_qty': 40572,
'real_qty': 32967,
'qualified_qty': 22058,
'unqualified_qty': 909,
'device_code': 'YJ01',
'material_code': null,
'device_name': '压机1',
'region_code': 'YZ'
},
{
'plan_qty': 15500,
'real_qty': 15060,
'qualified_qty': 5044,
'unqualified_qty': 16,
'device_code': 'YJ02',
'material_code': null,
'device_name': '压机2',
'region_code': 'YZ'
},
{
'plan_qty': 12500,
'real_qty': 5898,
'qualified_qty': 5761,
'unqualified_qty': 137,
'device_code': 'YJ03',
'material_code': null,
'device_name': '压机3',
'region_code': 'YZ'
},
{
'plan_qty': 2340,
'real_qty': 1902,
'qualified_qty': 1850,
'unqualified_qty': 52,
'device_code': 'YJ04',
'material_code': null,
'device_name': '压机4',
'region_code': 'YZ'
},
{
'plan_qty': 0,
'real_qty': 0,
'qualified_qty': 0,
'unqualified_qty': 0,
'device_code': 'YJ05',
'material_code': null,
'device_name': '压机5',
'region_code': 'YZ'
},
{
'plan_qty': 0,
'real_qty': 0,
'qualified_qty': 0,
'unqualified_qty': 0,
'device_code': 'YJ06',
'material_code': null,
'device_name': '压机6',
'region_code': 'YZ'
},
{
'plan_qty': 0,
'real_qty': 0,
'qualified_qty': 0,
'unqualified_qty': 0,
'device_code': 'YJ07',
'material_code': null,
'device_name': '压机7',
'region_code': 'YZ'
},
{
'plan_qty': 0,
'real_qty': 0,
'qualified_qty': 0,
'unqualified_qty': 0,
'device_code': 'YJ08',
'material_code': null,
'device_name': '压机8',
'region_code': 'YZ'
},
{
'plan_qty': 0,
'real_qty': 0,
'qualified_qty': 0,
'unqualified_qty': 0,
'device_code': 'YJ09',
'material_code': null,
'device_name': '压机9',
'region_code': 'YZ'
},
{
'plan_qty': 0,
'real_qty': 0,
'qualified_qty': 0,
'unqualified_qty': 0,
'device_code': 'YJ10',
'material_code': null,
'device_name': '压机10',
'region_code': 'YZ'
}
],
'MixMachineList': [
{
'device_status': 1,
'device_code': 'HLJ01'
},
{
'device_status': 1,
'device_code': 'HLJ02'
},
{
'device_status': 1,
'device_code': 'HLJ03'
},
{
'device_status': 1,
'device_code': 'HLJ04'
},
{
'device_status': 1,
'device_code': 'HLJ05'
},
{
'device_status': 1,
'device_code': 'HLJ06'
},
{
'device_status': 1,
'device_code': 'HLJ07'
},
{
'device_status': 1,
'device_code': 'HLJ08'
},
{
'device_status': 1,
'device_code': 'HLJ09'
},
{
'device_status': 1,
'device_code': 'HLJ10'
},
{
'device_status': 1,
'device_code': 'HLJ11'
},
{
'device_status': 1,
'device_code': 'HLJ12'
},
{
'device_status': 1,
'device_code': 'HLJ13'
},
{
'device_status': 1,
'device_code': 'HLJ14'
},
{
'device_status': 1,
'device_code': 'HLJ15'
},
{
'device_status': 1,
'device_code': 'HLJ16'
}
],
'LastMonthFailureList': [
{
'device_name': '机器1',
'failure': 11,
'shutdown': null,
'standby': null,
'running': null
},
{
'device_name': '机器2',
'failure': 12,
'shutdown': null,
'standby': null,
'running': null
},
{
'device_name': '机器3',
'failure': 15,
'shutdown': null,
'standby': null,
'running': null
},
{
'device_name': '机器4',
'failure': 29,
'shutdown': null,
'standby': null,
'running': null
},
{
'device_name': '机器5',
'failure': 26,
'shutdown': null,
'standby': null,
'running': null
}
],
'PressMachineList': [
{
'device_status': 1,
'device_code': 'YJ01'
},
{
'device_status': 1,
'device_code': 'YJ02'
},
{
'device_status': 1,
'device_code': 'YJ03'
},
{
'device_status': 1,
'device_code': 'YJ04'
},
{
'device_status': 1,
'device_code': 'YJ05'
},
{
'device_status': 1,
'device_code': 'YJ06'
},
{
'device_status': 1,
'device_code': 'YJ07'
},
{
'device_status': 1,
'device_code': 'YJ08'
},
{
'device_status': 1,
'device_code': 'YJ09'
},
{
'device_status': 1,
'device_code': 'YJ10'
}
],
'TrappedShelfList': [
{
'point_name': '压机1空盅货位',
'point_status_name': '无货',
'point_code': 'KLHW41',
'point_status': '0'
},
{
'point_name': '压机1困料货位1',
'point_status_name': '有货',
'point_code': 'KLHW42',
'point_status': '1'
},
{
'point_name': '压机1困料货位2',
'point_status_name': '有货',
'point_code': 'KLHW43',
'point_status': '1'
},
{
'point_name': '压机1困料货位3',
'point_status_name': '有货',
'point_code': 'KLHW44',
'point_status': '1'
},
{
'point_name': '压机2空盅货位',
'point_status_name': '无货',
'point_code': 'KLHW45',
'point_status': '0'
},
{
'point_name': '压机2困料货位1',
'point_status_name': '有货',
'point_code': 'KLHW46',
'point_status': '1'
},
{
'point_name': '压机2困料货位2',
'point_status_name': '无货',
'point_code': 'KLHW47',
'point_status': '0'
},
{
'point_name': '压机2困料货位3',
'point_status_name': '无货',
'point_code': 'KLHW48',
'point_status': '0'
}
],
'MixBlankingList': [
{
'point_name': '混料机1下料位',
'point_code': 'HLJ01XL01',
'point_status': '0'
},
{
'point_name': '混料机2下料位',
'point_code': 'HLJ02XL01',
'point_status': '0'
},
{
'point_name': '混料机3下料位',
'point_code': 'HLJ03XL01',
'point_status': '0'
},
{
'point_name': '混料机4下料位',
'point_code': 'HLJ04XL01',
'point_status': '0'
},
{
'point_name': '混料机5下料位',
'point_code': 'HLJ05XL01',
'point_status': '0'
},
{
'point_name': '混料机6下料位',
'point_code': 'HLJ06XL01',
'point_status': '1'
},
{
'point_name': '混料机7下料位',
'point_code': 'HLJ07XL01',
'point_status': '1'
},
{
'point_name': '混料机8下料位',
'point_code': 'HLJ08XL01',
'point_status': '1'
},
{
'point_name': '混料机9下料位',
'point_code': 'HLJ09XL01',
'point_status': '0'
},
{
'point_name': '混料机10下料位',
'point_code': 'HLJ10XL01',
'point_status': '1'
},
{
'point_name': '混料机11下料位',
'point_code': 'HLJ11XL01',
'point_status': '1'
},
{
'point_name': '混料机12下料位',
'point_code': 'HLJ12XL01',
'point_status': '1'
},
{
'point_name': '混料机13下料位',
'point_code': 'HLJ13XL01',
'point_status': '1'
},
{
'point_name': '混料机14下料位',
'point_code': 'HLJ14XL01',
'point_status': '1'
},
{
'point_name': '混料机15下料位',
'point_code': 'HLJ15XL01',
'point_status': '1'
},
{
'point_name': '混料机16下料位',
'point_code': 'HLJ16XL01',
'point_status': '1'
}
],
'CPDayList': [
{
'qualified_in_qty': 367,
'unqualified_in_qty': 429,
'inventory_qty': 994,
'material_code': '成品1'
},
{
'qualified_in_qty': 833,
'unqualified_in_qty': 1876,
'inventory_qty': 511,
'material_code': '成品2'
},
{
'qualified_in_qty': 1467,
'unqualified_in_qty': 1833,
'inventory_qty': 1147,
'material_code': '成品3'
},
{
'qualified_in_qty': 492,
'unqualified_in_qty': 262,
'inventory_qty': 1728,
'material_code': '成品4'
},
{
'qualified_in_qty': 831,
'unqualified_in_qty': 1561,
'inventory_qty': 642,
'material_code': '成品5'
}
],
'LastTenFailureList': [
{
'failure_time': '05-30 09:50:12',
'device_code': 'hn01',
'device_name': '混黏01',
'failure_info': '机器故障',
'device_status_name': '待机'
},
{
'failure_time': '05-30 09:50:12',
'device_code': 'hn01',
'device_name': '混黏01',
'failure_info': '机器故障',
'device_status_name': '待机'
},
{
'failure_time': '05-30 09:50:12',
'device_code': 'hn01',
'device_name': '混黏01',
'failure_info': '机器故障',
'device_status_name': '待机'
},
{
'failure_time': '05-30 09:50:12',
'device_code': 'hn01',
'device_name': '混黏01',
'failure_info': '机器故障',
'device_status_name': '待机'
},
{
'failure_time': '05-30 09:50:12',
'device_code': 'hn01',
'device_name': '混黏01',
'failure_info': '机器故障',
'device_status_name': '待机'
}
],
'StackingPositionList': [
{
'color_status': 3,
'point_name': '压机1下料位1',
'point_code': 'YJ01XL01',
'region_code': 'YZ'
},
{
'color_status': 3,
'point_name': '压机1下料位2',
'point_code': 'YJ01XL02',
'region_code': 'YZ'
},
{
'color_status': 3,
'point_name': '压机2下料位1',
'point_code': 'YJ02XL01',
'region_code': 'YZ'
},
{
'color_status': 3,
'point_name': '压机2下料位2',
'point_code': 'YJ02XL02',
'region_code': 'YZ'
},
{
'color_status': 3,
'point_name': '压机3下料位1',
'point_code': 'YJ03XL01',
'region_code': 'YZ'
},
{
'color_status': 3,
'point_name': '压机3下料位2',
'point_code': 'YJ03XL02',
'region_code': 'YZ'
},
{
'color_status': 3,
'point_name': '压机4下料位1',
'point_code': 'YJ04XL01',
'region_code': 'YZ'
},
{
'color_status': 3,
'point_name': '压机4下料位2',
'point_code': 'YJ04XL02',
'region_code': 'YZ'
},
{
'color_status': 3,
'point_name': '压机5下料位1',
'point_code': 'YJ05XL01',
'region_code': 'YZ'
},
{
'color_status': 3,
'point_name': '压机5下料位2',
'point_code': 'YJ05XL02',
'region_code': 'YZ'
},
{
'color_status': 3,
'point_name': '压机6下料位1',
'point_code': 'YJ06XL01',
'region_code': 'YZ'
},
{
'color_status': 3,
'point_name': '压机6下料位2',
'point_code': 'YJ06XL02',
'region_code': 'YZ'
},
{
'color_status': 3,
'point_name': '压机7下料位1',
'point_code': 'YJ07XL01',
'region_code': 'YZ'
},
{
'color_status': 3,
'point_name': '压机7下料位2',
'point_code': 'YJ07XL02',
'region_code': 'YZ'
},
{
'color_status': 3,
'point_name': '压机8下料位1',
'point_code': 'YJ08XL01',
'region_code': 'YZ'
},
{
'color_status': 3,
'point_name': '压机8下料位2',
'point_code': 'YJ08XL02',
'region_code': 'YZ'
},
{
'color_status': 3,
'point_name': '压机9下料位1',
'point_code': 'YJ09XL01',
'region_code': 'YZ'
},
{
'color_status': 3,
'point_name': '压机9下料位2',
'point_code': 'YJ09XL02',
'region_code': 'YZ'
},
{
'color_status': 3,
'point_name': '压机10下料位1',
'point_code': 'YJ10XL01',
'region_code': 'YZ'
},
{
'color_status': 3,
'point_name': '压机10下料位2',
'point_code': 'YJ10XL02',
'region_code': 'YZ'
}
]
}
}
return res
}