From a67866390a7007cc991ab827efc4a51766e15479 Mon Sep 17 00:00:00 2001 From: "LAPTOP-R6EHHS26\\86155" <2217640373@qq.com> Date: Thu, 28 Mar 2024 13:26:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E5=B7=A5=E8=AE=B0=E5=BD=95=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=8A=A5=E5=B7=A5=E6=8D=9F=E8=80=97=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mes/reportWork/index.vue | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/src/views/mes/reportWork/index.vue b/src/views/mes/reportWork/index.vue index 324c760..2dd3da8 100644 --- a/src/views/mes/reportWork/index.vue +++ b/src/views/mes/reportWork/index.vue @@ -442,7 +442,7 @@
@@ -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() {