This commit is contained in:
2023-03-01 17:45:28 +08:00
parent 0540dc5f6a
commit 7ffa0fcdea
3 changed files with 134 additions and 53 deletions

View File

@@ -0,0 +1,89 @@
// import {post} from './http.js'
// 仓储监控
// export const storageMonitor = () => post('/api/cockpit/storageMonitor', {
// })
export const storageMonitor = () => {
let res = {
'productionTask': [
{
'point_id': '1597551506607968256',
'point_code': 'YZJHJ04',
'point_name': '压制机旧料盅货架04',
'material_id': 1556534702800769024,
'material_name': '木质花纹2cm',
'vehicle_code': '1M3000009',
'ivt_qty': 1000.000000,
'ivt_weight': 800.000000,
'instorage_time': '2023-2-27 16:07:09',
'standing_time': 20,
'warn_time': '5',
'is_full': '1'
}
],
'materialTask': [
{
'point_id': '1518061204965298176',
'point_code': 'YZJ0904',
'point_name': '压制机9料盅位4',
'material_id': 1556534702800769024,
'material_name': '木质花纹2cm',
'vehicle_code': '1M3000009',
'ivt_qty': 1000.000000,
'ivt_weight': 800.000000,
'instorage_time': '2023-2-27 16:07:09',
'standing_time': 20,
'standing_status': '静置完成',
'warn_time': '5'
}
]
}
return res
}
// 生产统计
// export const productionStatistics = () => post(' /api/cockpit/productionStatistics', {
// })
export const productionStatistics = () => {
let res = {
'finishedTask': [
{
'realqty': '130',
'planqty': '300',
'workorder_procedure': '2'
},
{
'realqty': '160',
'planqty': '200',
'workorder_procedure': '3'
},
{
'realqty': '70',
'planqty': '100',
'workorder_procedure': '4'
}
],
'productionTask': [
{
'workorder_id': '1597564588067524613',
'label': '烧制工序',
'device_name': '混料机3',
'material_code': 'HW00001',
'material_name': '木质花纹2cm',
'cust_name': '新余钢铁',
'plan_qty': 100,
'real_qty': 80,
'order_status': '5',
'shift_type': '烧制白班',
'realproducestart_date': '2023-2-27 12:40:00'
}
],
'materialTask': [
{
'realqty': '360',
'planqty': '600'
}
]
}
return res
}