工位
@@ -438,6 +438,314 @@
+
+
+
+
+
+
@@ -446,55 +754,55 @@
合计
- {{total.value1}}%
+ {{ total.value1 }}%
- {{total.value2}}
+ {{ total.value2 }}
- {{total.value3}}
+ {{ total.value3 }}
- {{total.value4}}%
+ {{ total.value4 }}%
- {{total.value5}}
+ {{ total.value5 }}
- {{total.value6}}
+ {{ total.value6 }}
- {{total.value7}}
+ {{ total.value7 }}
- {{total.value8}}
+ {{ total.value8 }}
- {{total.value9}}
+ {{ total.value9 }}
- {{total.value10}}
+ {{ total.value10 }}
- {{total.value11}}
+ {{ total.value11 }}
- {{total.value12}}
+ {{ total.value12 }}
- {{total.value13}}
+ {{ total.value13 }}
- {{total.value14}}
+ {{ total.value14 }}
- {{total.value15}}
+ {{ total.value15 }}
- {{total.value16}}
+ {{ total.value16 }}
@@ -505,7 +813,7 @@
import vueSeamlessScroll from "vue-seamless-scroll";
import Chart from "../../../components/board/Chart";
import * as echarts from 'echarts'
-import {getData, getFoamingData,getCurrentTeamTimeList} from "@/api/board/getData";
+import {getData, getFoamingData, getCurrentTeamTimeList} from "@/api/board/getData";
import {mixData} from "@/api/board/mixData";
export default {
@@ -522,10 +830,10 @@ export default {
},
data() {
return {
- show: true,
+ show: 0,
planNum: 0,
practicalNum: 0,
- total:{},
+ total: {},
title: [
'生产计划',
'生产统计',
@@ -643,7 +951,7 @@ export default {
},
series: [
{
- barMaxWidth:40,
+ barMaxWidth: 40,
name: '数量',
type: "bar",
barWidth: "40%",
@@ -707,24 +1015,24 @@ export default {
}
})
this.scrollTableData1 = table
- let totalArr = table.slice(0,6)
+ let totalArr = table.slice(0, 6)
this.total = {
- value1:((totalArr.filter(val=>val.value3 === '生产中').length / 6)*100).toFixed(2),
- value2:totalArr.map(val=>val.value5).reduce((acc, curr) => acc + curr, 0),
- value3:totalArr.map(val=>val.value6).reduce((acc, curr) => acc + curr, 0),
- value4:((totalArr.map(val=>val.value6).reduce((acc, curr) => acc + curr, 0)/totalArr.map(val=>val.value4).reduce((acc, curr) => acc + curr, 0))*100).toFixed(2),
- value5:totalArr.map(val=>val.value8).reduce((acc, curr) => acc + curr, 0),
- value6:totalArr.map(val=>val.value9).reduce((acc, curr) => acc + curr, 0),
- value7:totalArr.map(val=>val.value10).reduce((acc, curr) => acc + curr, 0),
- value8:totalArr.map(val=>val.value11).reduce((acc, curr) => acc + curr, 0),
- value9:totalArr.map(val=>val.value12).reduce((acc, curr) => acc + curr, 0),
- value10:totalArr.map(val=>val.value13).reduce((acc, curr) => acc + curr, 0),
- value11:totalArr.map(val=>val.value14).reduce((acc, curr) => acc + curr, 0),
- value12:totalArr.map(val=>val.value15).reduce((acc, curr) => acc + curr, 0),
- value13:totalArr.map(val=>val.value16).reduce((acc, curr) => acc + curr, 0),
- value14:totalArr.map(val=>val.value17).reduce((acc, curr) => acc + curr, 0),
- value15:totalArr.map(val=>val.value18).reduce((acc, curr) => acc + curr, 0),
- value16:totalArr.map(val=>val.value19).reduce((acc, curr) => acc + curr, 0),
+ value1: ((totalArr.filter(val => val.value3 === '生产中').length / 6) * 100).toFixed(2),
+ value2: totalArr.map(val => val.value5).reduce((acc, curr) => acc + curr, 0),
+ value3: totalArr.map(val => val.value6).reduce((acc, curr) => acc + curr, 0),
+ value4: ((totalArr.map(val => val.value6).reduce((acc, curr) => acc + curr, 0) / totalArr.map(val => val.value4).reduce((acc, curr) => acc + curr, 0)) * 100).toFixed(2),
+ value5: totalArr.map(val => val.value8).reduce((acc, curr) => acc + curr, 0),
+ value6: totalArr.map(val => val.value9).reduce((acc, curr) => acc + curr, 0),
+ value7: totalArr.map(val => val.value10).reduce((acc, curr) => acc + curr, 0),
+ value8: totalArr.map(val => val.value11).reduce((acc, curr) => acc + curr, 0),
+ value9: totalArr.map(val => val.value12).reduce((acc, curr) => acc + curr, 0),
+ value10: totalArr.map(val => val.value13).reduce((acc, curr) => acc + curr, 0),
+ value11: totalArr.map(val => val.value14).reduce((acc, curr) => acc + curr, 0),
+ value12: totalArr.map(val => val.value15).reduce((acc, curr) => acc + curr, 0),
+ value13: totalArr.map(val => val.value16).reduce((acc, curr) => acc + curr, 0),
+ value14: totalArr.map(val => val.value17).reduce((acc, curr) => acc + curr, 0),
+ value15: totalArr.map(val => val.value18).reduce((acc, curr) => acc + curr, 0),
+ value16: totalArr.map(val => val.value19).reduce((acc, curr) => acc + curr, 0),
}
})
@@ -1096,7 +1404,7 @@ export default {
},
yAxis: {
- interval:0,
+ interval: 0,
type: "value",
axisLine: {
show: false,
@@ -1220,7 +1528,7 @@ export default {
name: '数量',
type: "bar",
barWidth: "40%",
- barMaxWidth:40,
+ barMaxWidth: 40,
label: {
show: true,
position: "top",
@@ -1282,24 +1590,24 @@ export default {
})
this.scrollTableData1 = table
- let totalArr = table.slice(0,6)
+ let totalArr = table.slice(0, 6)
this.total = {
- value1:((totalArr.filter(val=>val.value3 === '生产中').length / 6)*100).toFixed(2),
- value2:totalArr.map(val=>val.value5).reduce((acc, curr) => acc + curr, 0),
- value3:totalArr.map(val=>val.value6).reduce((acc, curr) => acc + curr, 0),
- value4:((totalArr.map(val=>val.value6).reduce((acc, curr) => acc + curr, 0)/totalArr.map(val=>val.value4).reduce((acc, curr) => acc + curr, 0))*100).toFixed(2),
- value5:totalArr.map(val=>val.value8).reduce((acc, curr) => acc + curr, 0),
- value6:totalArr.map(val=>val.value9).reduce((acc, curr) => acc + curr, 0),
- value7:totalArr.map(val=>val.value10).reduce((acc, curr) => acc + curr, 0),
- value8:totalArr.map(val=>val.value11).reduce((acc, curr) => acc + curr, 0),
- value9:totalArr.map(val=>val.value12).reduce((acc, curr) => acc + curr, 0),
- value10:totalArr.map(val=>val.value13).reduce((acc, curr) => acc + curr, 0),
- value11:totalArr.map(val=>val.value14).reduce((acc, curr) => acc + curr, 0),
- value12:totalArr.map(val=>val.value15).reduce((acc, curr) => acc + curr, 0),
- value13:totalArr.map(val=>val.value16).reduce((acc, curr) => acc + curr, 0),
- value14:totalArr.map(val=>val.value17).reduce((acc, curr) => acc + curr, 0),
- value15:totalArr.map(val=>val.value18).reduce((acc, curr) => acc + curr, 0),
- value16:totalArr.map(val=>val.value19).reduce((acc, curr) => acc + curr, 0),
+ value1: ((totalArr.filter(val => val.value3 === '生产中').length / 6) * 100).toFixed(2),
+ value2: totalArr.map(val => val.value5).reduce((acc, curr) => acc + curr, 0),
+ value3: totalArr.map(val => val.value6).reduce((acc, curr) => acc + curr, 0),
+ value4: ((totalArr.map(val => val.value6).reduce((acc, curr) => acc + curr, 0) / totalArr.map(val => val.value4).reduce((acc, curr) => acc + curr, 0)) * 100).toFixed(2),
+ value5: totalArr.map(val => val.value8).reduce((acc, curr) => acc + curr, 0),
+ value6: totalArr.map(val => val.value9).reduce((acc, curr) => acc + curr, 0),
+ value7: totalArr.map(val => val.value10).reduce((acc, curr) => acc + curr, 0),
+ value8: totalArr.map(val => val.value11).reduce((acc, curr) => acc + curr, 0),
+ value9: totalArr.map(val => val.value12).reduce((acc, curr) => acc + curr, 0),
+ value10: totalArr.map(val => val.value13).reduce((acc, curr) => acc + curr, 0),
+ value11: totalArr.map(val => val.value14).reduce((acc, curr) => acc + curr, 0),
+ value12: totalArr.map(val => val.value15).reduce((acc, curr) => acc + curr, 0),
+ value13: totalArr.map(val => val.value16).reduce((acc, curr) => acc + curr, 0),
+ value14: totalArr.map(val => val.value17).reduce((acc, curr) => acc + curr, 0),
+ value15: totalArr.map(val => val.value18).reduce((acc, curr) => acc + curr, 0),
+ value16: totalArr.map(val => val.value19).reduce((acc, curr) => acc + curr, 0),
}
})
}
@@ -1670,7 +1978,7 @@ export default {
yAxis: {
type: "value",
- interval:0,
+ interval: 0,
axisLine: {
show: false,
lineStyle: {
@@ -1726,54 +2034,36 @@ export default {
}
},
mounted() {
- getCurrentTeamTimeList({'a':'a'}).then(e=>{
+ getCurrentTeamTimeList({'a': 'a'}).then(e => {
this.hourArr = e?.data.map(val => val.HOUR_TIME)
})
let timeInter = setInterval(() => {
- this.show = !this.show
- if(this.show===true){
- let totalArr = this.scrollTableData1.slice(0,6)
- this.total = {
- value1:((totalArr.filter(val=>val.value3 === '生产中').length / 6)*100).toFixed(2),
- value2:totalArr.map(val=>val.value5).reduce((acc, curr) => acc + curr, 0),
- value3:totalArr.map(val=>val.value6).reduce((acc, curr) => acc + curr, 0),
- value4:((totalArr.map(val=>val.value6).reduce((acc, curr) => acc + curr, 0)/totalArr.map(val=>val.value4).reduce((acc, curr) => acc + curr, 0))*100).toFixed(2),
- value5:totalArr.map(val=>val.value8).reduce((acc, curr) => acc + curr, 0),
- value6:totalArr.map(val=>val.value9).reduce((acc, curr) => acc + curr, 0),
- value7:totalArr.map(val=>val.value10).reduce((acc, curr) => acc + curr, 0),
- value8:totalArr.map(val=>val.value11).reduce((acc, curr) => acc + curr, 0),
- value9:totalArr.map(val=>val.value12).reduce((acc, curr) => acc + curr, 0),
- value10:totalArr.map(val=>val.value13).reduce((acc, curr) => acc + curr, 0),
- value11:totalArr.map(val=>val.value14).reduce((acc, curr) => acc + curr, 0),
- value12:totalArr.map(val=>val.value15).reduce((acc, curr) => acc + curr, 0),
- value13:totalArr.map(val=>val.value16).reduce((acc, curr) => acc + curr, 0),
- value14:totalArr.map(val=>val.value17).reduce((acc, curr) => acc + curr, 0),
- value15:totalArr.map(val=>val.value18).reduce((acc, curr) => acc + curr, 0),
- value16:totalArr.map(val=>val.value19).reduce((acc, curr) => acc + curr, 0),
- }
- }
- if(this.show===false){
- let totalArr = this.scrollTableData1.slice(6,12)
- this.total = {
- value1:((totalArr.filter(val=>val.value3 === '生产中').length / 6)*100).toFixed(2),
- value2:totalArr.map(val=>val.value5).reduce((acc, curr) => acc + curr, 0),
- value3:totalArr.map(val=>val.value6).reduce((acc, curr) => acc + curr, 0),
- value4:((totalArr.map(val=>val.value6).reduce((acc, curr) => acc + curr, 0)/totalArr.map(val=>val.value4).reduce((acc, curr) => acc + curr, 0))*100).toFixed(2),
- value5:totalArr.map(val=>val.value8).reduce((acc, curr) => acc + curr, 0),
- value6:totalArr.map(val=>val.value9).reduce((acc, curr) => acc + curr, 0),
- value7:totalArr.map(val=>val.value10).reduce((acc, curr) => acc + curr, 0),
- value8:totalArr.map(val=>val.value11).reduce((acc, curr) => acc + curr, 0),
- value9:totalArr.map(val=>val.value12).reduce((acc, curr) => acc + curr, 0),
- value10:totalArr.map(val=>val.value13).reduce((acc, curr) => acc + curr, 0),
- value11:totalArr.map(val=>val.value14).reduce((acc, curr) => acc + curr, 0),
- value12:totalArr.map(val=>val.value15).reduce((acc, curr) => acc + curr, 0),
- value13:totalArr.map(val=>val.value16).reduce((acc, curr) => acc + curr, 0),
- value14:totalArr.map(val=>val.value17).reduce((acc, curr) => acc + curr, 0),
- value15:totalArr.map(val=>val.value18).reduce((acc, curr) => acc + curr, 0),
- value16:totalArr.map(val=>val.value19).reduce((acc, curr) => acc + curr, 0),
- }
+ let num1 = this.scrollTableData1.length / 6
+ let num = this.show
+ num += 1
+ num = num % num1
+ this.show = num
+
+ let totalArr = this.scrollTableData1.slice(num * 6, (num + 1) * 6)
+ this.total = {
+ value1: ((totalArr.filter(val => val.value3 === '生产中').length / 6) * 100).toFixed(2),
+ value2: totalArr.map(val => val.value5).reduce((acc, curr) => acc + curr, 0),
+ value3: totalArr.map(val => val.value6).reduce((acc, curr) => acc + curr, 0),
+ value4: ((totalArr.map(val => val.value6).reduce((acc, curr) => acc + curr, 0) / totalArr.map(val => val.value4).reduce((acc, curr) => acc + curr, 0)) * 100).toFixed(2),
+ value5: totalArr.map(val => val.value8).reduce((acc, curr) => acc + curr, 0),
+ value6: totalArr.map(val => val.value9).reduce((acc, curr) => acc + curr, 0),
+ value7: totalArr.map(val => val.value10).reduce((acc, curr) => acc + curr, 0),
+ value8: totalArr.map(val => val.value11).reduce((acc, curr) => acc + curr, 0),
+ value9: totalArr.map(val => val.value12).reduce((acc, curr) => acc + curr, 0),
+ value10: totalArr.map(val => val.value13).reduce((acc, curr) => acc + curr, 0),
+ value11: totalArr.map(val => val.value14).reduce((acc, curr) => acc + curr, 0),
+ value12: totalArr.map(val => val.value15).reduce((acc, curr) => acc + curr, 0),
+ value13: totalArr.map(val => val.value16).reduce((acc, curr) => acc + curr, 0),
+ value14: totalArr.map(val => val.value17).reduce((acc, curr) => acc + curr, 0),
+ value15: totalArr.map(val => val.value18).reduce((acc, curr) => acc + curr, 0),
+ value16: totalArr.map(val => val.value19).reduce((acc, curr) => acc + curr, 0),
}
- }, 30 * 1000)
+ }, 3 * 1000)
if (this.$route.query.id === '1' || this.id === '1') {
this.RequestDataSet.forEach(val => {
mixData(val)
diff --git a/src/views/board/foaming/index2.vue b/src/views/board/foaming/index2.vue
index ffc36bf..dbc0eac 100644
--- a/src/views/board/foaming/index2.vue
+++ b/src/views/board/foaming/index2.vue
@@ -2,14 +2,16 @@
箱、门匹配生产数据监控平台
{{
- planNum.toString().split('').concat(['0', '0', '0', '0']).slice(0, 4).join('')
+ (['0', '0', '0', '0']).concat(planNum.toString().split('')).slice(-4).join('')
}}
- {{ practicalNum.toString().split('').concat(['0', '0', '0', '0']).slice(0, 4).join('') }}
+ {{
+ (['0', '0', '0', '0']).concat(practicalNum.toString().split('')).slice(-4).join('')
+ }}
- {{ (practicalNum - planNum).toString().split('').concat(['0', '0', '0', '0']).slice(0, 4).join('') }}
+ {{ (['0', '0', '0', '0']).concat((Math.abs(practicalNum - planNum)).toString().split('')).slice(-4).join('') }}
@@ -17,13 +19,14 @@
设备状态:
-
门体发泡线状态:
-
门体发泡机状态:
+
生产状态:
+
生产节拍:
-
线体1圈 1s
-
台车1位 1s
+
线体1圈 {{ meter1 }}s
+
台车1位 {{ meter2 }}s
@@ -57,13 +60,13 @@
- {{ item.value1 }}
+ {{ item.COLUMN_A }}
- {{ item.value2 }}
+ {{ item.COLUMN_B }}
- {{ item.value3 }}
+ {{ item.COLUMN_C }}
@@ -88,10 +91,10 @@
产量
-
{{ i.value1 }}
-
{{ i.value2 }}
-
{{ i.value3 }}-{{ i.value4 }}
+ :style="'margin-bottom:2px;height: calc(9% - 2px);line-height:calc(2.6vh - 2px);color: '+ setColor(i.COLUMN_D,i.COLUMN_E)+';text-align: center;background-color:#053460'">
+
{{ i.COLUMN_A }}
+
{{ i.COLUMN_B }}
+
{{ i.COLUMN_C }}