From 484a1f46f886ef4e571204bef5f63fec96ae88b2 Mon Sep 17 00:00:00 2001 From: yinq Date: Fri, 12 Jan 2024 15:15:05 +0800 Subject: [PATCH] =?UTF-8?q?update=20-=20=E9=97=A8=E4=BD=93=E3=80=81?= =?UTF-8?q?=E7=AE=B1=E4=BD=93=E5=8F=91=E6=B3=A1=E6=B3=A8=E6=96=99=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E6=8A=A5=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/report/lastShotRecord/index.vue | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) 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