From bd0c05259074fa47c4f340139a1fc97fcfc7f3a3 Mon Sep 17 00:00:00 2001 From: yinq Date: Fri, 18 Jul 2025 16:16:16 +0800 Subject: [PATCH] =?UTF-8?q?update=20-=20=E8=B4=A8=E9=87=8F=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E5=89=8D80=E6=8A=A5=E8=A1=A8=E5=8A=A0=E5=B7=A5?= =?UTF-8?q?=E4=BD=8D=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../report/qualityIssuesReport/index.vue | 39 ++++++++++++------- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/src/views/report/qualityIssuesReport/index.vue b/src/views/report/qualityIssuesReport/index.vue index bbc7efe..77238ba 100644 --- a/src/views/report/qualityIssuesReport/index.vue +++ b/src/views/report/qualityIssuesReport/index.vue @@ -19,6 +19,16 @@ + + + + + - - - - - - - - - - + { + findProductLineList({productLineType: 1}).then(response => { this.productLineList = response.data - }) - findProductLineList({ productLineType: 2 }).then(response => { - this.findStationList = response.data + findProductLineList({parentId: this.queryParams.PRODUCT_LINE_CODE, stationType: 2}).then(response => { + this.findStationList = response.data + }) }) //获取自定义数据 getCustomData(386).then(response => { @@ -204,6 +205,14 @@ export default { this.daterangeBeginTime[1] = nowDate + ' 23:59:59' this.getList() }, + watch: { + 'queryParams.PRODUCT_LINE_CODE': function(newVal, oldVal) { + // 执行方法,可以在这里调用你的方法 + findProductLineList({parentId: this.queryParams.PRODUCT_LINE_CODE, stationType: 2}).then(response => { + this.findStationList = response.data + }) + }, + }, methods: { /** 查询工单信息列表 */ getList() { @@ -217,7 +226,7 @@ export default { } qualityIssuesReportList(this.queryParams).then(response => { this.reportList = response.data - this.totalSum = 0; + this.totalSum = 0 this.reportList.forEach(e => { this.totalSum += e.Q_SUM })