update - 返修率、焊漏率

master
yinq 2 months ago
parent 582cf826b1
commit 68f15adb50

@ -240,8 +240,8 @@ export default {
repairRateReportList({
...this.queryParams,
STATION_CODE: [2001,2006,2007],
stationCodeList: '2001,2006,2007',
STATION_CODE: this.queryParams.PRODUCT_LINE_CODE === 'CX_02' ? [2001,2006,2007] : [2101,2106,2107],
stationCodeList: this.queryParams.PRODUCT_LINE_CODE === 'CX_02' ? '2001,2006,2007' : '2101,2106,2107' ,
}).then(response => {
let e = response.data
this.$refs.chart11.setData({
@ -330,8 +330,8 @@ export default {
repairRateReportList({
...this.queryParams,
STATION_CODE: [2002,2003],
stationCodeList: '2002,2003',
STATION_CODE: this.queryParams.PRODUCT_LINE_CODE === 'CX_02' ? [2002,2003] : [2102,2103],
stationCodeList: this.queryParams.PRODUCT_LINE_CODE === 'CX_02' ? '2002,2003' : '2102,2103',
}).then(response => {
let e = response.data
this.$refs.chart12.setData({
@ -420,8 +420,8 @@ export default {
repairRateReportList({
...this.queryParams,
STATION_CODE: [2005],
stationCodeList: '2005',
STATION_CODE: this.queryParams.PRODUCT_LINE_CODE === 'CX_02' ? [2005] : [2105],
stationCodeList: this.queryParams.PRODUCT_LINE_CODE === 'CX_02' ? '2005' : '2105',
}).then(response => {
let e = response.data
this.$refs.chart13.setData({
@ -510,8 +510,8 @@ export default {
repairRateReportList({
...this.queryParams,
STATION_CODE: [2008,2009,2010,2011],
stationCodeList: '2008,2009,2010,2011',
STATION_CODE: this.queryParams.PRODUCT_LINE_CODE === 'CX_02' ? [2008,2009,2010,2011] : [2108,2109,2110,2111] ,
stationCodeList: this.queryParams.PRODUCT_LINE_CODE === 'CX_02' ? '2008,2009,2010,2011' : '2108,2109,2110,2111',
}).then(response => {
let e = response.data
this.$refs.chart14.setData({
@ -785,6 +785,9 @@ export default {
/** 搜索按钮操作 */
handleQuery() {
// this.queryParams.pageNum = 1;
if (this.queryParams.STATION_CODE.length === 0){
this.getChart()
}
this.getList()
},
/** 重置按钮操作 */

@ -1,6 +1,16 @@
<template>
<div class="app-container">
<el-form :inline="true" :model="form" ref="form">
<el-form-item label="产线" prop="PRODUCT_LINE_CODE">
<el-select v-model="form.PRODUCT_LINE_CODE" placeholder="请选择产线">
<el-option
v-for="item in productLineList"
:key="item.productLineCode"
:label="item.productLineName"
:value="item.productLineCode"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="年份" prop="year">
<el-date-picker
v-model="form.year"
@ -92,7 +102,10 @@ export default {
pageNum: 1,
pageSize: 10,
month:"0",
PRODUCT_LINE_CODE:"CX_02",
},
// 线
productLineList: [],
option: [
{
value: '11',
@ -114,6 +127,9 @@ export default {
mounted() {
},
created() {
findProductLineList({productLineType: 1}).then(response => {
this.productLineList = response.data
})
this.getList();
},
methods: {
@ -122,7 +138,7 @@ export default {
if (this.form.year != null){
this.form.year = this.form.year.getFullYear().toString();
}
weldLeakRateList({year: this.form.year,month:this.form.month},
weldLeakRateList({year: this.form.year,month:this.form.month, PRODUCT_LINE_CODE:this.form.PRODUCT_LINE_CODE},
).then(response => {
this.form.year = new Date(this.form.year)
this.total = response?.total || 0

Loading…
Cancel
Save