|
|
|
@ -48,13 +48,13 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="status5"
|
|
|
|
|
:style="'background-color:#ff0000'"></div>
|
|
|
|
|
<!-- :style="'background-color:'+(statusArr.find(e=>e.X_VALUE === '状态')&&statusArr.find(e=>e.X_VALUE === '状态').Y_VALUE === 1 ? '#ff0000':'#00ff00')"></div>-->
|
|
|
|
|
<!-- :style="'background-color:'+(statusArr.find(e=>e.X_VALUE === '状态')&&statusArr.find(e=>e.X_VALUE === '状态').Y_VALUE === 1 ? '#ff0000':'#00ff00')"></div>-->
|
|
|
|
|
<div class="info6">
|
|
|
|
|
B:
|
|
|
|
|
</div>
|
|
|
|
|
<div class="status6"
|
|
|
|
|
:style="'background-color:#ff0000'"></div>
|
|
|
|
|
<!-- :style="'background-color:'+(statusArr.find(e=>e.X_VALUE === '状态')&&statusArr.find(e=>e.X_VALUE === '状态').Y_VALUE === 1 ? '#ff0000':'#00ff00')"></div>-->
|
|
|
|
|
<!-- :style="'background-color:'+(statusArr.find(e=>e.X_VALUE === '状态')&&statusArr.find(e=>e.X_VALUE === '状态').Y_VALUE === 1 ? '#ff0000':'#00ff00')"></div>-->
|
|
|
|
|
|
|
|
|
|
<div style="position: absolute; top: 23%;left: 55%;width:10vw;color: #fff;font-size: 0.8vw;line-height: 1.5vw">
|
|
|
|
|
<div>发泡线 - 运行状态:</div>
|
|
|
|
@ -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%">
|
|
|
|
@ -446,55 +754,55 @@
|
|
|
|
|
合计
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{total.value1}}%
|
|
|
|
|
{{ total.value1 }}%
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{total.value2}}
|
|
|
|
|
{{ total.value2 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{total.value3}}
|
|
|
|
|
{{ total.value3 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 7%">
|
|
|
|
|
{{total.value4}}%
|
|
|
|
|
{{ total.value4 }}%
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{total.value5}}
|
|
|
|
|
{{ total.value5 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{total.value6}}
|
|
|
|
|
{{ total.value6 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{total.value7}}
|
|
|
|
|
{{ total.value7 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{total.value8}}
|
|
|
|
|
{{ total.value8 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{total.value9}}
|
|
|
|
|
{{ total.value9 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{total.value10}}
|
|
|
|
|
{{ total.value10 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{total.value11}}
|
|
|
|
|
{{ total.value11 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{total.value12}}
|
|
|
|
|
{{ total.value12 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{total.value13}}
|
|
|
|
|
{{ total.value13 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{total.value14}}
|
|
|
|
|
{{ total.value14 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{total.value15}}
|
|
|
|
|
{{ total.value15 }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="scrollTableItem" style="font-weight: bold;width: 5%">
|
|
|
|
|
{{total.value16}}
|
|
|
|
|
{{ total.value16 }}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -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)
|
|
|
|
|