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 { - + - + - + - + - + - + - +