Browse Source

2025.03.20 待报价清单 - 转报价优化

java8
jiayang yue 10 months ago
parent
commit
53c87d0b6a
  1. 59
      src/views/modules/quote/quotes.vue

59
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)

Loading…
Cancel
Save