质量bug

master
zhaoxiaolin 6 months ago
parent d6f45a63f6
commit 41e0fb1233

@ -136,6 +136,11 @@
<el-table-column label="SAP报工时间" align="center" prop="uploadTime" width="150" /> <el-table-column label="SAP报工时间" align="center" prop="uploadTime" width="150" />
<el-table-column label="SAP报工信息" align="center" prop="uploadMsg" width="150" <el-table-column label="SAP报工信息" align="center" prop="uploadMsg" width="150"
:show-overflow-tooltip="true" /> :show-overflow-tooltip="true" />
<el-table-column label="工单状态" align="center" prop="status" width="90">
<template slot-scope="scope">
<dict-tag :options="dict.type.workorder_type" :value="scope.row.status"/>
</template>
</el-table-column>
</el-table> </el-table>
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
@ -704,7 +709,7 @@ import moment from "moment";
import { getlistCK } from "@/api/wms/outorder"; import { getlistCK } from "@/api/wms/outorder";
export default { export default {
name: "ReportWork", name: "ReportWork",
dicts: ["report_type", "report_sap_status"], dicts: ["report_type", "report_sap_status", 'workorder_type'],
components: { components: {
ReportWorkConsume, ReportWorkConsume,
ItemSelectUser, ItemSelectUser,

@ -852,6 +852,7 @@ export default {
}, },
spanArr: [], spanArr: [],
position: 0, position: 0,
excelFlag:''
}; };
}, },
created() { created() {
@ -991,6 +992,7 @@ export default {
// //
handleSelectionChange(selection) { handleSelectionChange(selection) {
this.selectRow = selection this.selectRow = selection
this.excelFlag = selection[0].checkName
this.ids = selection.map(item => item.recordId) this.ids = selection.map(item => item.recordId)
this.single = selection.length!==1 this.single = selection.length!==1
this.multiple = !selection.length this.multiple = !selection.length
@ -1087,19 +1089,31 @@ export default {
}, },
/** 导出报告按钮操作 */ /** 导出报告按钮操作 */
handleSCReportExport() { handleSCReportExport() {
if(this.excelFlag!='首件检验'){
this.$modal.msgSuccess("请选择首件检验任务");
return
}
const recordId =this.ids[0]; const recordId =this.ids[0];
this.queryParams.recordId = recordId; this.queryParams.recordId = recordId;
this.download('quality/qcProduceReport/SCReportExport', { this.download('quality/qcProduceReport/SCReportExport', {
...this.queryParams ...this.queryParams
}, `SCReportExport_${new Date().getTime()}.xlsx`) }, `SCReportExport_${new Date().getTime()}.xlsx`);
this.queryParams.recordId = '';
}, },
/** 导出报告按钮操作 */ /** 导出报告按钮操作 */
handleSCXJReportExport() { handleSCXJReportExport() {
if(this.excelFlag!='巡检检验'){
this.$modal.msgSuccess("请选择巡检任务");
return
}
this.queryParams.orderNo = this.selectRow[0].orderNo; this.queryParams.orderNo = this.selectRow[0].orderNo;
this.queryParams.shiftId = this.selectRow[0].shiftId; this.queryParams.shiftId = this.selectRow[0].shiftId;
this.download('quality/qcProduceReport/SCXJReportExport', { this.download('quality/qcProduceReport/SCXJReportExport', {
...this.queryParams ...this.queryParams
}, `SCXJReportExport_${new Date().getTime()}.xlsx`) }, `SCXJReportExport_${new Date().getTime()}.xlsx`);
this.queryParams.orderNo = '';
this.queryParams.shiftId = '';
}, },
/**获取检验项目列表 */ /**获取检验项目列表 */
getCheckedProjectList(){ getCheckedProjectList(){

Loading…
Cancel
Save