update - 返修率、焊漏率

master
yinq 4 months ago
parent 582cf826b1
commit 68f15adb50

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

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

Loading…
Cancel
Save