From e71685cc3c02b9530a634ce162a8acef9aa4c85c Mon Sep 17 00:00:00 2001 From: yinq Date: Mon, 18 Mar 2024 19:09:27 +0800 Subject: [PATCH] =?UTF-8?q?update=20-=20=E4=BA=A7=E5=93=81=E8=BF=BD?= =?UTF-8?q?=E6=BA=AF=E5=AF=BC=E5=87=BA=E3=80=81=E7=94=9F=E4=BA=A7=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E6=8A=A5=E8=A1=A8=E8=81=94=E5=8A=A8=E4=B8=8B=E6=8B=89?= =?UTF-8?q?=E6=A1=86=E6=A3=80=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productTraceabilityReport/index.vue | 24 +++--- .../productionExecutionReport/index.vue | 32 ++++++-- .../report/qualityIssuesReport/index.vue | 74 +++++++++---------- src/views/report/qualityMaterial/index.vue | 2 +- 4 files changed, 73 insertions(+), 59 deletions(-) diff --git a/src/views/report/productTraceabilityReport/index.vue b/src/views/report/productTraceabilityReport/index.vue index beab3c4..0eb9937 100644 --- a/src/views/report/productTraceabilityReport/index.vue +++ b/src/views/report/productTraceabilityReport/index.vue @@ -69,16 +69,16 @@ - - - - - - - - - - + + 导出 + + @@ -320,9 +320,9 @@ export default { /** 导出按钮操作 */ handleExport() { - this.download('/report/productionReport/export', { + this.download('/report/qualityReport/productTraceabilityReportList/export', { ...this.queryParams - }, `report_${new Date().getTime()}.xlsx`) + }, `产品追溯报表_${new Date().getTime()}.xlsx`) } } diff --git a/src/views/report/productionExecutionReport/index.vue b/src/views/report/productionExecutionReport/index.vue index 74d6bb0..9599849 100644 --- a/src/views/report/productionExecutionReport/index.vue +++ b/src/views/report/productionExecutionReport/index.vue @@ -36,6 +36,14 @@ /> + + + item.stationType == newType); + // 重置选择的工位 + // this.selectedStation = ''; + }, }, created() { findProductLineList({ productLineType: 1 }).then(response => { @@ -196,7 +214,8 @@ export default { }).then(() => { return findProductLineList({ productLineType: 2, parentId: this.queryParams.productLineCode }) }).then(response => { - this.findStationList = response.data + this.stationList = response.data + this.findStationList = this.stationList.filter(item => item.stationType == this.selectedType); }) const nowDate = parseTime(new Date(), '{y}-{m}-{d}') this.daterangeBeginTime[0] = nowDate + ' 00:00:00' @@ -265,7 +284,8 @@ export default { this.queryParams.stationCode = null findProductLineList({ productLineType: 2, parentId: this.queryParams.productLineCode }) .then(response => { - this.findStationList = response.data + this.stationList = response.data + this.findStationList = []; }) }, diff --git a/src/views/report/qualityIssuesReport/index.vue b/src/views/report/qualityIssuesReport/index.vue index 1f5d2db..daf19b8 100644 --- a/src/views/report/qualityIssuesReport/index.vue +++ b/src/views/report/qualityIssuesReport/index.vue @@ -1,13 +1,13 @@