2024-02-29 17:58:53 +08:00
|
|
|
/** 压制看板 */
|
|
|
|
|
export const cockpitpress = () => {
|
2024-03-04 16:01:16 +08:00
|
|
|
let res = {
|
|
|
|
|
'PressOrderList': [
|
|
|
|
|
{
|
|
|
|
|
'planQty': '6000',
|
|
|
|
|
'realQty': '7846',
|
|
|
|
|
'rate': '1.31',
|
|
|
|
|
'orderNumber': 'SY202401-04'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'planQty': '1000',
|
|
|
|
|
'realQty': '756',
|
|
|
|
|
'rate': '0.76',
|
|
|
|
|
'orderNumber': 'NY202401-03'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'planQty': '1000',
|
|
|
|
|
'realQty': '378',
|
|
|
|
|
'rate': '0.38',
|
|
|
|
|
'orderNumber': 'DX202401-01'
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
'ProductionTask': [
|
|
|
|
|
{
|
|
|
|
|
'device': '压机01',
|
|
|
|
|
'workorderCode': '240123001',
|
|
|
|
|
'team': '白班',
|
|
|
|
|
'materialName': '004',
|
|
|
|
|
'customer': '实业股份',
|
|
|
|
|
'planproducestartDate': '2024-01-23 08:28:14',
|
|
|
|
|
'planQty': '1000',
|
|
|
|
|
'realQty': '1015',
|
|
|
|
|
'unqualifiedQty': '0',
|
|
|
|
|
'qualifiedRate': '10.0',
|
|
|
|
|
'workorderStatus': '生产中',
|
|
|
|
|
'operator': '管理员',
|
|
|
|
|
'realproducestartDate': '2024-01-23 08:31:28',
|
|
|
|
|
'realproduceendDate': '-'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'device': '压机02',
|
|
|
|
|
'workorderCode': '240123002',
|
|
|
|
|
'team': '白班',
|
|
|
|
|
'materialName': '004',
|
|
|
|
|
'customer': '实业股份',
|
|
|
|
|
'planproducestartDate': '2024-01-23 08:28:59',
|
|
|
|
|
'planQty': '1000',
|
|
|
|
|
'realQty': '1008',
|
|
|
|
|
'unqualifiedQty': '0',
|
|
|
|
|
'qualifiedRate': '10.0',
|
|
|
|
|
'workorderStatus': '生产中',
|
|
|
|
|
'operator': '管理员',
|
|
|
|
|
'realproducestartDate': '2024-01-23 08:31:36',
|
|
|
|
|
'realproduceendDate': '-'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'device': '压机03',
|
|
|
|
|
'workorderCode': '240123003',
|
|
|
|
|
'team': '白班',
|
|
|
|
|
'materialName': '004',
|
|
|
|
|
'customer': '实业股份',
|
|
|
|
|
'planproducestartDate': '2024-01-23 08:29:30',
|
|
|
|
|
'planQty': '1000',
|
|
|
|
|
'realQty': '1287',
|
|
|
|
|
'unqualifiedQty': '0',
|
|
|
|
|
'qualifiedRate': '10.0',
|
|
|
|
|
'workorderStatus': '生产中',
|
|
|
|
|
'operator': '管理员',
|
|
|
|
|
'realproducestartDate': '2024-01-23 08:31:42',
|
|
|
|
|
'realproduceendDate': '-'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'device': '压机04',
|
|
|
|
|
'workorderCode': '240123004',
|
|
|
|
|
'team': '白班',
|
|
|
|
|
'materialName': '004',
|
|
|
|
|
'customer': '实业股份',
|
|
|
|
|
'planproducestartDate': '2024-01-23 08:29:55',
|
|
|
|
|
'planQty': '1000',
|
|
|
|
|
'realQty': '1260',
|
|
|
|
|
'unqualifiedQty': '0',
|
|
|
|
|
'qualifiedRate': '10.0',
|
|
|
|
|
'workorderStatus': '生产中',
|
|
|
|
|
'operator': '管理员',
|
|
|
|
|
'realproducestartDate': '2024-01-23 08:31:50',
|
|
|
|
|
'realproduceendDate': '-'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'device': '压机05',
|
|
|
|
|
'workorderCode': '240123005',
|
|
|
|
|
'team': '白班',
|
|
|
|
|
'materialName': '004',
|
|
|
|
|
'customer': '实业股份',
|
|
|
|
|
'planproducestartDate': '2024-01-23 08:34:27',
|
|
|
|
|
'planQty': '1000',
|
|
|
|
|
'realQty': '1764',
|
|
|
|
|
'unqualifiedQty': '0',
|
|
|
|
|
'qualifiedRate': '10.0',
|
|
|
|
|
'workorderStatus': '生产中',
|
|
|
|
|
'operator': '管理员',
|
|
|
|
|
'realproducestartDate': '2024-01-23 08:40:05',
|
|
|
|
|
'realproduceendDate': '-'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'device': '压机06',
|
|
|
|
|
'workorderCode': '240123006',
|
|
|
|
|
'team': '白班',
|
|
|
|
|
'materialName': '004',
|
|
|
|
|
'customer': '实业股份',
|
|
|
|
|
'planproducestartDate': '2024-01-23 08:34:57',
|
|
|
|
|
'planQty': '1000',
|
|
|
|
|
'realQty': '1512',
|
|
|
|
|
'unqualifiedQty': '0',
|
|
|
|
|
'qualifiedRate': '10.0',
|
|
|
|
|
'workorderStatus': '生产中',
|
|
|
|
|
'operator': '管理员',
|
|
|
|
|
'realproducestartDate': '2024-01-23 08:40:13',
|
|
|
|
|
'realproduceendDate': '-'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'device': '压机07',
|
|
|
|
|
'workorderCode': '240123007',
|
|
|
|
|
'team': '白班',
|
|
|
|
|
'materialName': '003',
|
|
|
|
|
'customer': '镍业',
|
|
|
|
|
'planproducestartDate': '2024-01-23 08:37:14',
|
|
|
|
|
'planQty': '1000',
|
|
|
|
|
'realQty': '756',
|
|
|
|
|
'unqualifiedQty': '0',
|
|
|
|
|
'qualifiedRate': '10.0',
|
|
|
|
|
'workorderStatus': '生产中',
|
|
|
|
|
'operator': '管理员',
|
|
|
|
|
'realproducestartDate': '2024-01-23 08:40:18',
|
|
|
|
|
'realproduceendDate': '-'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'device': '压机08',
|
|
|
|
|
'workorderCode': '240123008',
|
|
|
|
|
'team': '白班',
|
|
|
|
|
'materialName': '001',
|
|
|
|
|
'customer': '鼎新',
|
|
|
|
|
'planproducestartDate': '2024-01-23 08:37:59',
|
|
|
|
|
'planQty': '1000',
|
|
|
|
|
'realQty': '378',
|
|
|
|
|
'unqualifiedQty': '0',
|
|
|
|
|
'qualifiedRate': '10.0',
|
|
|
|
|
'workorderStatus': '生产中',
|
|
|
|
|
'operator': '管理员',
|
|
|
|
|
'realproducestartDate': '2024-01-23 08:40:23',
|
|
|
|
|
'realproduceendDate': '-'
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
'DayShiftInfo': [
|
|
|
|
|
{
|
|
|
|
|
'planQty': '8000',
|
|
|
|
|
'realQty': '8980',
|
|
|
|
|
'unqualifiedQty': '0',
|
|
|
|
|
'qualifiedQty': '800',
|
|
|
|
|
'team': '白班'
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
'ShiftProductionList': [
|
|
|
|
|
{
|
|
|
|
|
'columnName': '压机01',
|
|
|
|
|
'qualifiedQty': '100',
|
|
|
|
|
'unqualifiedQty': '0',
|
|
|
|
|
'lastQty': '900'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'columnName': '压机02',
|
|
|
|
|
'qualifiedQty': '100',
|
|
|
|
|
'unqualifiedQty': '0',
|
|
|
|
|
'lastQty': '900'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'columnName': '压机03',
|
|
|
|
|
'qualifiedQty': '100',
|
|
|
|
|
'unqualifiedQty': '0',
|
|
|
|
|
'lastQty': '900'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'columnName': '压机04',
|
|
|
|
|
'qualifiedQty': '100',
|
|
|
|
|
'unqualifiedQty': '0',
|
|
|
|
|
'lastQty': '900'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'columnName': '压机05',
|
|
|
|
|
'qualifiedQty': '100',
|
|
|
|
|
'unqualifiedQty': '0',
|
|
|
|
|
'lastQty': '900'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'columnName': '压机06',
|
|
|
|
|
'qualifiedQty': '100',
|
|
|
|
|
'unqualifiedQty': '0',
|
|
|
|
|
'lastQty': '900'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'columnName': '压机07',
|
|
|
|
|
'qualifiedQty': '100',
|
|
|
|
|
'unqualifiedQty': '0',
|
|
|
|
|
'lastQty': '900'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'columnName': '压机08',
|
|
|
|
|
'qualifiedQty': '100',
|
|
|
|
|
'unqualifiedQty': '0',
|
|
|
|
|
'lastQty': '900'
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
2024-02-29 17:58:53 +08:00
|
|
|
return res
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** 分拣作业监控 */
|
|
|
|
|
export const sortProductionMonitor = () => {
|
|
|
|
|
let res = {
|
|
|
|
|
// 当前工单信息
|
|
|
|
|
'current': {
|
|
|
|
|
// 物料
|
|
|
|
|
'materialName': '转炉镁碳砖MASC-65鞍钢Z01',
|
|
|
|
|
// 当前工单
|
|
|
|
|
'workOrderCode': '230919001',
|
|
|
|
|
// 数量
|
|
|
|
|
'qty': '10000块',
|
|
|
|
|
// 重量
|
|
|
|
|
'weight': '10.00吨',
|
|
|
|
|
// 是否留有半托
|
|
|
|
|
'hasHalf': '否',
|
|
|
|
|
// 订单号
|
|
|
|
|
'orderCode': '',
|
|
|
|
|
// 规格
|
|
|
|
|
'spec': '11/11',
|
|
|
|
|
// 托盘类型
|
|
|
|
|
'vehicleType': '一类木托盘',
|
|
|
|
|
// 客户
|
|
|
|
|
'customer': '客户'
|
|
|
|
|
},
|
|
|
|
|
// 已拆垛
|
|
|
|
|
'depalletize': {
|
|
|
|
|
// 未完成
|
|
|
|
|
'uncompleted': 10000,
|
|
|
|
|
// 已完成
|
|
|
|
|
'completed': 0
|
|
|
|
|
},
|
|
|
|
|
// 已码垛
|
|
|
|
|
'palletize': {
|
|
|
|
|
// 未完成
|
|
|
|
|
'uncompleted': 50,
|
|
|
|
|
// 已完成
|
|
|
|
|
'completed': 50
|
|
|
|
|
},
|
|
|
|
|
// 已拆垛信息
|
|
|
|
|
'depalletizedVehicle': [
|
|
|
|
|
{
|
|
|
|
|
// 物料
|
|
|
|
|
'materialName': '紫铜弯通连接帽CGM11',
|
|
|
|
|
// 时间
|
|
|
|
|
'datetime': '2023-09-14 14:23:57',
|
|
|
|
|
// 数量
|
|
|
|
|
'qty': '18块',
|
|
|
|
|
// 托盘号
|
|
|
|
|
'vehicleCode': 'M0002',
|
|
|
|
|
// 重量
|
|
|
|
|
'weight': '0.18吨'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
// 物料
|
|
|
|
|
'materialName': '紫铜弯通连接帽CGM22',
|
|
|
|
|
// 时间
|
|
|
|
|
'datetime': '2023-09-14 14:23:57',
|
|
|
|
|
// 数量
|
|
|
|
|
'qty': '18块',
|
|
|
|
|
// 托盘号
|
|
|
|
|
'vehicleCode': 'M0002',
|
|
|
|
|
// 重量
|
|
|
|
|
'weight': '0.18吨'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
// 物料
|
|
|
|
|
'materialName': '紫铜弯通连接帽CGM33',
|
|
|
|
|
// 时间
|
|
|
|
|
'datetime': '2023-09-14 14:23:57',
|
|
|
|
|
// 数量
|
|
|
|
|
'qty': '18块',
|
|
|
|
|
// 托盘号
|
|
|
|
|
'vehicleCode': 'M0002',
|
|
|
|
|
// 重量
|
|
|
|
|
'weight': '0.18吨'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
// 物料
|
|
|
|
|
'materialName': '紫铜弯通连接帽CGM44',
|
|
|
|
|
// 时间
|
|
|
|
|
'datetime': '2023-09-14 14:23:57',
|
|
|
|
|
// 数量
|
|
|
|
|
'qty': '18块',
|
|
|
|
|
// 托盘号
|
|
|
|
|
'vehicleCode': 'M0002',
|
|
|
|
|
// 重量
|
|
|
|
|
'weight': '0.18吨'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
// 物料
|
|
|
|
|
'materialName': '紫铜弯通连接帽CGM55',
|
|
|
|
|
// 时间
|
|
|
|
|
'datetime': '2023-09-14 14:23:57',
|
|
|
|
|
// 数量
|
|
|
|
|
'qty': '18块',
|
|
|
|
|
// 托盘号
|
|
|
|
|
'vehicleCode': 'M0002',
|
|
|
|
|
// 重量
|
|
|
|
|
'weight': '0.18吨'
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
// 已码垛信息
|
|
|
|
|
'palletizedVehicle': [
|
|
|
|
|
{
|
|
|
|
|
// 物料
|
|
|
|
|
'materialName': '紫铜弯通连接帽CGM11',
|
|
|
|
|
// 时间
|
|
|
|
|
'datetime': '2023-09-14 14:23:57',
|
|
|
|
|
// 数量
|
|
|
|
|
'qty': '18块',
|
|
|
|
|
// 托盘号
|
|
|
|
|
'vehicleCode': 'M0002',
|
|
|
|
|
// 重量
|
|
|
|
|
'weight': '0.18吨'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
// 物料
|
|
|
|
|
'materialName': '紫铜弯通连接帽CGM22',
|
|
|
|
|
// 时间
|
|
|
|
|
'datetime': '2023-09-14 14:23:57',
|
|
|
|
|
// 数量
|
|
|
|
|
'qty': '18块',
|
|
|
|
|
// 托盘号
|
|
|
|
|
'vehicleCode': 'M0002',
|
|
|
|
|
// 重量
|
|
|
|
|
'weight': '0.18吨'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
// 物料
|
|
|
|
|
'materialName': '紫铜弯通连接帽CGM33',
|
|
|
|
|
// 时间
|
|
|
|
|
'datetime': '2023-09-14 14:23:57',
|
|
|
|
|
// 数量
|
|
|
|
|
'qty': '18块',
|
|
|
|
|
// 托盘号
|
|
|
|
|
'vehicleCode': 'M0002',
|
|
|
|
|
// 重量
|
|
|
|
|
'weight': '0.18吨'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
// 物料
|
|
|
|
|
'materialName': '紫铜弯通连接帽CGM44',
|
|
|
|
|
// 时间
|
|
|
|
|
'datetime': '2023-09-14 14:23:57',
|
|
|
|
|
// 数量
|
|
|
|
|
'qty': '18块',
|
|
|
|
|
// 托盘号
|
|
|
|
|
'vehicleCode': 'M0002',
|
|
|
|
|
// 重量
|
|
|
|
|
'weight': '0.18吨'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
// 物料
|
|
|
|
|
'materialName': '紫铜弯通连接帽CGM55',
|
|
|
|
|
// 时间
|
|
|
|
|
'datetime': '2023-09-14 14:23:57',
|
|
|
|
|
// 数量
|
|
|
|
|
'qty': '18块',
|
|
|
|
|
// 托盘号
|
|
|
|
|
'vehicleCode': 'M0002',
|
|
|
|
|
// 重量
|
|
|
|
|
'weight': '0.18吨'
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
// 剩余工单列表
|
|
|
|
|
'residualWorkOrder': [
|
|
|
|
|
{
|
|
|
|
|
// 物料
|
|
|
|
|
'materialName': '转炉镁碳砖MASC-65鞍钢Z01',
|
|
|
|
|
// 当前工单
|
|
|
|
|
'workOrderCode': '230919001',
|
|
|
|
|
// 数量
|
|
|
|
|
'qty': '10000块',
|
|
|
|
|
// 重量
|
|
|
|
|
'weight': '10.00吨',
|
|
|
|
|
// 是否留有半托
|
|
|
|
|
'hasHalf': '否',
|
|
|
|
|
// 订单号
|
|
|
|
|
'orderCode': '12333',
|
|
|
|
|
// 规格
|
|
|
|
|
'spec': '11/11',
|
|
|
|
|
// 托盘类型
|
|
|
|
|
'vehicleType': '一类木托盘',
|
|
|
|
|
// 客户
|
|
|
|
|
'customer': '客户',
|
|
|
|
|
'createTime': '2023-09-14 14:23:57'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
// 物料
|
|
|
|
|
'materialName': '转炉镁碳砖MASC-65鞍钢Z02',
|
|
|
|
|
// 当前工单
|
|
|
|
|
'workOrderCode': '230919002',
|
|
|
|
|
// 数量
|
|
|
|
|
'qty': '10000块',
|
|
|
|
|
// 重量
|
|
|
|
|
'weight': '10.00吨',
|
|
|
|
|
// 是否留有半托
|
|
|
|
|
'hasHalf': '否',
|
|
|
|
|
// 订单号
|
|
|
|
|
'orderCode': '12333',
|
|
|
|
|
// 规格
|
|
|
|
|
'spec': '11/11',
|
|
|
|
|
// 托盘类型
|
|
|
|
|
'vehicleType': '一类木托盘',
|
|
|
|
|
// 客户
|
|
|
|
|
'customer': '客户',
|
|
|
|
|
'createTime': '2023-09-14 14:23:57'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
// 物料
|
|
|
|
|
'materialName': '转炉镁碳砖MASC-65鞍钢Z03',
|
|
|
|
|
// 当前工单
|
|
|
|
|
'workOrderCode': '230919001',
|
|
|
|
|
// 数量
|
|
|
|
|
'qty': '10000块',
|
|
|
|
|
// 重量
|
|
|
|
|
'weight': '10.00吨',
|
|
|
|
|
// 是否留有半托
|
|
|
|
|
'hasHalf': '否',
|
|
|
|
|
// 订单号
|
|
|
|
|
'orderCode': '12333',
|
|
|
|
|
// 规格
|
|
|
|
|
'spec': '11/11',
|
|
|
|
|
// 托盘类型
|
|
|
|
|
'vehicleType': '一类木托盘',
|
|
|
|
|
// 客户
|
|
|
|
|
'customer': '客户',
|
|
|
|
|
'createTime': '2023-09-14 14:23:57'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
// 物料
|
|
|
|
|
'materialName': '转炉镁碳砖MASC-65鞍钢Z04',
|
|
|
|
|
// 当前工单
|
|
|
|
|
'workOrderCode': '230919002',
|
|
|
|
|
// 数量
|
|
|
|
|
'qty': '10000块',
|
|
|
|
|
// 重量
|
|
|
|
|
'weight': '10.00吨',
|
|
|
|
|
// 是否留有半托
|
|
|
|
|
'hasHalf': '否',
|
|
|
|
|
// 订单号
|
|
|
|
|
'orderCode': '12333',
|
|
|
|
|
// 规格
|
|
|
|
|
'spec': '11/11',
|
|
|
|
|
// 托盘类型
|
|
|
|
|
'vehicleType': '一类木托盘',
|
|
|
|
|
// 客户
|
|
|
|
|
'customer': '客户',
|
|
|
|
|
'createTime': '2023-09-14 14:23:57'
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
return res
|
|
|
|
|
}
|