From 53c87d0b6ae4a8c6181796e190cab7870b2093f2 Mon Sep 17 00:00:00 2001 From: jiayang yue Date: Fri, 21 Mar 2025 06:16:02 +0800 Subject: [PATCH] =?UTF-8?q?2025.03.20=20=E5=BE=85=E6=8A=A5=E4=BB=B7?= =?UTF-8?q?=E6=B8=85=E5=8D=95=20-=20=E8=BD=AC=E6=8A=A5=E4=BB=B7=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/quote/quotes.vue | 59 ++++++++++++++++++------------ 1 file changed, 35 insertions(+), 24 deletions(-) diff --git a/src/views/modules/quote/quotes.vue b/src/views/modules/quote/quotes.vue index d1b7fb1..dcc979d 100644 --- a/src/views/modules/quote/quotes.vue +++ b/src/views/modules/quote/quotes.vue @@ -663,31 +663,42 @@ export default { this.handleQuery(); }, handleQuote(row){ - let params = { - inquiryPartDataList: this.inquiryPartDataList, - createBy: this.$store.state.user.name, - rfqId: row.id, - ...row - } - this.quoteLoading = true - batchSaveQuote(params).then(({data})=>{ - this.quoteLoading = false - if (data && data.code === 0){ - this.$message.success(data.msg); - this.handleQuery(); - this.$router.push({ - name:'quote-index', - params:{ - ids:data.rows - } - }) - }else { - this.$message.warning(data.msg); + this.$alert('是否确认报价?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + let params = { + inquiryPartDataList: this.inquiryPartDataList, + createBy: this.$store.state.user.name, + rfqId: row.id, + ...row } - }).catch((error)=>{ - this.quoteLoading = false - this.$message.error(error); - }) + this.quoteLoading = true + batchSaveQuote(params).then(({data})=>{ + this.quoteLoading = false + if (data && data.code === 0){ + this.$message.success(data.msg); + this.handleQuery(); + this.$router.push({ + name:'quote-index', + params:{ + ids:data.rows + } + }) + }else { + this.$message.warning(data.msg); + } + }).catch((error)=>{ + this.quoteLoading = false + this.$message.error(error); + }) + }).catch(() => { + this.$message({ + type: 'info', + message: '已取消报价' + }); + }); }, handleDblClick(row){ this.$emit('dblclick',row)