From 4080881ad4f62a1d94b2fb7ccee49cae613040ac Mon Sep 17 00:00:00 2001 From: liyuetong Date: Thu, 28 Oct 2021 11:01:06 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E9=99=84=E5=8A=A0=E4=B8=A4=E5=85=A8?= =?UTF-8?q?=E3=80=91=E5=8E=BB=E6=8E=89=E5=86=8D=E6=AC=A1=E8=B0=83=E7=94=A8?= =?UTF-8?q?=E8=AF=95=E7=AE=97=E6=96=B9=E6=B3=95againGetTrial?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/common/CalculatePremium.vue | 48 ---------------------- 1 file changed, 48 deletions(-) diff --git a/src/views/ebiz/common/CalculatePremium.vue b/src/views/ebiz/common/CalculatePremium.vue index a5e5b4775..caa7d0487 100644 --- a/src/views/ebiz/common/CalculatePremium.vue +++ b/src/views/ebiz/common/CalculatePremium.vue @@ -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 = {