|
|
|
|
@ -131,7 +131,7 @@
|
|
|
|
|
<Chart ref="chart4"></Chart>
|
|
|
|
|
</div>
|
|
|
|
|
<transition name="table1">
|
|
|
|
|
<div class="scrollTable1" v-if="show">
|
|
|
|
|
<div class="scrollTable1" v-if="show ===0">
|
|
|
|
|
<div style="background-color: #094170; height: calc(25vh/7)">
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
工位
|
|
|
|
|
@ -285,7 +285,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
</transition>
|
|
|
|
|
<transition name="table2">
|
|
|
|
|
<div class="scrollTable1" v-if="!show">
|
|
|
|
|
<div class="scrollTable1" v-if="show === 1">
|
|
|
|
|
<div style="background-color: #094170;height: calc(25vh/7)">
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
工位
|
|
|
|
|
@ -438,6 +438,314 @@
|
|
|
|
|
<!-- </vue-seamless-scroll>-->
|
|
|
|
|
</div>
|
|
|
|
|
</transition>
|
|
|
|
|
<transition name="table1">
|
|
|
|
|
<div class="scrollTable1" v-if="show === 2">
|
|
|
|
|
<div style="background-color: #094170;height: calc(25vh/7)">
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
工位
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 8%">
|
|
|
|
|
型号
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
状态
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
目标
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
计划
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
累计
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 7%">
|
|
|
|
|
达成率
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{ hourArr[0] }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{ hourArr[1] }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{ hourArr[2] }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{ hourArr[3] }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{ hourArr[4] }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{ hourArr[5] }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{ hourArr[6] }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{ hourArr[7] }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{ hourArr[8] }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{ hourArr[9] }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{ hourArr[10] }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{ hourArr[11] }}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- <vue-seamless-scroll-->
|
|
|
|
|
<!-- :class-option="scrollTableOption"-->
|
|
|
|
|
<!-- :data="scrollTableData1"-->
|
|
|
|
|
<!-- class="case-item"-->
|
|
|
|
|
<!-- style="height: 84%;overflow: hidden;"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<div
|
|
|
|
|
v-for="(item, index) in scrollTableData1.slice(12,18)"
|
|
|
|
|
:key="index"
|
|
|
|
|
style="height: calc(25vh/7)"
|
|
|
|
|
>
|
|
|
|
|
<div :style='"background-color:" + ((index % 2 === 0)? "#053460":"#032d57") '>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 5%">
|
|
|
|
|
{{ item.value1 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 8%">
|
|
|
|
|
{{ item.value2 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 5%">
|
|
|
|
|
{{ item.value3 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 5%">
|
|
|
|
|
{{ item.value4 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 5%">
|
|
|
|
|
{{ item.value5 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 5%">
|
|
|
|
|
{{ item.value6 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 7%">
|
|
|
|
|
{{ item.value7 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 5%">
|
|
|
|
|
{{ item.value8 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 5%">
|
|
|
|
|
{{ item.value9 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 5%">
|
|
|
|
|
{{ item.value10 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 5%">
|
|
|
|
|
{{ item.value11 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 5%">
|
|
|
|
|
{{ item.value12 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 5%">
|
|
|
|
|
{{ item.value13 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 5%">
|
|
|
|
|
{{ item.value14 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 5%">
|
|
|
|
|
{{ item.value15 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 5%">
|
|
|
|
|
{{ item.value16 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 5%">
|
|
|
|
|
{{ item.value17 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 5%">
|
|
|
|
|
{{ item.value18 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 5%">
|
|
|
|
|
{{ item.value19 }}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- </vue-seamless-scroll>-->
|
|
|
|
|
</div>
|
|
|
|
|
</transition>
|
|
|
|
|
<transition name="table2">
|
|
|
|
|
<div class="scrollTable1" v-if="show === 3">
|
|
|
|
|
<div style="background-color: #094170;height: calc(25vh/7)">
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
工位
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 8%">
|
|
|
|
|
型号
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
状态
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
目标
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
计划
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
累计
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 7%">
|
|
|
|
|
达成率
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{ hourArr[0] }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{ hourArr[1] }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{ hourArr[2] }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{ hourArr[3] }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{ hourArr[4] }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{ hourArr[5] }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{ hourArr[6] }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{ hourArr[7] }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{ hourArr[8] }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{ hourArr[9] }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{ hourArr[10] }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{ hourArr[11] }}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- <vue-seamless-scroll-->
|
|
|
|
|
<!-- :class-option="scrollTableOption"-->
|
|
|
|
|
<!-- :data="scrollTableData1"-->
|
|
|
|
|
<!-- class="case-item"-->
|
|
|
|
|
<!-- style="height: 84%;overflow: hidden;"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<div
|
|
|
|
|
v-for="(item, index) in scrollTableData1.slice(18,24)"
|
|
|
|
|
:key="index"
|
|
|
|
|
style="height: calc(25vh/7)"
|
|
|
|
|
>
|
|
|
|
|
<div :style='"background-color:" + ((index % 2 === 0)? "#053460":"#032d57") '>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 5%">
|
|
|
|
|
{{ item.value1 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 8%">
|
|
|
|
|
{{ item.value2 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 5%">
|
|
|
|
|
{{ item.value3 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 5%">
|
|
|
|
|
{{ item.value4 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 5%">
|
|
|
|
|
{{ item.value5 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 5%">
|
|
|
|
|
{{ item.value6 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 7%">
|
|
|
|
|
{{ item.value7 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 5%">
|
|
|
|
|
{{ item.value8 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 5%">
|
|
|
|
|
{{ item.value9 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 5%">
|
|
|
|
|
{{ item.value10 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 5%">
|
|
|
|
|
{{ item.value11 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 5%">
|
|
|
|
|
{{ item.value12 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 5%">
|
|
|
|
|
{{ item.value13 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 5%">
|
|
|
|
|
{{ item.value14 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 5%">
|
|
|
|
|
{{ item.value15 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 5%">
|
|
|
|
|
{{ item.value16 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 5%">
|
|
|
|
|
{{ item.value17 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 5%">
|
|
|
|
|
{{ item.value18 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="scrollTableItem" style="width: 5%">
|
|
|
|
|
{{ item.value19 }}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- </vue-seamless-scroll>-->
|
|
|
|
|
</div>
|
|
|
|
|
</transition>
|
|
|
|
|
<div class="total">
|
|
|
|
|
<div style="background-color: #094170">
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
@ -522,7 +830,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
show: true,
|
|
|
|
|
show: 0,
|
|
|
|
|
planNum: 0,
|
|
|
|
|
practicalNum: 0,
|
|
|
|
|
total: {},
|
|
|
|
|
@ -1730,9 +2038,13 @@ export default {
|
|
|
|
|
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)
|
|
|
|
|
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),
|
|
|
|
|
@ -1751,29 +2063,7 @@ export default {
|
|
|
|
|
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),
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}, 30 * 1000)
|
|
|
|
|
}, 3 * 1000)
|
|
|
|
|
if (this.$route.query.id === '1' || this.id === '1') {
|
|
|
|
|
this.RequestDataSet.forEach(val => {
|
|
|
|
|
mixData(val)
|
|
|
|
|
|