From 6ee9654f66fe64c978c65583b11dc748937af68a Mon Sep 17 00:00:00 2001 From: "han\\hanst" Date: Thu, 15 Jan 2026 11:30:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=8C=E9=98=B2=E6=AD=A2?= =?UTF-8?q?=E9=87=8D=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../quote/detail/primary/quoteDetailBom.vue | 12 +++++++++++- src/views/modules/quote/detail/quoteDetail.vue | 16 ++++++++-------- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/src/views/modules/quote/detail/primary/quoteDetailBom.vue b/src/views/modules/quote/detail/primary/quoteDetailBom.vue index 615c2d2..888782f 100644 --- a/src/views/modules/quote/detail/primary/quoteDetailBom.vue +++ b/src/views/modules/quote/detail/primary/quoteDetailBom.vue @@ -403,12 +403,22 @@ export default { }) }, handleChangeVersion(row) { + // 防止重复提交 + if (this.changeLoading) { + return; + } + this.$confirm('确认切换BOM版本吗,切换后将重新覆盖工具信息,请确认!','提示',{ type: 'warning', confirmButtonText: '确定', cancelButtonText: '取消', }) .then(()=>{ + // 再次检查,防止在确认弹窗期间其他操作触发 + if (this.changeLoading) { + return; + } + let node = this.$refs.tree.getCurrentNode(); let params = { partNo: row.partNo, @@ -597,7 +607,7 @@ export default { min-width="100"/> diff --git a/src/views/modules/quote/detail/quoteDetail.vue b/src/views/modules/quote/detail/quoteDetail.vue index 8163866..8c76a59 100644 --- a/src/views/modules/quote/detail/quoteDetail.vue +++ b/src/views/modules/quote/detail/quoteDetail.vue @@ -1255,7 +1255,7 @@ export default { - + @@ -1316,25 +1316,25 @@ export default { - + - + - + - + - + - + - +