update - 门体、箱体发泡注料记录报表

master
yinq 11 months ago
parent e8fb23b4b8
commit 484a1f46f8

@ -155,6 +155,8 @@ export default {
title: '',
//
open: false,
// 1- 2-
type: null,
//
queryParams: {
pageNum: 1,
@ -234,13 +236,16 @@ export default {
findProductLineList({ productLineType: 1 }).then(response => {
this.productLineList = response.data
})
this.type = this.$route.query.type;
const nowDate = parseTime(new Date(), '{y}-{m}-{d}')
this.daterangeBeginTime[0] = nowDate + ' 00:00:00'
this.daterangeBeginTime[1] = nowDate + ' 23:59:59'
this.getList()
},
methods: {
/** 查询箱体发泡注料记录报表列表 */
/** 查询门体、箱体发泡注料记录报表列表 */
getList() {
if (null != this.daterangeBeginTime && '' != this.daterangeBeginTime) {
this.queryParams.beginBeginTime = this.daterangeBeginTime[0]
@ -249,6 +254,19 @@ export default {
this.queryParams.beginBeginTime = null
this.queryParams.endBeginTime = null
}
// 2
if (this.type === '2'){
this.queryParams.stationNumber = '1020'
}
// 1
if (this.type === '1' && this.queryParams.productLineCode === 'CX_02'){
this.queryParams.stationNumber = '1005'
}
// 1
if (this.type === '1' && this.queryParams.productLineCode === 'CX_01'){
this.queryParams.stationNumber = '1105'
}
this.loading = true
listLastShotRecord(this.queryParams).then(response => {
this.lastShotRecordList = response.rows

Loading…
Cancel
Save