diff --git a/src/views/ebiz/common/CalculatePremium.vue b/src/views/ebiz/common/CalculatePremium.vue index 3b04f3719..668b35bba 100644 --- a/src/views/ebiz/common/CalculatePremium.vue +++ b/src/views/ebiz/common/CalculatePremium.vue @@ -335,7 +335,7 @@ export default { this.mainRiskInfluenceAddRisk() //初始化数据试算 isTrial是否调后端保费试算 /sale/ insure/trial 接口标志,0-不调取 - if (localStorage.isTrial === '') { + if (localStorage.isTrial === '1') { this.getTrial() } }, @@ -364,7 +364,7 @@ export default { item.amt = Number(item.minDutyAmt) * Number(item.moneyUnit) }) this.mainRiskInfluenceAddRisk() - if (localStorage.isTrial === '') { + if (localStorage.isTrial === '1') { this.getTrial() } } else { @@ -421,7 +421,7 @@ export default { } this.hiddenPayEndYear(currentEle) //特殊规则:设置豁免险 - if (localStorage.isTrial === '') { + if (localStorage.isTrial === '1') { this.getTrial() } } @@ -440,7 +440,7 @@ export default { return false } this.mainRiskInfluenceAddRisk() - if (localStorage.isTrial === '') { + if (localStorage.isTrial === '1') { this.getTrial() } }, @@ -716,7 +716,7 @@ export default { } localStorage.chooseProducts = JSON.stringify(this.chooseProducts) - if (localStorage.isTrial === '') { + if (localStorage.isTrial === '1') { this.getTrial() } }) @@ -856,7 +856,7 @@ export default { console.log(this.saleInsuredPersonInfo.age) console.log(riskFactor) let currentEle = - localStorage.isTrial !== '' && this.chooseProducts[productIndex].isMainRisk == '0' + localStorage.isTrial !== '1' && this.chooseProducts[productIndex].isMainRisk == '0' ? this.chooseProducts[productIndex].productTrialYearDTOS[calFactorIndex] : this.chooseProducts[productIndex].calFactorLst[calFactorIndex] //改动原因:孝心保产品有对年龄的特殊要求 @@ -876,7 +876,7 @@ export default { } else { this.mainRiskInfluenceAddRisk() currentEle['amt'] = Number(this.defalutAmt) * Number(currentEle.moneyUnit) - if (localStorage.isTrial === '') { + if (localStorage.isTrial === '1') { this.getTrial() } } @@ -895,7 +895,7 @@ export default { } else { this.mainRiskInfluenceAddRisk() currentEle['amt'] = Number(this.defalutAmt) * Number(currentEle.moneyUnit) - if (localStorage.isTrial === '') { + if (localStorage.isTrial === '1') { this.getTrial() } } @@ -914,7 +914,7 @@ export default { } else { this.mainRiskInfluenceAddRisk() currentEle['amt'] = Number(this.defalutAmt) * Number(currentEle.moneyUnit) - if (localStorage.isTrial === '') { + if (localStorage.isTrial === '1') { this.getTrial() } } @@ -932,7 +932,7 @@ export default { } else { this.mainRiskInfluenceAddRisk() currentEle['amt'] = Number(this.defalutAmt) * Number(currentEle.moneyUnit) - if (localStorage.isTrial === '') { + if (localStorage.isTrial === '1') { this.getTrial() } }