diff --git a/src/config/getData1.js b/src/config/getData1.js index bc20d2d..fcdbbf2 100644 --- a/src/config/getData1.js +++ b/src/config/getData1.js @@ -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', {}) diff --git a/src/config/mork1.js b/src/config/mork1.js index ca72e7b..294a679 100644 --- a/src/config/mork1.js +++ b/src/config/mork1.js @@ -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' } ] } diff --git a/src/pages/modules/SortWorkMonitor.vue b/src/pages/modules/SortWorkMonitor.vue index 70f7343..9f8f12f 100644 --- a/src/pages/modules/SortWorkMonitor.vue +++ b/src/pages/modules/SortWorkMonitor.vue @@ -6,13 +6,13 @@
-
分拣线1
+
{{topSec1.pointName}}
-
分拣线2
+
{{topSec2.pointName}}
-
人工分拣线
+
{{topSec3.pointName}}
@@ -26,11 +26,11 @@
-
当前工单:GD0000001
-
客户:XXXX有限公司
-
物料:VOD钢包砖
-
规格:200*165/135*100
-
数量:10000块
+
当前工单:{{topSec1.workorderCode}}
+
客户:{{topSec1.customer}}
+
物料:{{topSec1.materialName}}
+
规格:{{topSec1.materialSpec}}
+
数量:{{topSec1.planQty}}
@@ -43,11 +43,11 @@
-
当前工单:GD0000001
-
客户:XXXX有限公司
-
物料:VOD钢包砖
-
规格:200*165/135*100
-
数量:10000块
+
当前工单:{{topSec2.workorderCode}}
+
客户:{{topSec2.customer}}
+
物料:{{topSec2.materialName}}
+
规格:{{topSec2.materialSpec}}
+
数量:{{topSec2.planQty}}
@@ -60,11 +60,11 @@
-
分拣1:VOD钢包砖
-
分拣2:VOD钢包砖
-
分拣3:VOD钢包砖
-
分拣4:VOD钢包砖
-
分拣5:VOD钢包砖
+
当前工单:{{topSec3.workorderCode}}
+
客户:{{topSec3.customer}}
+
物料:{{topSec3.materialName}}
+
规格:{{topSec3.materialSpec}}
+
数量:{{topSec3.planQty}}
@@ -84,15 +84,15 @@ @@ -101,15 +101,15 @@ @@ -135,15 +135,15 @@
  • 创建时间
  • - +
      -
    • -
      {{e.workOrderCode}}
      +
    • +
      {{e.workorderCode}}
      {{e.materialName}}
      -
      {{e.spec}}
      -
      {{e.qty}}
      -
      {{e.weight}}
      -
      {{e.orderCode}}
      +
      {{e.materialSpec}}
      +
      {{e.planQty}}
      +
      {{e.planWeight}}
      +
      {{e.produceOrder}}
      {{e.customer}}
      {{e.vehicleType}}
      {{e.hasHalf}}
      @@ -163,8 +163,8 @@