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)