From 41e0fb12339447a2206c81d95db7c283fefd6261 Mon Sep 17 00:00:00 2001 From: zhaoxiaolin Date: Mon, 13 Jan 2025 10:19:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A8=E9=87=8Fbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mes/reportWork/index.vue | 7 ++++++- src/views/quality/produceReport/index.vue | 18 ++++++++++++++++-- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/src/views/mes/reportWork/index.vue b/src/views/mes/reportWork/index.vue index 6d676e3..791f988 100644 --- a/src/views/mes/reportWork/index.vue +++ b/src/views/mes/reportWork/index.vue @@ -136,6 +136,11 @@ + + + item.recordId) this.single = selection.length!==1 this.multiple = !selection.length @@ -1087,19 +1089,31 @@ export default { }, /** 导出报告按钮操作 */ handleSCReportExport() { + if(this.excelFlag!='首件检验'){ + this.$modal.msgSuccess("请选择首件检验任务"); + return + } const recordId =this.ids[0]; this.queryParams.recordId = recordId; this.download('quality/qcProduceReport/SCReportExport', { ...this.queryParams - }, `SCReportExport_${new Date().getTime()}.xlsx`) + }, `SCReportExport_${new Date().getTime()}.xlsx`); + this.queryParams.recordId = ''; + }, /** 导出报告按钮操作 */ handleSCXJReportExport() { + if(this.excelFlag!='巡检检验'){ + this.$modal.msgSuccess("请选择巡检任务"); + return + } this.queryParams.orderNo = this.selectRow[0].orderNo; this.queryParams.shiftId = this.selectRow[0].shiftId; this.download('quality/qcProduceReport/SCXJReportExport', { ...this.queryParams - }, `SCXJReportExport_${new Date().getTime()}.xlsx`) + }, `SCXJReportExport_${new Date().getTime()}.xlsx`); + this.queryParams.orderNo = ''; + this.queryParams.shiftId = ''; }, /**获取检验项目列表 */ getCheckedProjectList(){