电投流程调用销售权限接口,其他的渠道不调

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2024-04-01 13:41:42 +08:00
parent e949d990b9
commit c3f62c0f0f

View File

@@ -330,24 +330,31 @@ export default {
this.$toast('请选择产品')
return
}
let params = {
productCode: this.result.riskProductCode,
orderNo: this.$route.query.orderNo
}
riskLevelCheck(params).then(res => {
if(res.result == 0) {
if(res.saLevelMatch == "Y"){
//置空产品
localStorage.chooseProducts = ''
//添加主险
this.addMainRisk()
if(localStorage.getItem('isFrom') == 'sale') {
let params = {
productCode: this.result.riskProductCode,
orderNo: this.$route.query.orderNo
}
riskLevelCheck(params).then(res => {
if(res.result == 0) {
if(res.saLevelMatch == "Y"){
//置空产品
localStorage.chooseProducts = ''
//添加主险
this.addMainRisk()
} else {
this.$toast(res.resultMessage)
}
} else {
this.$toast(res.resultMessage)
}
} else {
this.$toast(res.resultMessage)
}
})
})
} else {
//置空产品
localStorage.chooseProducts = ''
//添加主险
this.addMainRisk()
}
},
//储存主险
async addMainRisk() {