mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-23 23:42:52 +08:00
【附加两全】去掉再次调用试算方法againGetTrial
This commit is contained in:
@@ -1798,60 +1798,12 @@ export default {
|
|||||||
//设置豁免险保额
|
//设置豁免险保额
|
||||||
this.setRemitRisk()
|
this.setRemitRisk()
|
||||||
this.nextStepFlag = false
|
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 {
|
} else {
|
||||||
this.nextStepFlag = true
|
this.nextStepFlag = true
|
||||||
this.$toast(resultData.resultMessage)
|
this.$toast(resultData.resultMessage)
|
||||||
}
|
}
|
||||||
localStorage.chooseProducts = JSON.stringify(this.chooseProducts)
|
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() {
|
getParams() {
|
||||||
let params = {
|
let params = {
|
||||||
|
|||||||
Reference in New Issue
Block a user