报工记录页面报工损耗功能优化

yangwl
LAPTOP-R6EHHS26\86155 8 months ago
parent 5445e6f098
commit a67866390a

@ -442,7 +442,7 @@
</el-table-column>
</el-table>
<div class="button-container">
<el-button size="mini" type="primary"
<el-button :disabled="loading" size="mini" type="primary"
@click="addConsumeTableRow(item.libList, index)">新增物料</el-button>
</div>
</el-tab-pane>
@ -919,6 +919,7 @@ export default {
this.openReport = false;
this.openReportSAP = false;
this.openConsume = false;
this.loading = false;
this.reset();
},
getSummaries(param) {
@ -1244,7 +1245,7 @@ export default {
},
//
SAPpReportSelection(selection) {
this.pReportRows = selection
this.pReportRows = selection;
},
submitReport() {
this.reportRows = this.pReportRows;
@ -1379,13 +1380,19 @@ export default {
return false;
}
submitConsumePS(this.consumeRows).then(response => {
this.$modal.msgSuccess("报工信息修改成功");
this.openConsume = false;
this.reset();
this.getList();
this.loading = false;
});
submitConsumePS(this.consumeRows)
.then((response) => {
this.$modal.msgSuccess("报工信息修改成功");
this.openConsume = false;
this.reset();
this.getList();
this.loading = false;
})
.catch((error) => {
//
this.$modal.msgError(`报工信息修改失败`);
this.loading = false; // loading
});
},
/** 导出按钮操作 */
handleExport() {

Loading…
Cancel
Save