From 8015d5db6411d8dbe5915e4224cfe6849e98b282 Mon Sep 17 00:00:00 2001 From: shenzhouyu Date: Wed, 4 Feb 2026 13:32:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=98=B2=E9=87=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/orderIssure/newSoIssueNotify.vue | 6 ++++++ src/views/modules/poOrder/newPoIssueNotify.vue | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/src/views/modules/orderIssure/newSoIssueNotify.vue b/src/views/modules/orderIssure/newSoIssueNotify.vue index b299851..a1db781 100644 --- a/src/views/modules/orderIssure/newSoIssueNotify.vue +++ b/src/views/modules/orderIssure/newSoIssueNotify.vue @@ -1896,6 +1896,12 @@ export default { this.$message.warning('该OrderNo的数据已添加过,请先删除再添加!') return false } + // 防重复提交:如果正在加载中,直接返回,等待上次请求完成 + if (this.seqNoModalLoading) { + console.log("正在加载中,防重复提交"); + + return; + } this.seqNoModalLoading = true getShopOrderAndMaterialByShoporder(this.seqNoData) .then(({ data }) => { diff --git a/src/views/modules/poOrder/newPoIssueNotify.vue b/src/views/modules/poOrder/newPoIssueNotify.vue index c125359..c7c9f31 100644 --- a/src/views/modules/poOrder/newPoIssueNotify.vue +++ b/src/views/modules/poOrder/newPoIssueNotify.vue @@ -1758,6 +1758,11 @@ export default { this.$message.warning('该OrderNo的数据已添加过,请先删除再添加!') return false } + if (this.seqNoModalLoading) { + console.log("正在加载中,防重复提交"); + + return; + } this.seqNoModalLoading = true let params = { site: this.$store.state.user.site,