|
|
|
@ -71,8 +71,8 @@
|
|
|
|
|
<span>D</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="chartSpan1">东线</div>
|
|
|
|
|
<div class="chartSpan2">西线</div>
|
|
|
|
|
<div class="chartSpan1" v-if="$route.query.id === '1' || id === '1'">东线</div>
|
|
|
|
|
<div class="chartSpan2" v-if="$route.query.id === '1' || id === '1'">西线</div>
|
|
|
|
|
|
|
|
|
|
<div class="supplementInfo">注射压力标准范围:10.0-14.0Mpa A、B组份枪头压力差≤1Mpa</div>
|
|
|
|
|
<div class="supplementInfo1">发泡料温度标准范围:18.0-24.0℃</div>
|
|
|
|
@ -510,10 +510,11 @@ export default {
|
|
|
|
|
barWidth: "40%",
|
|
|
|
|
label: {
|
|
|
|
|
show: true,
|
|
|
|
|
formatter:(e)=>{
|
|
|
|
|
if(e.data === 0){
|
|
|
|
|
formatter: (e) => {
|
|
|
|
|
if (e.data === 0) {
|
|
|
|
|
return ''
|
|
|
|
|
}else{}
|
|
|
|
|
} else {
|
|
|
|
|
}
|
|
|
|
|
return e.data
|
|
|
|
|
},
|
|
|
|
|
position: "top",
|
|
|
|
@ -545,12 +546,10 @@ export default {
|
|
|
|
|
{
|
|
|
|
|
e: 'fp-1-05',
|
|
|
|
|
i: "SCADA_INV_STATS_01('')",
|
|
|
|
|
t:2,
|
|
|
|
|
f: (e) => {
|
|
|
|
|
// this.scrollTableData1 = e
|
|
|
|
|
getFoamingData({
|
|
|
|
|
"PRODUCT_LINE_CODE": "CX_01"
|
|
|
|
|
}).then(e => {
|
|
|
|
|
let table = e.data?.map(val => {
|
|
|
|
|
console.log(JSON.stringify(e))
|
|
|
|
|
let table = e.map(val => {
|
|
|
|
|
return {
|
|
|
|
|
value1: val.EQUIPMENT_CODE,
|
|
|
|
|
value2: val.FIXTUREBOXTYPE,
|
|
|
|
@ -558,7 +557,7 @@ export default {
|
|
|
|
|
value4: val.TARGET,
|
|
|
|
|
value5: val.PLAN_SUM,
|
|
|
|
|
value6: val.PRO_SUM,
|
|
|
|
|
value7: (val.PLAN_SUM === 0 ? 0 :((val.PRO_SUM / val.PLAN_SUM) * 100).toFixed(2) )+ '%',
|
|
|
|
|
value7: (val.PLAN_SUM === 0 ? 0 : ((val.PRO_SUM / val.PLAN_SUM) * 100).toFixed(2)) + '%',
|
|
|
|
|
value8: val.ANHOUR,
|
|
|
|
|
value9: val.TWOHOUR,
|
|
|
|
|
value10: val.THREEHOUR,
|
|
|
|
@ -593,9 +592,6 @@ 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),
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
@ -667,10 +663,11 @@ export default {
|
|
|
|
|
barWidth: "30%",
|
|
|
|
|
label: {
|
|
|
|
|
show: true,
|
|
|
|
|
formatter:(e)=>{
|
|
|
|
|
if(e.data === 0){
|
|
|
|
|
formatter: (e) => {
|
|
|
|
|
if (e.data === 0) {
|
|
|
|
|
return ''
|
|
|
|
|
}else{}
|
|
|
|
|
} else {
|
|
|
|
|
}
|
|
|
|
|
return e.data
|
|
|
|
|
},
|
|
|
|
|
position: "top",
|
|
|
|
@ -708,10 +705,11 @@ export default {
|
|
|
|
|
barGap: '40%',
|
|
|
|
|
label: {
|
|
|
|
|
show: true,
|
|
|
|
|
formatter:(e)=>{
|
|
|
|
|
if(e.data === 0){
|
|
|
|
|
formatter: (e) => {
|
|
|
|
|
if (e.data === 0) {
|
|
|
|
|
return ''
|
|
|
|
|
}else{}
|
|
|
|
|
} else {
|
|
|
|
|
}
|
|
|
|
|
return e.data
|
|
|
|
|
},
|
|
|
|
|
position: "top",
|
|
|
|
@ -865,10 +863,11 @@ export default {
|
|
|
|
|
label: {
|
|
|
|
|
show: true,
|
|
|
|
|
position: "top",
|
|
|
|
|
formatter:(e)=>{
|
|
|
|
|
if(e.data === 0){
|
|
|
|
|
formatter: (e) => {
|
|
|
|
|
if (e.data === 0) {
|
|
|
|
|
return ''
|
|
|
|
|
}else{}
|
|
|
|
|
} else {
|
|
|
|
|
}
|
|
|
|
|
return e.data
|
|
|
|
|
},
|
|
|
|
|
textStyle: {
|
|
|
|
@ -901,7 +900,7 @@ export default {
|
|
|
|
|
shadowBlur: 20,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
data: e.map(val => val.Y_VALUE_ONE),
|
|
|
|
|
data: e.map(val => val.Y_VALUE_ONE === 0 ? null : val.Y_VALUE_ONE),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'ISO温度',
|
|
|
|
@ -919,10 +918,11 @@ export default {
|
|
|
|
|
label: {
|
|
|
|
|
show: true,
|
|
|
|
|
position: "top",
|
|
|
|
|
formatter:(e)=>{
|
|
|
|
|
if(e.data === 0){
|
|
|
|
|
formatter: (e) => {
|
|
|
|
|
if (e.data === 0) {
|
|
|
|
|
return ''
|
|
|
|
|
}else{}
|
|
|
|
|
} else {
|
|
|
|
|
}
|
|
|
|
|
return e.data
|
|
|
|
|
},
|
|
|
|
|
textStyle: {
|
|
|
|
@ -956,7 +956,7 @@ export default {
|
|
|
|
|
shadowBlur: 20,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
data: e.map(val => val.Y_VALUE_TWO),
|
|
|
|
|
data: e.map(val => val.Y_VALUE_TWO === 0 ? null : val.Y_VALUE_TWO),
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
})
|
|
|
|
@ -990,7 +990,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
axisLabel: {
|
|
|
|
|
// interval: 0,
|
|
|
|
|
interval: 0,
|
|
|
|
|
// rotate: 40,
|
|
|
|
|
textStyle: {
|
|
|
|
|
fontFamily: "Microsoft YaHei",
|
|
|
|
@ -1018,10 +1018,11 @@ export default {
|
|
|
|
|
type: "bar",
|
|
|
|
|
barWidth: "33%",
|
|
|
|
|
label: {
|
|
|
|
|
formatter:(e)=>{
|
|
|
|
|
if(e.data === 0){
|
|
|
|
|
formatter: (e) => {
|
|
|
|
|
if (e.data === 0) {
|
|
|
|
|
return ''
|
|
|
|
|
}else{}
|
|
|
|
|
} else {
|
|
|
|
|
}
|
|
|
|
|
return e.data
|
|
|
|
|
},
|
|
|
|
|
show: true,
|
|
|
|
@ -1066,6 +1067,7 @@ export default {
|
|
|
|
|
f: (e) => {
|
|
|
|
|
this.planNum = e[0].X_VALUE
|
|
|
|
|
this.practicalNum = e[0].Y_VALUE_ONE
|
|
|
|
|
this.differenceNum = e[0].Y_VALUE_TWO
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
@ -1132,10 +1134,11 @@ export default {
|
|
|
|
|
barMaxWidth: 40,
|
|
|
|
|
label: {
|
|
|
|
|
show: true,
|
|
|
|
|
formatter:(e)=>{
|
|
|
|
|
if(e.data === 0){
|
|
|
|
|
formatter: (e) => {
|
|
|
|
|
if (e.data === 0) {
|
|
|
|
|
return ''
|
|
|
|
|
}else{}
|
|
|
|
|
} else {
|
|
|
|
|
}
|
|
|
|
|
return e.data
|
|
|
|
|
},
|
|
|
|
|
position: "top",
|
|
|
|
@ -1168,11 +1171,8 @@ export default {
|
|
|
|
|
e: 'fp-2-05',
|
|
|
|
|
i: "SCADA_INV_STATS_02('')",
|
|
|
|
|
f: (e) => {
|
|
|
|
|
// this.scrollTableData1 = e
|
|
|
|
|
getFoamingData({
|
|
|
|
|
"PRODUCT_LINE_CODE": "CX_02"
|
|
|
|
|
}).then(e => {
|
|
|
|
|
let table = e.data?.map(val => {
|
|
|
|
|
console.log(e)
|
|
|
|
|
let table = e.map(val => {
|
|
|
|
|
return {
|
|
|
|
|
value1: val.EQUIPMENT_CODE,
|
|
|
|
|
value2: val.FIXTUREBOXTYPE,
|
|
|
|
@ -1180,7 +1180,7 @@ export default {
|
|
|
|
|
value4: val.TARGET,
|
|
|
|
|
value5: val.PLAN_SUM,
|
|
|
|
|
value6: val.PRO_SUM,
|
|
|
|
|
value7: (val.PLAN_SUM === 0 ? 0 :((val.PRO_SUM / val.PLAN_SUM) * 100).toFixed(2) )+ '%',
|
|
|
|
|
value7: (val.PLAN_SUM === 0 ? 0 : ((val.PRO_SUM / val.PLAN_SUM) * 100).toFixed(2)) + '%',
|
|
|
|
|
value8: val.ANHOUR,
|
|
|
|
|
value9: val.TWOHOUR,
|
|
|
|
|
value10: val.THREEHOUR,
|
|
|
|
@ -1195,14 +1195,13 @@ export default {
|
|
|
|
|
value19: val.TWELVEHOUR,
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
this.scrollTableData1 = table
|
|
|
|
|
let totalArr = table
|
|
|
|
|
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.value4).reduce((acc, curr) => acc + curr, 0) === 0 ? 0 : ((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),
|
|
|
|
|
value4: totalArr.map(val => val.value5).reduce((acc, curr) => acc + curr, 0) === 0 ? 0 : ((totalArr.map(val => val.value6).reduce((acc, curr) => acc + curr, 0) / totalArr.map(val => val.value5).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),
|
|
|
|
@ -1216,7 +1215,6 @@ 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),
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
@ -1289,10 +1287,11 @@ export default {
|
|
|
|
|
label: {
|
|
|
|
|
show: true,
|
|
|
|
|
position: "top",
|
|
|
|
|
formatter:(e)=>{
|
|
|
|
|
if(e.data === 0){
|
|
|
|
|
formatter: (e) => {
|
|
|
|
|
if (e.data === 0) {
|
|
|
|
|
return ''
|
|
|
|
|
}else{}
|
|
|
|
|
} else {
|
|
|
|
|
}
|
|
|
|
|
return e.data
|
|
|
|
|
},
|
|
|
|
|
textStyle: {
|
|
|
|
@ -1330,10 +1329,11 @@ export default {
|
|
|
|
|
barGap: '40%',
|
|
|
|
|
label: {
|
|
|
|
|
show: true,
|
|
|
|
|
formatter:(e)=>{
|
|
|
|
|
if(e.data === 0){
|
|
|
|
|
formatter: (e) => {
|
|
|
|
|
if (e.data === 0) {
|
|
|
|
|
return ''
|
|
|
|
|
}else{}
|
|
|
|
|
} else {
|
|
|
|
|
}
|
|
|
|
|
return e.data
|
|
|
|
|
},
|
|
|
|
|
position: "top",
|
|
|
|
@ -1486,10 +1486,11 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
label: {
|
|
|
|
|
show: true,
|
|
|
|
|
formatter:(e)=>{
|
|
|
|
|
if(e.data === 0){
|
|
|
|
|
formatter: (e) => {
|
|
|
|
|
if (e.data === 0) {
|
|
|
|
|
return ''
|
|
|
|
|
}else{}
|
|
|
|
|
} else {
|
|
|
|
|
}
|
|
|
|
|
return e.data
|
|
|
|
|
},
|
|
|
|
|
position: "top",
|
|
|
|
@ -1523,7 +1524,7 @@ export default {
|
|
|
|
|
shadowBlur: 20,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
data: e.map(val => val.Y_VALUE_ONE),
|
|
|
|
|
data: e.map(val => val.Y_VALUE_ONE === 0 ? null : val.Y_VALUE_ONE),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'ISO温度',
|
|
|
|
@ -1540,10 +1541,11 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
label: {
|
|
|
|
|
show: true,
|
|
|
|
|
formatter:(e)=>{
|
|
|
|
|
if(e.data === 0){
|
|
|
|
|
formatter: (e) => {
|
|
|
|
|
if (e.data === 0) {
|
|
|
|
|
return ''
|
|
|
|
|
}else{}
|
|
|
|
|
} else {
|
|
|
|
|
}
|
|
|
|
|
return e.data
|
|
|
|
|
},
|
|
|
|
|
position: "top",
|
|
|
|
@ -1578,7 +1580,7 @@ export default {
|
|
|
|
|
shadowBlur: 20,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
data: e.map(val => val.Y_VALUE_TWO),
|
|
|
|
|
data: e.map(val => val.Y_VALUE_TWO === 0 ? null : val.Y_VALUE_TWO),
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
})
|
|
|
|
@ -1612,7 +1614,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
axisLabel: {
|
|
|
|
|
// interval: 0,
|
|
|
|
|
interval: 0,
|
|
|
|
|
// rotate: 40,
|
|
|
|
|
textStyle: {
|
|
|
|
|
fontFamily: "Microsoft YaHei",
|
|
|
|
@ -1641,10 +1643,11 @@ export default {
|
|
|
|
|
barWidth: "33%",
|
|
|
|
|
label: {
|
|
|
|
|
show: true,
|
|
|
|
|
formatter:(e)=>{
|
|
|
|
|
if(e.data === 0){
|
|
|
|
|
formatter: (e) => {
|
|
|
|
|
if (e.data === 0) {
|
|
|
|
|
return ''
|
|
|
|
|
}else{}
|
|
|
|
|
} else {
|
|
|
|
|
}
|
|
|
|
|
return e.data
|
|
|
|
|
},
|
|
|
|
|
position: "top",
|
|
|
|
@ -2027,101 +2030,112 @@ export default {
|
|
|
|
|
background: #00ff00;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
}
|
|
|
|
|
.left1{
|
|
|
|
|
|
|
|
|
|
.left1 {
|
|
|
|
|
background-image: url("../../../assets/board/left.png");
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
position: absolute;
|
|
|
|
|
transform: translate(-50%,-50%);
|
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
|
top: 38%;
|
|
|
|
|
left: 32%;
|
|
|
|
|
width: 5vw;
|
|
|
|
|
height: 4.05vw;
|
|
|
|
|
span{
|
|
|
|
|
|
|
|
|
|
span {
|
|
|
|
|
position: absolute;
|
|
|
|
|
transform: translate(-50%,-50%);
|
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
|
top: 28%;
|
|
|
|
|
left: 43%;
|
|
|
|
|
font-size: 1vw;
|
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.left2{
|
|
|
|
|
|
|
|
|
|
.left2 {
|
|
|
|
|
background-image: url("../../../assets/board/right.png");
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
position: absolute;
|
|
|
|
|
transform: translate(-50%,-50%);
|
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
|
top: 49%;
|
|
|
|
|
left: 55%;
|
|
|
|
|
width: 5vw;
|
|
|
|
|
height: 2.86vw;
|
|
|
|
|
span{
|
|
|
|
|
|
|
|
|
|
span {
|
|
|
|
|
position: absolute;
|
|
|
|
|
transform: translate(-50%,-50%);
|
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
|
top: 37%;
|
|
|
|
|
left: 57%;
|
|
|
|
|
font-size: 1vw;
|
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.right1{
|
|
|
|
|
|
|
|
|
|
.right1 {
|
|
|
|
|
background-image: url("../../../assets/board/right.png");
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
position: absolute;
|
|
|
|
|
transform: translate(-50%,-50%);
|
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
|
top: 36%;
|
|
|
|
|
left: 57%;
|
|
|
|
|
width: 5vw;
|
|
|
|
|
height: 2.86vw;
|
|
|
|
|
span{
|
|
|
|
|
|
|
|
|
|
span {
|
|
|
|
|
position: absolute;
|
|
|
|
|
transform: translate(-50%,-50%);
|
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
|
top: 37%;
|
|
|
|
|
left: 57%;
|
|
|
|
|
font-size: 1vw;
|
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.right2{
|
|
|
|
|
|
|
|
|
|
.right2 {
|
|
|
|
|
background-image: url("../../../assets/board/right.png");
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
position: absolute;
|
|
|
|
|
transform: translate(-50%,-50%);
|
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
|
top: 39%;
|
|
|
|
|
left: 68%;
|
|
|
|
|
width: 5vw;
|
|
|
|
|
height: 2.86vw;
|
|
|
|
|
span{
|
|
|
|
|
|
|
|
|
|
span {
|
|
|
|
|
position: absolute;
|
|
|
|
|
transform: translate(-50%,-50%);
|
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
|
top: 37%;
|
|
|
|
|
left: 57%;
|
|
|
|
|
font-size: 1vw;
|
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.chartSpan1{
|
|
|
|
|
|
|
|
|
|
.chartSpan1 {
|
|
|
|
|
position: absolute;
|
|
|
|
|
transform: translate(-50%,-50%);
|
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
|
top: 94.3%;
|
|
|
|
|
left: 73%;
|
|
|
|
|
font-size: 0.8vw;
|
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
|
.chartSpan1{
|
|
|
|
|
|
|
|
|
|
.chartSpan1 {
|
|
|
|
|
position: absolute;
|
|
|
|
|
transform: translate(-50%,-50%);
|
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
|
top: 94.3%;
|
|
|
|
|
left: 73%;
|
|
|
|
|
font-size: 0.8vw;
|
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
|
.chartSpan2{
|
|
|
|
|
|
|
|
|
|
.chartSpan2 {
|
|
|
|
|
position: absolute;
|
|
|
|
|
transform: translate(-50%,-50%);
|
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
|
top: 94.3%;
|
|
|
|
|
left: 96%;
|
|
|
|
|
font-size: 0.8vw;
|
|
|
|
|