From 770f78b1df68a0d95f35bcfdc02640b0de04ae20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Tue, 16 Dec 2025 14:13:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(wms):=20=E4=BF=AE=E6=AD=A3=E6=94=B6?= =?UTF-8?q?=E8=B4=A7=E6=8A=A5=E8=A1=A8=E5=92=8C=E8=AF=A6=E6=83=85=E9=A1=B5?= =?UTF-8?q?=E7=9A=84=E6=96=87=E6=9C=AC=E5=8F=8A=E6=8C=89=E9=92=AE=E7=8A=B6?= =?UTF-8?q?=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将发货报表相关文本修正为收货报表 - 在收货详情页添加删除按钮和加载状态 - 为签收、拒签和删除操作添加加载状态防止重复提交 --- klp-ui/src/views/wms/receive/detail/index.vue | 14 +++++++++++--- klp-ui/src/views/wms/receive/report/index.vue | 6 +++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/klp-ui/src/views/wms/receive/detail/index.vue b/klp-ui/src/views/wms/receive/detail/index.vue index 53c7f374..1f55d886 100644 --- a/klp-ui/src/views/wms/receive/detail/index.vue +++ b/klp-ui/src/views/wms/receive/detail/index.vue @@ -86,9 +86,11 @@ @@ -269,12 +271,15 @@ export default { cancelButtonText: "取消", type: "warning" }).then(() => { + this.buttonLoading = true; updatePendingAction({ ...row, actionStatus: 3, // 3表示拒签 }).then(response => { this.$modal.msgSuccess("拒签成功"); this.getList(); + }).finally(() => { + this.buttonLoading = false; }); }); }, @@ -340,9 +345,12 @@ export default { cancelButtonText: "取消", type: "warning" }).then(() => { + this.buttonLoading = true; delPendingAction(row.actionId).then(response => { this.$modal.msgSuccess("删除成功"); this.getList(); + }).finally(() => { + this.buttonLoading = false; }); }); }, diff --git a/klp-ui/src/views/wms/receive/report/index.vue b/klp-ui/src/views/wms/receive/report/index.vue index 1d99796f..9e570574 100644 --- a/klp-ui/src/views/wms/receive/report/index.vue +++ b/klp-ui/src/views/wms/receive/report/index.vue @@ -20,7 +20,7 @@ @@ -39,7 +39,7 @@ @@ -158,7 +158,7 @@ export default { this.summary = res.data?.summary || null this.details = res.data?.details || [] } catch (error) { - console.error('获取发货报表失败:', error) + console.error('获取收货报表失败:', error) this.$message.error('获取数据失败') this.summary = null this.details = []