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(){