From 3ebf2bbe2a63cf28ccaf28bdc145a903df17840e Mon Sep 17 00:00:00 2001 From: xiangxy Date: Tue, 7 Mar 2023 17:37:01 +0800 Subject: [PATCH] screen --- src/assets/js/getData1.js | 478 +++++++++++++++++++++++++++++++++- src/pages/StorageMonitor2.vue | 86 +++--- 2 files changed, 514 insertions(+), 50 deletions(-) diff --git a/src/assets/js/getData1.js b/src/assets/js/getData1.js index fea4510..fbae1f4 100644 --- a/src/assets/js/getData1.js +++ b/src/assets/js/getData1.js @@ -27,7 +27,483 @@ export const storageMonitor = () => { 'materialTask': [ { 'point_id': '1597551506607968256', - 'point_code': 'YZJHJ04', + 'point_code': 'YZJHJ05', + 'point_name': '压制机旧料盅货架04', + 'point_status': '1', + 'material_id': 1556534702800769024, + 'material_code': 'HW00001', + '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', + 'is_full': '是' + }, + { + 'point_id': '1597551506607968256', + 'point_code': 'YZJHJ06', + 'point_name': '压制机旧料盅货架04', + 'point_status': '1', + 'material_id': 1556534702800769024, + 'material_code': 'HW00001', + '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', + 'is_full': '是' + }, + { + 'point_id': '1597551506607968256', + 'point_code': 'YZJHJ07', + 'point_name': '压制机旧料盅货架04', + 'point_status': '1', + 'material_id': 1556534702800769024, + 'material_code': 'HW00001', + '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', + 'is_full': '是' + }, + { + 'point_id': '1597551506607968256', + 'point_code': 'YZJHJ08', + 'point_name': '压制机旧料盅货架04', + 'point_status': '1', + 'material_id': 1556534702800769024, + 'material_code': 'HW00001', + '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', + 'is_full': '是' + }, + { + 'point_id': '1597551506607968256', + 'point_code': 'YZJHJ09', + 'point_name': '压制机旧料盅货架04', + 'point_status': '1', + 'material_id': 1556534702800769024, + 'material_code': 'HW00001', + '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', + 'is_full': '是' + }, + { + 'point_id': '1597551506607968256', + 'point_code': 'YZJHJ10', + 'point_name': '压制机旧料盅货架04', + 'point_status': '1', + 'material_id': 1556534702800769024, + 'material_code': 'HW00001', + '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', + 'is_full': '是' + }, + { + 'point_id': '1597551506607968256', + 'point_code': 'YZJHJ11', + 'point_name': '压制机旧料盅货架04', + 'point_status': '1', + 'material_id': 1556534702800769024, + 'material_code': 'HW00001', + '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', + 'is_full': '是' + }, + { + 'point_id': '1597551506607968256', + 'point_code': 'YZJHJ12', + 'point_name': '压制机旧料盅货架04', + 'point_status': '1', + 'material_id': 1556534702800769024, + 'material_code': 'HW00001', + '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', + 'is_full': '是' + }, + { + 'point_id': '1597551506607968256', + 'point_code': 'YZJHJ13', + 'point_name': '压制机旧料盅货架04', + 'point_status': '1', + 'material_id': 1556534702800769024, + 'material_code': 'HW00001', + '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', + 'is_full': '是' + }, + { + 'point_id': '1597551506607968256', + 'point_code': 'YZJHJ14', + 'point_name': '压制机旧料盅货架04', + 'point_status': '1', + 'material_id': 1556534702800769024, + 'material_code': 'HW00001', + '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', + 'is_full': '是' + }, + { + 'point_id': '1597551506607968256', + 'point_code': 'YZJHJ15', + 'point_name': '压制机旧料盅货架04', + 'point_status': '1', + 'material_id': 1556534702800769024, + 'material_code': 'HW00001', + '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', + 'is_full': '是' + }, + { + 'point_id': '1597551506607968256', + 'point_code': 'YZJHJ16', + 'point_name': '压制机旧料盅货架04', + 'point_status': '1', + 'material_id': 1556534702800769024, + 'material_code': 'HW00001', + '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', + 'is_full': '是' + }, + { + 'point_id': '1597551506607968256', + 'point_code': 'YZJHJ17', + 'point_name': '压制机旧料盅货架04', + 'point_status': '1', + 'material_id': 1556534702800769024, + 'material_code': 'HW00001', + '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', + 'is_full': '是' + }, + { + 'point_id': '1597551506607968256', + 'point_code': 'YZJHJ18', + 'point_name': '压制机旧料盅货架04', + 'point_status': '1', + 'material_id': 1556534702800769024, + 'material_code': 'HW00001', + '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', + 'is_full': '是' + }, + { + 'point_id': '1597551506607968256', + 'point_code': 'YZJHJ19', + 'point_name': '压制机旧料盅货架04', + 'point_status': '1', + 'material_id': 1556534702800769024, + 'material_code': 'HW00001', + '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', + 'is_full': '是' + }, + { + 'point_id': '1597551506607968256', + 'point_code': 'YZJHJ20', + 'point_name': '压制机旧料盅货架04', + 'point_status': '1', + 'material_id': 1556534702800769024, + 'material_code': 'HW00001', + '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', + 'is_full': '是' + }, + { + 'point_id': '1597551506607968256', + 'point_code': 'YZJHJ21', + 'point_name': '压制机旧料盅货架04', + 'point_status': '1', + 'material_id': 1556534702800769024, + 'material_code': 'HW00001', + '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', + 'is_full': '是' + }, + { + 'point_id': '1597551506607968256', + 'point_code': 'YZJHJ22', + 'point_name': '压制机旧料盅货架04', + 'point_status': '1', + 'material_id': 1556534702800769024, + 'material_code': 'HW00001', + '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', + 'is_full': '是' + }, + { + 'point_id': '1597551506607968256', + 'point_code': 'YZJHJ23', + 'point_name': '压制机旧料盅货架04', + 'point_status': '1', + 'material_id': 1556534702800769024, + 'material_code': 'HW00001', + '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', + 'is_full': '是' + }, + { + 'point_id': '1597551506607968256', + 'point_code': 'YZJHJ24', + 'point_name': '压制机旧料盅货架04', + 'point_status': '1', + 'material_id': 1556534702800769024, + 'material_code': 'HW00001', + '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', + 'is_full': '是' + }, + { + 'point_id': '1597551506607968256', + 'point_code': 'YZJHJ25', + 'point_name': '压制机旧料盅货架04', + 'point_status': '1', + 'material_id': 1556534702800769024, + 'material_code': 'HW00001', + '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', + 'is_full': '是' + }, + { + 'point_id': '1597551506607968256', + 'point_code': 'YZJHJ26', + 'point_name': '压制机旧料盅货架04', + 'point_status': '1', + 'material_id': 1556534702800769024, + 'material_code': 'HW00001', + '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', + 'is_full': '是' + }, + { + 'point_id': '1597551506607968256', + 'point_code': 'YZJHJ27', + 'point_name': '压制机旧料盅货架04', + 'point_status': '1', + 'material_id': 1556534702800769024, + 'material_code': 'HW00001', + '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', + 'is_full': '是' + }, + { + 'point_id': '1597551506607968256', + 'point_code': 'YZJHJ28', + 'point_name': '压制机旧料盅货架04', + 'point_status': '1', + 'material_id': 1556534702800769024, + 'material_code': 'HW00001', + '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', + 'is_full': '是' + }, + { + 'point_id': '1597551506607968256', + 'point_code': 'YZJHJ29', + 'point_name': '压制机旧料盅货架04', + 'point_status': '1', + 'material_id': 1556534702800769024, + 'material_code': 'HW00001', + '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', + 'is_full': '是' + }, + { + 'point_id': '1597551506607968256', + 'point_code': 'YZJHJ30', + 'point_name': '压制机旧料盅货架04', + 'point_status': '1', + 'material_id': 1556534702800769024, + 'material_code': 'HW00001', + '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', + 'is_full': '是' + }, + { + 'point_id': '1597551506607968256', + 'point_code': 'YZJHJ31', + 'point_name': '压制机旧料盅货架04', + 'point_status': '1', + 'material_id': 1556534702800769024, + 'material_code': 'HW00001', + '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', + 'is_full': '是' + }, + { + 'point_id': '1597551506607968256', + 'point_code': 'YZJHJ32', + 'point_name': '压制机旧料盅货架04', + 'point_status': '1', + 'material_id': 1556534702800769024, + 'material_code': 'HW00001', + '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', + 'is_full': '是' + }, + { + 'point_id': '1597551506607968256', + 'point_code': 'YZJHJ33', 'point_name': '压制机旧料盅货架04', 'point_status': '1', 'material_id': 1556534702800769024, diff --git a/src/pages/StorageMonitor2.vue b/src/pages/StorageMonitor2.vue index badceab..6b7179c 100644 --- a/src/pages/StorageMonitor2.vue +++ b/src/pages/StorageMonitor2.vue @@ -4,15 +4,16 @@
+
原料仓储监控
-

{{e.struct_code}}

+

{{e.point_code}}

-
+
@@ -23,11 +24,11 @@
-

货位:{{e.struct_code}}

+

货位:{{e.point_code}}

载具:{{e.storagevehicle_code}}

物料:{{e.material_code}}

名称:{{e.material_name}}

-

重量:{{e.ivt_qty}}

+

重量(kg):{{e.ivt_qty}}

入库时间:{{e.instorage_time}}

静置(h):{{e.finish_times}}

@@ -37,16 +38,16 @@
-
 
+
成品仓储监控
-

{{e.struct_code}}

+

{{e.point_code}}

-
+
@@ -57,47 +58,12 @@
-

货位:{{e.struct_code}}

+

货位:{{e.point_code}}

载具:{{e.storagevehicle_code}}

物料:{{e.material_code}}

名称:{{e.material_name}}

-

重量:{{e.ivt_qty}}

+

库存(kg):{{e.ivt_qty}}

入库时间:{{e.instorage_time}}

-

静置(h):{{e.finish_times}}

-
-
-
-
-
-
-
-
 
-
-
-
-
-

{{e.struct_code}}

-
-
-
-
-
-
-
-
-
-
-
-
-
-
-

货位:{{e.struct_code}}

-

载具:{{e.storagevehicle_code}}

-

物料:{{e.material_code}}

-

名称:{{e.material_name}}

-

重量:{{e.ivt_qty}}

-

入库时间:{{e.instorage_time}}

-

静置(h):{{e.finish_times}}

@@ -275,6 +241,29 @@ export default { let res = await storageMonitor() this.array1 = res.materialList this.array2 = res.productionList + this.group01 = [...res.materialTask] + this.group02 = [...res.productionTask] + // for (let i = 0; i < this.structArr.length; i++) { + // for (let j = 0; j < this.group01.length; j++) { + // if (this.structArr[i].sequence_number === this.group01[j].sequence_number + '') { + // this.group01[j] = Object.assign(this.group01[j], this.structArr[i]) + // } + // } + // } + // for (let i = 0; i < this.structArr.length; i++) { + // for (let j = 0; j < this.group02.length; j++) { + // if (this.structArr[i].sequence_number === this.group02[j].sequence_number + '') { + // this.group02[j] = Object.assign(this.group02[j], this.structArr[i]) + // } + // } + // } + for (let i = 0; i < this.structArr.length; i++) { + for (let j = 0; j < this.group03.length; j++) { + if (this.structArr[i].sequence_number === this.group03[j].sequence_number + '') { + this.group03[j] = Object.assign(this.group03[j], this.structArr[i]) + } + } + } }, // getdata(e) { // // getdata(21),22,23 @@ -289,7 +278,7 @@ export default { // show:false // }, getInfo1 (e) { - this.code1 = this.code1 === e.sequence_number ? '' : e.sequence_number + this.code1 = this.code1 === e.point_code ? '' : e.point_code }, closebtn () { this.code1 = '' @@ -482,7 +471,7 @@ export default { .tag_block position absolute // bottom .1rem - bottom 10px + top 25px right .3rem .tag_type display inline-block @@ -589,9 +578,8 @@ export default { z-index 97 // .corridor_2 width 100% - // line-height .1rem - line-height 10px - text-align center + height 60px + line-height 60px .locate-wrap position absolute width 100%