From 620ebac09ed7c5397ab9eb49f2c6dfb07acf9f73 Mon Sep 17 00:00:00 2001 From: qiezi <15576055375@163.com> Date: Tue, 17 Dec 2024 15:49:20 +0800 Subject: [PATCH] 20241217 --- .../modules/quote/detail/primary/quoteDetailBom.vue | 11 +++++++++-- src/views/modules/quote/detail/quoteDetail.vue | 9 +++------ src/views/modules/quote/detail/tpCost.vue | 11 ++++++++++- src/views/modules/quote/quoteDetailReport.vue | 9 +++------ 4 files changed, 25 insertions(+), 15 deletions(-) diff --git a/src/views/modules/quote/detail/primary/quoteDetailBom.vue b/src/views/modules/quote/detail/primary/quoteDetailBom.vue index 4071caf..916a2f3 100644 --- a/src/views/modules/quote/detail/primary/quoteDetailBom.vue +++ b/src/views/modules/quote/detail/primary/quoteDetailBom.vue @@ -294,6 +294,7 @@ export default { }, quoteDetailBom:{}, quoteDetailBomVisible:false, + preValue:undefined, } }, methods: { @@ -486,10 +487,16 @@ export default { this.quoteDetailBom = { ...row, } + this.preValue = row.attritionRate; this.quoteDetailBomVisible = true; } }, - + handleBlur(row){ + if (row.attritionRate === this.preValue) { + this.quoteDetailBomVisible = false; + this.preValue = undefined + } + } }, created() { if (this.quoteDetail && this.quoteDetail.id) { @@ -550,7 +557,7 @@ export default { {{ scope.row[item.columnProp] }}