|
|
@ -14,7 +14,7 @@
|
|
|
|
}} 差异:{{
|
|
|
|
}} 差异:{{
|
|
|
|
finishedProductOutput.mb - finishedProductOutput.sj
|
|
|
|
finishedProductOutput.mb - finishedProductOutput.sj
|
|
|
|
}}; 达成率:{{ ((finishedProductOutput.sj / finishedProductOutput.mb) * 100).toFixed(2) }}% </span>
|
|
|
|
}}; 达成率:{{ ((finishedProductOutput.sj / finishedProductOutput.mb) * 100).toFixed(2) }}% </span>
|
|
|
|
<span style="position: absolute;top: 54.3%;left: 19%;color: #fff;font-size: 0.9vw">目标:{{ finalInspection.mb }}% 实际:{{
|
|
|
|
<span style="position: absolute;top: 54.3%;left: 19%;color: #fff;font-size: 0.9vw">目标:{{ finalInspection.mb }} 实际:{{
|
|
|
|
finalInspection.sj
|
|
|
|
finalInspection.sj
|
|
|
|
}}% 累计不良数:{{ finalInspection.bls }}</span>
|
|
|
|
}}% 累计不良数:{{ finalInspection.bls }}</span>
|
|
|
|
<span style="position: absolute;top: 54.3%;left: 66.7%;color: #CFD2D0;font-size: 0.9vw">合计:{{ zhddhj }}</span>
|
|
|
|
<span style="position: absolute;top: 54.3%;left: 66.7%;color: #CFD2D0;font-size: 0.9vw">合计:{{ zhddhj }}</span>
|
|
|
@ -179,9 +179,20 @@ export default {
|
|
|
|
e: 'cp-1-01',
|
|
|
|
e: 'cp-1-01',
|
|
|
|
i: "scada_cp_cp_cl_01('CX_01')",
|
|
|
|
i: "scada_cp_cp_cl_01('CX_01')",
|
|
|
|
f: (e) => {
|
|
|
|
f: (e) => {
|
|
|
|
|
|
|
|
let nowHour = new Date().getHours()
|
|
|
|
|
|
|
|
let jdmb = 0
|
|
|
|
|
|
|
|
if (nowHour >= 8 && nowHour < 20) {
|
|
|
|
|
|
|
|
jdmb = e.map(v => v.Y_VALUE_TWO).splice(0, (nowHour - 8 + 1)).reduce((v1, v2) => v1 + v2, 0)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (nowHour >= 20) {
|
|
|
|
|
|
|
|
jdmb = e.map(v => v.Y_VALUE_TWO).splice(0, (nowHour - 20 + 1)).reduce((v1, v2) => v1 + v2, 0)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (nowHour < 8) {
|
|
|
|
|
|
|
|
jdmb = e.map(v => v.Y_VALUE_TWO).splice(0, (nowHour + 4 + 1)).reduce((v1, v2) => v1 + v2, 0)
|
|
|
|
|
|
|
|
}
|
|
|
|
this.finishedProductOutput = {
|
|
|
|
this.finishedProductOutput = {
|
|
|
|
mb: e.reduce((v1, v2) => v1 + v2.Y_VALUE_TWO, 0),
|
|
|
|
mb: e.reduce((v1, v2) => v1 + v2.Y_VALUE_TWO, 0),
|
|
|
|
jdmb: 1,
|
|
|
|
jdmb: jdmb,
|
|
|
|
sj: e.reduce((v1, v2) => v1 + v2.Y_VALUE_ONE, 0),
|
|
|
|
sj: e.reduce((v1, v2) => v1 + v2.Y_VALUE_ONE, 0),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.$refs.chart1.setData({
|
|
|
|
this.$refs.chart1.setData({
|
|
|
@ -342,6 +353,17 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
e: 'cp-1-02',
|
|
|
|
|
|
|
|
i: "scada_cp_zj_02('CX_01')",
|
|
|
|
|
|
|
|
f: (e) => {
|
|
|
|
|
|
|
|
this.finalInspection = {
|
|
|
|
|
|
|
|
mb: e?.[0]?.COLUMN_A || '',
|
|
|
|
|
|
|
|
sj: e?.[0]?.COLUMN_C || '',
|
|
|
|
|
|
|
|
bls: e?.[0]?.COLUMN_B || '',
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
e: 'cp-1-03',
|
|
|
|
e: 'cp-1-03',
|
|
|
|
i: "scada_cp_zj_01('CX_01')",
|
|
|
|
i: "scada_cp_zj_01('CX_01')",
|
|
|
@ -578,7 +600,7 @@ export default {
|
|
|
|
i: "scada_cp_rk_order_01('CX_01')",
|
|
|
|
i: "scada_cp_rk_order_01('CX_01')",
|
|
|
|
f: (e) => {
|
|
|
|
f: (e) => {
|
|
|
|
this.scrollTableData = e
|
|
|
|
this.scrollTableData = e
|
|
|
|
this.zhddhj = e.reduce((v1, v2) => v1 + v2.COLUMN_D, 0)
|
|
|
|
this.zhddhj = e.reduce((v1, v2) => v1 + parseFloat(v2.COLUMN_D), 0)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
@ -587,9 +609,20 @@ export default {
|
|
|
|
e: 'cp-2-01',
|
|
|
|
e: 'cp-2-01',
|
|
|
|
i: "scada_cp_cp_cl_01('CX_02')",
|
|
|
|
i: "scada_cp_cp_cl_01('CX_02')",
|
|
|
|
f: (e) => {
|
|
|
|
f: (e) => {
|
|
|
|
|
|
|
|
let nowHour = new Date().getHours()
|
|
|
|
|
|
|
|
let jdmb = 0
|
|
|
|
|
|
|
|
if (nowHour >= 8 && nowHour < 20) {
|
|
|
|
|
|
|
|
jdmb = e.map(v => v.Y_VALUE_TWO).splice(0, (nowHour - 8 + 1)).reduce((v1, v2) => v1 + v2, 0)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (nowHour >= 20) {
|
|
|
|
|
|
|
|
jdmb = e.map(v => v.Y_VALUE_TWO).splice(0, (nowHour - 20 + 1)).reduce((v1, v2) => v1 + v2, 0)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (nowHour < 8) {
|
|
|
|
|
|
|
|
jdmb = e.map(v => v.Y_VALUE_TWO).splice(0, (nowHour + 4 + 1)).reduce((v1, v2) => v1 + v2, 0)
|
|
|
|
|
|
|
|
}
|
|
|
|
this.finishedProductOutput = {
|
|
|
|
this.finishedProductOutput = {
|
|
|
|
mb: e.reduce((v1, v2) => v1 + v2.Y_VALUE_TWO, 0),
|
|
|
|
mb: e.reduce((v1, v2) => v1 + v2.Y_VALUE_TWO, 0),
|
|
|
|
jdmb: 1,
|
|
|
|
jdmb: jdmb,
|
|
|
|
sj: e.reduce((v1, v2) => v1 + v2.Y_VALUE_ONE, 0),
|
|
|
|
sj: e.reduce((v1, v2) => v1 + v2.Y_VALUE_ONE, 0),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.$refs.chart1.setData({
|
|
|
|
this.$refs.chart1.setData({
|
|
|
@ -750,6 +783,17 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
e: 'cp-2-02',
|
|
|
|
|
|
|
|
i: "scada_cp_zj_02('CX_02')",
|
|
|
|
|
|
|
|
f: (e) => {
|
|
|
|
|
|
|
|
this.finalInspection = {
|
|
|
|
|
|
|
|
mb: e?.[0]?.COLUMN_A || '',
|
|
|
|
|
|
|
|
sj: e?.[0]?.COLUMN_C || '',
|
|
|
|
|
|
|
|
bls: e?.[0]?.COLUMN_B || '',
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
e: 'cp-2-03',
|
|
|
|
e: 'cp-2-03',
|
|
|
|
i: "scada_cp_zj_01('CX_02')",
|
|
|
|
i: "scada_cp_zj_01('CX_02')",
|
|
|
@ -986,7 +1030,7 @@ export default {
|
|
|
|
i: "scada_cp_rk_order_01('CX_02')",
|
|
|
|
i: "scada_cp_rk_order_01('CX_02')",
|
|
|
|
f: (e) => {
|
|
|
|
f: (e) => {
|
|
|
|
this.scrollTableData = e
|
|
|
|
this.scrollTableData = e
|
|
|
|
this.zhddhj = e.reduce((v1, v2) => v1 + v2.COLUMN_D, 0)
|
|
|
|
this.zhddhj = e.reduce((v1, v2) => v1 + parseFloat(v2.COLUMN_D), 0)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]
|
|
|
|
]
|
|
|
|