|
|
|
@ -852,6 +852,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
spanArr: [],
|
|
|
|
|
position: 0,
|
|
|
|
|
excelFlag:''
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
@ -991,6 +992,7 @@ export default {
|
|
|
|
|
// 多选框选中数据
|
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
|
this.selectRow = selection
|
|
|
|
|
this.excelFlag = selection[0].checkName
|
|
|
|
|
this.ids = selection.map(item => 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(){
|
|
|
|
|