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

master
yinq 8 months ago
parent e8fb23b4b8
commit 484a1f46f8

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

Loading…
Cancel
Save