From d64f0a3320a24a46e96ec3c3407db69fb9157830 Mon Sep 17 00:00:00 2001 From: qiezi <15576055375@163.com> Date: Fri, 7 Mar 2025 15:15:02 +0800 Subject: [PATCH] 2025-03-07 --- .../modules/quote/detail/primary/quoteDetailBom.vue | 10 +++++++--- .../quote/detail/primary/quoteDetailRouting.vue | 8 ++++++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/views/modules/quote/detail/primary/quoteDetailBom.vue b/src/views/modules/quote/detail/primary/quoteDetailBom.vue index 691e6b4..9f41abe 100644 --- a/src/views/modules/quote/detail/primary/quoteDetailBom.vue +++ b/src/views/modules/quote/detail/primary/quoteDetailBom.vue @@ -254,7 +254,8 @@ export default { buNo: '', site: '', engChgLevel: null, - } + }, + changeLoading:false } }, methods: { @@ -397,7 +398,9 @@ export default { params.buNo = node.buNo params.site = node.site } + this.changeLoading = true changeQuoteDetailBomTree(params).then(({data}) => { + this.changeLoading = false; if (data && data.code === 0) { this.$message.success(data.msg); this.versionVisible = false; @@ -406,6 +409,7 @@ export default { this.$message.warning(data.msg); } }).catch((error) => { + this.changeLoading = false; this.$message.error(error); }) }).catch((error) => {}) @@ -494,7 +498,7 @@ export default { - @@ -505,7 +509,7 @@ export default { - diff --git a/src/views/modules/quote/detail/primary/quoteDetailRouting.vue b/src/views/modules/quote/detail/primary/quoteDetailRouting.vue index 0d0beb7..75287f5 100644 --- a/src/views/modules/quote/detail/primary/quoteDetailRouting.vue +++ b/src/views/modules/quote/detail/primary/quoteDetailRouting.vue @@ -499,6 +499,7 @@ export default { { required: true, message: '请输入人工成本-生产', trigger: ['blur','change'] }, ], }, + changeLoading:false, } }, @@ -644,7 +645,9 @@ export default { treeId: this.$refs.tree.getCurrentNode().id, createBy: this.$store.state.user.name, } + this.changeLoading = true; changeQuoteDetailRoutingChange(params).then(({data})=>{ + this.changeLoading = false; if (data && data.code === 0){ this.$message.success(data.msg); this.versionVisible = false; @@ -653,6 +656,7 @@ export default { this.$message.warning(data.msg); } }).catch((error)=>{ + this.changeLoading = false; this.$message.error(error) }) }, @@ -779,14 +783,14 @@ export default { - + - +