diff --git a/src/views/report/lastShotRecord/index.vue b/src/views/report/lastShotRecord/index.vue index 468f130..0f820c9 100644 --- a/src/views/report/lastShotRecord/index.vue +++ b/src/views/report/lastShotRecord/index.vue @@ -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