【附加两全】去掉再次调用试算方法againGetTrial

This commit is contained in:
liyuetong
2021-10-28 11:01:06 +08:00
parent 6700c76521
commit 4080881ad4

View File

@@ -1798,60 +1798,12 @@ export default {
//设置豁免险保额
this.setRemitRisk()
this.nextStepFlag = false
//针对八桂D产品 计算被保人重疾B附加险保额 ==其他附加险的保额 重新试算后面添加的其他附加险
// if ( this.chooseProducts[0].mainRiskCode == 'GFRS_M0051'||this.chooseProducts[0].mainRiskCode == 'GFRS_M0044') {
// let tParams = this.getParams()
// // 开门红产品试算增加标识
// if (this.activeType == 'KMH' && this.isFrom != 'proposal') {
// for (let product of tParams.trialInfos) {
// product.isKmh = '1'
// }
// }
// let tResult = await trial(tParams)
// if (tResult.result == 0) {
// if (tResult.flag === '1') {
// this.richChildrenFlag = true
// }
// this.trialList = tResult.trialList
// localStorage.trialList = JSON.stringify(tResult.trialList)
// //设置豁免险保额
// this.setRemitRisk()
// this.nextStepFlag = false
// }
// if(this.chooseProducts.length==2&&this.chooseProducts[1].productCode=='GFRS_A0010'){
// this.$toast('当前未投保其他长险附加险,请删除该险种重新选择附加险!')
// this.nextStepFlag = true
// }
// }
// this.againGetTrial()
} else {
this.nextStepFlag = true
this.$toast(resultData.resultMessage)
}
localStorage.chooseProducts = JSON.stringify(this.chooseProducts)
},
//重新再调一次试算因保额为文本框没有change事件所以保额变化后少一次调用试算所以特此手动重新调用一次
async againGetTrial() {
// ---------国富人寿附加两全保险条款---
let getProductCodeIndex = this.getProductCodeIndex('GFRS_A0007')
if (getProductCodeIndex !='') { //是否有两全
let params = this.getParams()
let resultData01 = await trial(params)
if (resultData01.result == 0) {
if (resultData01.flag === '1') {
this.richChildrenFlag = true
}
this.trialList = resultData01.trialList
localStorage.trialList = JSON.stringify(resultData01.trialList)
//设置豁免险保额
this.setRemitRisk()
this.nextStepFlag = false
} else {
this.nextStepFlag = true
this.$toast(resultData01.resultMessage)
}
}
},
//获取试算参数
getParams() {
let params = {