mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-16 19:16:44 +08:00
[FIX]建议书保费试算bug
This commit is contained in:
@@ -18,7 +18,7 @@
|
|||||||
<van-icon name="delete" size="22" @click="deleteRisk(index)" class="green" />
|
<van-icon name="delete" size="22" @click="deleteRisk(index)" class="green" />
|
||||||
</div>
|
</div>
|
||||||
<!-- 险种条件-->
|
<!-- 险种条件-->
|
||||||
<div v-if="(item.isRemit == 1 && isTrial === '1') || (item.isRemit == 1 && isTrial != '1' && item.isMainRisk == 1)">
|
<div v-if="(item.isRemit == 1 && isTrial == '1') || (item.isRemit == 1 && isTrial != '1' && item.isMainRisk == 1)">
|
||||||
<div v-for="(riskFactor, riskFactorIndex) in item.calFactorLst" :key="riskFactorIndex">
|
<div v-for="(riskFactor, riskFactorIndex) in item.calFactorLst" :key="riskFactorIndex">
|
||||||
<div class="flex justify-content-s pv10 border-bottom" v-if="riskFactor.type == 1">
|
<div class="flex justify-content-s pv10 border-bottom" v-if="riskFactor.type == 1">
|
||||||
<div class="flex align-items-c">
|
<div class="flex align-items-c">
|
||||||
@@ -103,7 +103,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 为富娃娃两全保险(万能型)专写 -->
|
<!-- 为富娃娃两全保险(万能型)专写 -->
|
||||||
<div v-if="item.isRemit == 1 && isTrial !== '1' && item.isMainRisk == 0">
|
<div v-if="item.isRemit == 1 && isTrial != '1' && item.isMainRisk == 0">
|
||||||
<div v-for="(riskFactor, riskFactorIndex) in item.calFactorLst" :key="riskFactorIndex">
|
<div v-for="(riskFactor, riskFactorIndex) in item.calFactorLst" :key="riskFactorIndex">
|
||||||
<div class="flex justify-content-s pv10 border-bottom" v-if="riskFactor.type == 1">
|
<div class="flex justify-content-s pv10 border-bottom" v-if="riskFactor.type == 1">
|
||||||
<div class="flex align-items-c">
|
<div class="flex align-items-c">
|
||||||
|
|||||||
@@ -99,8 +99,8 @@ export default {
|
|||||||
let resultData = await calculatePremium({ productCodes: [riskProductCode], platform: 'app', type: '1' })
|
let resultData = await calculatePremium({ productCodes: [riskProductCode], platform: 'app', type: '1' })
|
||||||
if (resultData.result == 0) {
|
if (resultData.result == 0) {
|
||||||
resultData = resultData.trialDTOS[0]
|
resultData = resultData.trialDTOS[0]
|
||||||
|
localStorage.isTrial = resultData.productTrialInfoDTO.isTrial
|
||||||
localStorage.hint = resultData.hint
|
localStorage.hint = resultData.hint
|
||||||
console.log('localStorage.isTrial==', localStorage.isTrial, typeof localStorage.isTrial)
|
|
||||||
if (resultData.productTrialInfoDTO.dutyGroup != null) {
|
if (resultData.productTrialInfoDTO.dutyGroup != null) {
|
||||||
resultData.productTrialInfoDTO.dutyGroup.map(item => {
|
resultData.productTrialInfoDTO.dutyGroup.map(item => {
|
||||||
if (item.dutyName == '意外身故/伤残保险金') {
|
if (item.dutyName == '意外身故/伤残保险金') {
|
||||||
@@ -125,7 +125,7 @@ export default {
|
|||||||
if (riskRules.lifeGradeLimit(resultData, this)) {
|
if (riskRules.lifeGradeLimit(resultData, this)) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (resultData.productCode == 'GFRS_M0006') {
|
if (resultData.productInsuredDTO.validateAppntFlag == '0') {
|
||||||
if (riskRules.lifeGradeLimitForBaby(resultData, this)) {
|
if (riskRules.lifeGradeLimitForBaby(resultData, this)) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -138,10 +138,10 @@ export default {
|
|||||||
localStorage.isRenew = resultData.isRenew
|
localStorage.isRenew = resultData.isRenew
|
||||||
localStorage.isRelated = resultData.isRelated
|
localStorage.isRelated = resultData.isRelated
|
||||||
let calFactorLst = this.getFactorList(resultData)
|
let calFactorLst = this.getFactorList(resultData)
|
||||||
let productTrialYearDTOS = localStorage.isTrial === '999' ? null : resultData.productTrialInfoDTO.productTrialYearDTOS
|
let productTrialYearDTOS = localStorage.isTrial === '1' ? null : resultData.productTrialInfoDTO.productTrialYearDTOS
|
||||||
let hasAddtionRisk = resultData.productTrialInfoDTO.addtionRiskLst ? true : false
|
let hasAddtionRisk = resultData.productTrialInfoDTO.addtionRiskLst ? true : false
|
||||||
let currentProductInfo =
|
let currentProductInfo =
|
||||||
localStorage.isTrial == '999'
|
localStorage.isTrial == '1'
|
||||||
? {
|
? {
|
||||||
calFactorLst,
|
calFactorLst,
|
||||||
hasAddtionRisk,
|
hasAddtionRisk,
|
||||||
|
|||||||
Reference in New Issue
Block a user