diff --git a/src/views/bigScreen/index_jianbodept.vue b/src/views/bigScreen/index_jianbodept.vue index 8525b89f..41d21d02 100644 --- a/src/views/bigScreen/index_jianbodept.vue +++ b/src/views/bigScreen/index_jianbodept.vue @@ -6,100 +6,53 @@ - - - -
-
-
- 设备状态 + + + + +
+
+
+ 设备状态 +
+
+ + 运行中 + {{hh.yx}}台 +
+
+ + 未运行 + {{hh.wyx}}台 +
+
+ + 故障 + {{hh.gz}}台 +
-
- - 运行中 - {{hh.yx}}台 -
-
- - 未运行 - {{hh.wyx}}台 -
-
- - 故障 - {{hh.gz}}台 +
+
+
-
-
- -
-
-
- - -
-
-
减薄任务列表
-
-
-
- -
-
-
-
-
- - - -
-
-
- 减薄车间库存 + + + +
+
+
+ 减薄车间库存 +
+
+
+
+
-
-
- -
-
+ - - -
-
-
减薄交接
-
-
-
- -
-
-
- - -
- - - -
-
-
合格数统计
-
-
-
-
- - -
-
-
不合格占比统计
-
-
-
-
- +
生产数统计
@@ -118,7 +71,30 @@ {{ sctj.rhgs }} {{ sctj.rbhgs }}
- + +
+
+
+
+ +
+ + + +
+
+
合格数统计
+
+
+
+
+ + +
+
+
不合格占比统计
+
+
@@ -264,7 +240,6 @@ export default { wyx:0, gz:0, }, - sctj:{ rtcs:0, rjgs:0, @@ -277,7 +252,7 @@ export default { chartInterval2: null, //库存 configDataInm:{ - header:['物料名称','批次号','数量','生产中数量'], + header:['物料名称','批次号','数量','生产中'], headerBGC:'#0a3f44', headerHeight:40, align:'center', @@ -312,6 +287,7 @@ export default { headerHeight:40, data:[] }, + page:1, currentTime: "", currentDay: "", today: "", @@ -323,6 +299,8 @@ export default { }, mounted() { let that = this; + that.page = 1; + that.configDataInm.data = []; //表格table的高度 this.tableHeight = document.getElementById("scrollContainer").clientHeight; this.showTime(); @@ -340,7 +318,6 @@ export default { let dayitem = Number(dates[2]); that.daysList.push(dayitem); }) - console.log('that.daysList',that.daysList); that.today = new Date().toISOString().split('T')[0] // console.log('new Date', new Date().toISOString().split('T')) this.xAxisData = xAxisData; @@ -359,13 +336,14 @@ export default { //设备数据 that.getEqState(item.id); //库存统计 - this.getMaterials(item.id); + // this.getMaterials(item.id); //交接列表 - this.getHandover(item.id); + // this.getHandover(item.id); }) }) + this.getMaterials(that.page); //任务进度 - this.getMtask(); + // this.getMtask(); //投产/生产分析 this.getProductLine(); this.getCountnotok(); @@ -618,19 +596,22 @@ export default { }); }, //库存统计列表 - getMaterials() { + getMaterials(page) { let that = this; - that.$API.wpm.wmaterial.list.req({ page: 0,mgroup__name__in:'减薄A,减薄B' }).then((res) => { - that.configDataInm.data = []; - if(res.length>0){ - res.forEach((item) => { + that.$API.wpm.wmaterial.list.req({ page: page,page_size:500,mgroup__name__in:'减薄A,减薄B' }).then((res) => { + if(res.results.length>0){ + res.results.forEach((item) => { let arr = []; arr[0] = item.material_name; arr[1] = item.batch; arr[2] = item.count; - arr[2] = item.count_working; - that.configDataInm.data .push(arr); + arr[3] = item.count_working; + that.configDataInm.data.push(arr); }) + if(res.count>that.configDataInm.data.length){ + that.page++; + that.getMaterials(that.page); + } } }) }, @@ -730,6 +711,9 @@ export default { .boxmain.boxmainbottom{ height: calc(100% - 38px); } +.boxmain.boxmainTopRight{ + height: calc(100% - 120px); +} .lineDiv { height: 40px; line-height: 40px;