|
|
|
@ -61,19 +61,8 @@
|
|
|
|
|
@click="handleUpdate"
|
|
|
|
|
v-hasPermi="['mes:reportWork:edit']"
|
|
|
|
|
>修改</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
|
type="danger"
|
|
|
|
|
plain
|
|
|
|
|
icon="el-icon-delete"
|
|
|
|
|
size="mini"
|
|
|
|
|
:disabled="multiple"
|
|
|
|
|
@click="handleDelete"
|
|
|
|
|
v-hasPermi="['mes:reportWork:remove']"
|
|
|
|
|
>删除</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
-->
|
|
|
|
|
</el-col>-->
|
|
|
|
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single"
|
|
|
|
|
@click="handleReportHz" v-hasPermi="['mes:reportWork:report']">报工信息维护</el-button>
|
|
|
|
@ -103,6 +92,18 @@
|
|
|
|
|
@click="showPrint">打印预览
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
|
type="danger"
|
|
|
|
|
plain
|
|
|
|
|
icon="el-icon-s-flag"
|
|
|
|
|
size="mini"
|
|
|
|
|
:disabled="single"
|
|
|
|
|
@click="handleW3"
|
|
|
|
|
v-hasPermi="['mes:reportWork:report']"
|
|
|
|
|
>最终报工</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-table v-loading="loading" :ref="tableIndex" :data="reportWorkList"
|
|
|
|
@ -691,7 +692,8 @@ import {
|
|
|
|
|
submitReportPS,
|
|
|
|
|
submitReportPSSAP,
|
|
|
|
|
getCKList,
|
|
|
|
|
getPutInOrderList,preReportRow
|
|
|
|
|
getPutInOrderList,preReportRow,
|
|
|
|
|
updateReportWorkW3
|
|
|
|
|
} from "@/api/mes/reportWork";
|
|
|
|
|
import {
|
|
|
|
|
getConsumeList,
|
|
|
|
@ -1180,22 +1182,16 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
|
handleDelete(row) {
|
|
|
|
|
let sr = this.selectRow[0];
|
|
|
|
|
if (sr.uploadStatus == "1") {
|
|
|
|
|
this.$modal.msgError(`上传sap成功,不允许删除`);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const ids = row.id || this.ids;
|
|
|
|
|
handleW3(row) {
|
|
|
|
|
const workorderCode = this.selectRow[0].workorderCode;
|
|
|
|
|
this.$modal
|
|
|
|
|
.confirm('是否确认删除报工报表编号为"' + ids + '"的数据项?')
|
|
|
|
|
.confirm('是否确认工单号为"' + workorderCode + '"的数据项已最终报工?')
|
|
|
|
|
.then(function () {
|
|
|
|
|
return delReportWork(ids);
|
|
|
|
|
return updateReportWorkW3(workorderCode);
|
|
|
|
|
})
|
|
|
|
|
.then(() => {
|
|
|
|
|
this.getList();
|
|
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {});
|
|
|
|
|
},
|
|
|
|
|