This commit is contained in:
2024-03-04 17:11:48 +08:00
parent 814b747fdd
commit bf15818020
3 changed files with 187 additions and 297 deletions

View File

@@ -4,4 +4,4 @@ import {post} from '@js/http.js'
export const cockpitpress = (id) => post('api/cockpit/press', {})
/** 分拣作业监控 */
export const sortProductionMonitor = (id) => post('api/cockpit/sortProductionMonitor', {})
export const cockpitsorting = (id) => post('api/cockpit/sorting', {})

View File

@@ -215,254 +215,138 @@ export const cockpitpress = () => {
}
/** 分拣作业监控 */
export const sortProductionMonitor = () => {
export const cockpitsorting = () => {
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': [
'sortingLine': [
{
// 物料
'materialName': '紫铜弯通连接帽CGM11',
// 时间
'datetime': '2023-09-14 14:23:57',
// 数量
'qty': '18块',
// 托盘号
'vehicleCode': 'M0002',
// 重量
'weight': '0.18吨'
'workorderCode': '240119006',
'pointName': '分拣拆垛机械手01',
'customer': '实业股份',
'materialName': '004',
'materialSpec': 'ZX',
'planQty': '500',
'realQty': '200'
},
{
// 物料
'materialName': '紫铜弯通连接帽CGM22',
// 时间
'datetime': '2023-09-14 14:23:57',
// 数量
'qty': '18块',
// 托盘号
'vehicleCode': 'M0002',
// 重量
'weight': '0.18吨'
'workorderCode': '240228001',
'pointName': '分拣拆垛机械手02',
'customer': '实业股份',
'materialName': '004',
'materialSpec': 'ZX',
'planQty': '1000',
'realQty': '0'
},
{
// 物料
'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吨'
'workorderCode': '240228002',
'pointName': '人工分拣拆01',
'customer': '沙湾',
'materialName': '004',
'materialSpec': 'ZX',
'planQty': '500',
'realQty': '0'
}
],
// 已码垛信息
'palletizedVehicle': [
'unstackingList': [
{
// 物料
'materialName': '紫铜弯通连接帽CGM11',
// 时间
'datetime': '2023-09-14 14:23:57',
// 数量
'qty': '18块',
// 托盘号
'vehicleCode': 'M0002',
// 重量
'weight': '0.18吨'
'vehicleCode': '0014',
'materialQty': '0',
'materialWeight': '0.00',
'materialName': '004',
'createTime': '03-04 16:13:37'
},
{
// 物料
'materialName': '紫铜弯通连接帽CGM22',
// 时间
'datetime': '2023-09-14 14:23:57',
// 数量
'qty': '18块',
// 托盘号
'vehicleCode': 'M0002',
// 重量
'weight': '0.18吨'
'vehicleCode': '0005',
'materialQty': '252',
'materialWeight': '0.00',
'materialName': '004',
'createTime': '03-04 15:22:50'
},
{
// 物料
'materialName': '紫铜弯通连接帽CGM33',
// 时间
'datetime': '2023-09-14 14:23:57',
// 数量
'qty': '18块',
// 托盘号
'vehicleCode': 'M0002',
// 重量
'weight': '0.18吨'
'vehicleCode': '0040',
'materialQty': '126',
'materialWeight': '0.00',
'materialName': '004',
'createTime': '03-04 14:42:00'
},
{
// 物料
'materialName': '紫铜弯通连接帽CGM44',
// 时间
'datetime': '2023-09-14 14:23:57',
// 数量
'qty': '18块',
// 托盘号
'vehicleCode': 'M0002',
// 重量
'weight': '0.18吨'
'vehicleCode': '0050',
'materialQty': '0',
'materialWeight': '0.00',
'materialName': '004',
'createTime': '03-04 13:21:53'
},
{
// 物料
'materialName': '紫铜弯通连接帽CGM55',
// 时间
'datetime': '2023-09-14 14:23:57',
// 数量
'qty': '18块',
// 托盘号
'vehicleCode': 'M0002',
// 重量
'weight': '0.18吨'
'vehicleCode': '1069',
'materialQty': '252',
'materialWeight': '0.00',
'materialName': null,
'createTime': '03-04 13:21:01'
},
{
'vehicleCode': '1066',
'materialQty': '0',
'materialWeight': '0.00',
'materialName': '004',
'createTime': '03-04 12:23:39'
},
{
'vehicleCode': '0006',
'materialQty': '0',
'materialWeight': '0.00',
'materialName': '004',
'createTime': '03-04 11:05:11'
},
{
'vehicleCode': '1055',
'materialQty': '0',
'materialWeight': '0.00',
'materialName': '004',
'createTime': '03-04 10:48:18'
},
{
'vehicleCode': '0048',
'materialQty': '0',
'materialWeight': '0.00',
'materialName': '004',
'createTime': '03-04 09:58:48'
},
{
'vehicleCode': '0011',
'materialQty': '0',
'materialWeight': '0.00',
'materialName': '004',
'createTime': '03-04 09:16:21'
},
{
'vehicleCode': '0046',
'materialQty': '0',
'materialWeight': '0.00',
'materialName': '004',
'createTime': '03-04 08:56:25'
}
],
// 剩余工单列表
'residualWorkOrder': [
'lastWorkOrderList': [
{
// 物料
'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'
'workorderCode': '240119006',
'materialName': '004',
'materialSpec': 'ZX',
'planQty': '500',
'planWeight': '0',
'produceOrder': null,
'customer': '实业股份',
'vehicleType': '3',
'createTime': '01-19 18:04: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'
'workorderCode': '240228001',
'materialName': '004',
'materialSpec': 'ZX',
'planQty': '1000',
'planWeight': '0',
'produceOrder': null,
'customer': '实业股份',
'vehicleType': '2',
'createTime': '02-28 09:50:48'
}
]
}