|
@@ -30,7 +30,8 @@ export default {
|
|
|
fontSize: 18
|
|
fontSize: 18
|
|
|
},
|
|
},
|
|
|
itemWidth: 29,
|
|
itemWidth: 29,
|
|
|
- itemHeight: 19
|
|
|
|
|
|
|
+ itemHeight: 19,
|
|
|
|
|
+ icon:"rect"
|
|
|
},
|
|
},
|
|
|
grid: {
|
|
grid: {
|
|
|
left: '3%',
|
|
left: '3%',
|
|
@@ -103,6 +104,7 @@ export default {
|
|
|
fontWeight: "bold"
|
|
fontWeight: "bold"
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
{
|
|
{
|
|
|
name: '不良',
|
|
name: '不良',
|
|
|
type: 'bar',
|
|
type: 'bar',
|
|
@@ -136,7 +138,7 @@ export default {
|
|
|
itemStyle: {
|
|
itemStyle: {
|
|
|
normal: {
|
|
normal: {
|
|
|
barBorderRadius: 6,
|
|
barBorderRadius: 6,
|
|
|
- color: "rgba(156,107,211,0.8)"
|
|
|
|
|
|
|
+ color: "#fff"
|
|
|
/* color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
/* color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
{ offset: 0, color: "rgba(156,107,211,0.8)" },
|
|
{ offset: 0, color: "rgba(156,107,211,0.8)" },
|
|
|
{ offset: 0.2, color: "rgba(156,107,211,0.5)" },
|
|
{ offset: 0.2, color: "rgba(156,107,211,0.5)" },
|
|
@@ -150,12 +152,13 @@ export default {
|
|
|
}, {
|
|
}, {
|
|
|
name: 'UPH',
|
|
name: 'UPH',
|
|
|
type: 'line',
|
|
type: 'line',
|
|
|
- symbolSize: 8,
|
|
|
|
|
barWidth: 15,
|
|
barWidth: 15,
|
|
|
data:[],
|
|
data:[],
|
|
|
//data: [12, 22, 32, 12, 32, 12, 32],
|
|
//data: [12, 22, 32, 12, 32, 12, 32],
|
|
|
emphasis: {
|
|
emphasis: {
|
|
|
focus: 'series'
|
|
focus: 'series'
|
|
|
|
|
+ },lineStyle: {
|
|
|
|
|
+ width: 4
|
|
|
},
|
|
},
|
|
|
label: {
|
|
label: {
|
|
|
show: true,
|
|
show: true,
|
|
@@ -163,7 +166,22 @@ export default {
|
|
|
fontSize:14,
|
|
fontSize:14,
|
|
|
fontWeight: "bold"
|
|
fontWeight: "bold"
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: 'UPPH',
|
|
|
|
|
+ type: 'bar',
|
|
|
|
|
+ barWidth: 15,
|
|
|
|
|
+ emphasis: {
|
|
|
|
|
+ focus: 'series'
|
|
|
|
|
+ },
|
|
|
|
|
+ data:[],
|
|
|
|
|
+ label: {
|
|
|
|
|
+ show: true,
|
|
|
|
|
+ position: 'inside',
|
|
|
|
|
+ fontSize:14,
|
|
|
|
|
+ fontWeight: "bold"
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
};
|
|
};
|
|
@@ -209,26 +227,40 @@ export default {
|
|
|
let series2 = new Array();
|
|
let series2 = new Array();
|
|
|
let series3 = new Array();
|
|
let series3 = new Array();
|
|
|
let series4 = new Array();
|
|
let series4 = new Array();
|
|
|
- for (let index = 0; index < dataList.length; index++) {
|
|
|
|
|
- const element = dataList[index];
|
|
|
|
|
- xAxis0.push(element.sp_wccode);
|
|
|
|
|
- //投入
|
|
|
|
|
- series0.push(element.v_inqty);
|
|
|
|
|
- //产出
|
|
|
|
|
- series1.push(element.v_outqty);
|
|
|
|
|
- //不良
|
|
|
|
|
- series2.push(element.v_ngqty);
|
|
|
|
|
- //良率
|
|
|
|
|
- series3.push(element.v_okrate);
|
|
|
|
|
- //UPH
|
|
|
|
|
- series4.push(element.uph);
|
|
|
|
|
- }
|
|
|
|
|
- this.options.xAxis[0].data = xAxis0;
|
|
|
|
|
- this.options.series[0].data = series0;
|
|
|
|
|
- this.options.series[1].data = series1;
|
|
|
|
|
- this.options.series[2].data = series2;
|
|
|
|
|
- this.options.series[3].data = series3;
|
|
|
|
|
- this.options.series[4].data = series4;
|
|
|
|
|
|
|
+ let series5 = new Array();
|
|
|
|
|
+ var maxnumber=0;
|
|
|
|
|
+ for (let index = 0; index < dataList.length; index++) {
|
|
|
|
|
+ const element = dataList[index];
|
|
|
|
|
+ xAxis0.push(element.sp_wccode);
|
|
|
|
|
+ //投入
|
|
|
|
|
+ series0.push(element.v_inqty);
|
|
|
|
|
+ if(element.v_inqty>maxnumber){
|
|
|
|
|
+ maxnumber= element.v_inqty;
|
|
|
|
|
+ }
|
|
|
|
|
+ //产出
|
|
|
|
|
+ series1.push(element.v_outqty);
|
|
|
|
|
+ if(element.v_outqty>maxnumber){
|
|
|
|
|
+ maxnumber= element.v_outqty;
|
|
|
|
|
+ }
|
|
|
|
|
+ //不良
|
|
|
|
|
+ series2.push(element.v_ngqty);
|
|
|
|
|
+ //良率
|
|
|
|
|
+ series3.push(element.v_okrate);
|
|
|
|
|
+ //UPH
|
|
|
|
|
+ series4.push(element.uph);
|
|
|
|
|
+ if(element.uph>maxnumber){
|
|
|
|
|
+ maxnumber= element.uph;
|
|
|
|
|
+ }
|
|
|
|
|
+ series5.push(element.v_upph);
|
|
|
|
|
+ }
|
|
|
|
|
+ this.options.xAxis[0].data = xAxis0;
|
|
|
|
|
+ this.options.series[0].data = series0;
|
|
|
|
|
+ this.options.series[1].data = series1;
|
|
|
|
|
+ this.options.series[2].data = series2;
|
|
|
|
|
+ this.options.series[3].data = series3;
|
|
|
|
|
+ this.options.series[4].data = series4;
|
|
|
|
|
+ this.options.series[5].data = series5;
|
|
|
|
|
+ this.options.yAxis[0].max = (maxnumber*1.2).toFixed();
|
|
|
/*let myChart = this.$children[0].chart;
|
|
/*let myChart = this.$children[0].chart;
|
|
|
myChart.setOption({
|
|
myChart.setOption({
|
|
|
xAxis: {
|
|
xAxis: {
|