update -发泡箱体追溯优化

master
yinq 7 months ago
parent 8f64e07752
commit 66c6390ffb

@ -21,14 +21,14 @@
></el-option>
</el-select>
</el-form-item>
<el-form-item label="月/周" >
<el-form-item label="日期范围" >
<el-select v-model="queryParams.month" clearable placeholder="请选择">
<el-option label="日" value="1"></el-option>
<el-option label="周" value="2"></el-option>
<el-option label="月" value="3"></el-option>
</el-select>
</el-form-item>
<el-form-item label="起止日期">
<el-form-item label="起止日期" v-if="yearShowFlag">
<el-date-picker
v-model="daterangeBeginTime"
style="width: 240px"
@ -39,6 +39,13 @@
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item label="年份" prop="year" v-if="!yearShowFlag">
<el-date-picker
v-model="form.year"
type="year"
placeholder="选择年">
</el-date-picker>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
@ -129,6 +136,8 @@ export default {
isChart: true,
//
loading: false,
//
yearShowFlag: true,
//
ids: [],
//
@ -164,7 +173,8 @@ export default {
MATERIAL_CODE: null,
MATERIAL_NAME: null,
BEGIN_DATE: null,
month:"1"
month: "1",
year: null,
},
//
form: {},
@ -183,6 +193,16 @@ export default {
findStationList: []
}
},
watch: {
'queryParams.month': function(newVal, oldVal) {
//
if (newVal > 1){
this.yearShowFlag = false;
}else {
this.yearShowFlag = true;
}
},
},
created() {
findProductLineList({productLineType: 1}).then(response => {
this.productLineList = response.data
@ -200,14 +220,6 @@ export default {
this.getChart()
},
watch: {
'queryParams.PRODUCT_LINE_CODE': function (newVal, oldVal) {
//
findProductLineList({parentId: this.queryParams.PRODUCT_LINE_CODE, stationType: 2}).then(response => {
this.findStationList = response.data
})
},
},
methods: {
getChart() {

@ -88,7 +88,7 @@ export default {
week111:false,
total: 0,
form: {
year: new Date().getFullYear().toString(),
year: new Date(),
pageNum: 1,
pageSize: 10,
month:"0",
@ -118,6 +118,10 @@ export default {
},
methods: {
getList() {
console.log(this.form)
if (this.form.year != null){
this.form.year = this.form.year.getFullYear().toString();
}
weldLeakRateList({year: this.form.year,month:this.form.month},
).then(response => {
this.total = response?.total || 0

Loading…
Cancel
Save