|
|
|
|
@ -34,18 +34,18 @@
|
|
|
|
|
<el-form ref="form" :model="form" label-width="80px">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="24" style="text-align:center">
|
|
|
|
|
<h2>{{form.column080090}} 年 {{form.column090100}}月 黑蚊香白坯性能不良排列图</h2>
|
|
|
|
|
<h2> {{queryParams.yearMonthDate}} 黑蚊香白坯性能不良排列图</h2>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-descriptions title="" border :column="3" :contentStyle="content_style" :label-style="label_style">
|
|
|
|
|
<el-descriptions-item label="产品名称" class="my-description-item1">{{form.materialName}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="产品名称" class="my-description-item1">白坯</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="抽检批次" class="my-description-item1">{{form.sampleQty}}</el-descriptions-item>
|
|
|
|
|
|
|
|
|
|
<el-descriptions-item label="生产车间" class="my-description-item1">{{form.workCenter}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="生产车间" class="my-description-item1">白坯车间</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="不合格批次" class="my-description-item1">{{form.noOkQty}}</el-descriptions-item>
|
|
|
|
|
|
|
|
|
|
<el-descriptions-item label="批次不合格率" class="my-description-item1">{{form.noOkNumRate}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="批次合格率" class="my-description-item1">{{form.okNumRate}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="批次不合格率" class="my-description-item1">{{form.noOkRate}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="批次合格率" class="my-description-item1">{{form.okRate}}</el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
</el-form>
|
|
|
|
|
<div id="echartss" style="width:1200px;height:450px;"></div>
|
|
|
|
|
@ -59,7 +59,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
</el-tabs>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
@ -246,22 +246,17 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
handleClick(){
|
|
|
|
|
this.$nextTick(()=>{
|
|
|
|
|
this.$refs.tables.doLayout()//对table进行重新布局
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
async getTbody(){
|
|
|
|
|
this.loading=true
|
|
|
|
|
this.$nextTick(()=>{
|
|
|
|
|
this.$refs.tables.doLayout()//对table进行重新布局
|
|
|
|
|
})
|
|
|
|
|
let _this = this
|
|
|
|
|
let _this = this
|
|
|
|
|
getDefectItemLinePC(this.queryParams).then(response => {
|
|
|
|
|
_this.form = response;
|
|
|
|
|
_this.getEcharts(response.supplierCodes,response.columns1,response.columns2)
|
|
|
|
|
_this.getEcharts(response.xData,response.yDataLeft, response.yDataRight)
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
getEcharts(xData,yDataLeft,yDdataRight){
|
|
|
|
|
getEcharts(xData,yDataLeft,yDataRight){
|
|
|
|
|
var _this=this
|
|
|
|
|
var chartDom = document.getElementById('echartss');
|
|
|
|
|
var myChart = echarts.init(chartDom);
|
|
|
|
|
@ -320,12 +315,12 @@ export default {
|
|
|
|
|
name: '累计不良率',
|
|
|
|
|
type: 'line',
|
|
|
|
|
yAxisIndex: 1,
|
|
|
|
|
data: yDdataRight //[15, 25, 33, 38, 40]
|
|
|
|
|
data: yDataRight //[15, 25, 33, 38, 40]
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
option && myChart.setOption(option);
|
|
|
|
|
option && myChart.setOption(option);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 生成表头序号
|
|
|
|
|
@ -339,4 +334,4 @@ export default {
|
|
|
|
|
.my-description-item1 {
|
|
|
|
|
width: 200px; /* 或者你想要的任何宽度 */
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
</style>
|
|
|
|
|
|