265 lines
143 KiB
JavaScript
265 lines
143 KiB
JavaScript
|
|
/** 压制看板 */
|
||
|
|
export const cockpitpress = () => {
|
||
|
|
let res = {'PersonnelMonthlyProduction': [{'operator': '管理员', 'real_qty': '2104'}, {'operator': null, 'real_qty': '0'}],
|
||
|
|
'ProductionTask': [{'device': '18#压机', 'workorder_code': '2423110231', 'team': '白班', 'material_name': '浸渍管砖', 'material_spec': 'RZ-12RH-033', 'material_model': 'RJM-28G', 'planproducestart_date': '08:00', 'plan_qty': '110', 'real_qty': '0', 'unqualified_qty': '0', 'qualified_rate': '0', 'workorder_status': '未生产', 'operator': '-', 'realproducestart_date': '-', 'realproduceend_date': '-'}, {'device': '19#压机', 'workorder_code': '2423110232', 'team': '白班', 'material_name': 'RH下部槽工作层砖', 'material_spec': 'L-35/50', 'material_model': 'RJM-15G', 'planproducestart_date': '08:00', 'plan_qty': '90', 'real_qty': '0', 'unqualified_qty': '0', 'qualified_rate': '0', 'workorder_status': '已下发', 'operator': '管理员', 'realproducestart_date': '-', 'realproduceend_date': '-'}, {'device': '13#压机', 'workorder_code': '2423110226', 'team': '白班', 'material_name': '下部槽砖', 'material_spec': '21B-WG-3', 'material_model': 'RJM-13G', 'planproducestart_date': '08:00', 'plan_qty': '330', 'real_qty': '268', 'unqualified_qty': '0', 'qualified_rate': '0', 'workorder_status': '生产中', 'operator': '管理员', 'realproducestart_date': '2023-11-02 09:24:20', 'realproduceend_date': '-'}, {'device': '14#压机', 'workorder_code': '2423110227', 'team': '白班', 'material_name': '下部槽砖', 'material_spec': '33C-XM-06a', 'material_model': 'RJM-13G', 'planproducestart_date': '08:00', 'plan_qty': '330', 'real_qty': '0', 'unqualified_qty': '0', 'qualified_rate': '0', 'workorder_status': '生产中', 'operator': '管理员', 'realproducestart_date': '2023-11-02 13:01:51', 'realproduceend_date': '-'}, {'device': '15#压机', 'workorder_code': '2423110228', 'team': '白班', 'material_name': '整体管砖', 'material_spec': '21B-RH-1-2', 'material_model': 'RJM-13G', 'planproducestart_date': '08:00', 'plan_qty': '330', 'real_qty': '178', 'unqualified_qty': '0', 'qualified_rate': '0', 'workorder_status': '生产中', 'operator': '管理员', 'realproducestart_date': '2023-11-02 09:56:08', 'realproduceend_date': '-'}, {'device': '17#压机', 'workorder_code': '2423110230', 'team': '白班', 'material_name': '下部槽砖', 'material_spec': '33C-XM-10a', 'material_model': 'RJM-13G', 'planproducestart_date': '08:00', 'plan_qty': '100', 'real_qty': '158', 'unqualified_qty': '0', 'qualified_rate': '0', 'workorder_status': '生产中', 'operator': '管理员', 'realproducestart_date': '2023-11-02 09:26:45', 'realproduceend_date': '-'}, {'device': '16#压机', 'workorder_code': '2423110233', 'team': '白班', 'material_name': '下部槽砖', 'material_spec': '33C-XM-06a', 'material_model': 'RJM-13G', 'planproducestart_date': '08:00', 'plan_qty': '330', 'real_qty': '178', 'unqualified_qty': '0', 'qualified_rate': '0', 'workorder_status': '生产中', 'operator': '管理员', 'realproducestart_date': '2023-11-02 09:26:05', 'realproduceend_date': '-'}, {'device': '20#压机', 'workorder_code': '2423110234', 'team': '白班', 'material_name': '浸渍管砖', 'material_spec': '21B-WG-C', 'material_model': 'RJM-28G', 'planproducestart_date': '08:00', 'plan_qty': '250', 'real_qty': '0', 'unqualified_qty': '0', 'qualified_rate': '0.0', 'workorder_status': '生产中', 'operator': '管理员', 'realproducestart_date': '2023-11-02 13:15:42', 'realproduceend_date': '2023-11-02 11:53:22'}, {'device': '13#压机', 'workorder_code': '230916004', 'team': '白班', 'material_name': '钢包镁铝碳砖3015C2210-BS 2022宝生包壁20/8', 'material_spec': 'MD-06', 'material_model': 'RJM-15B', 'planproducestart_date': '2023-09-16 08:59:04', 'plan_qty': '10000', 'real_qty': '7329', 'unqualified_qty': '0', 'qualified_rate': '0', 'workorder_status': '完成', 'operator': '-', 'realproducestart_date': '2023-09-16 09:02:24', 'realproduceend_date': '-'}, {'device': '14#压机', 'workorder_code': '230916005', 'team': '白班', 'material_name': '钢包镁铝碳砖3015C2210-BS 2022宝生包壁20/8', 'material_spec': 'MD-06', 'material_model': 'RJM-15B', 'planproducestart_date': '2023-09-16 08:59:51', 'plan_qty': '10000', 're
|
||
|
|
'ShiftProductionList': [{'column_name': '压机04', 'qualified_qty': '53', 'unqualified_qty': '70', 'total_difference': '1877'}, {'column_name': '压机06', 'qualified_qty': '0', 'unqualified_qty': '0', 'total_difference': '2000'}],
|
||
|
|
'DayShift': '白班',
|
||
|
|
'DayShiftList': [{'plan_qty': '3020', 'real_qty': '3000', 'unqualified_qty': '220', 'qualified_qty': '2700'}]}
|
||
|
|
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
|
||
|
|
}
|