mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-15 10:36: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" />
|
||||
</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 class="flex justify-content-s pv10 border-bottom" v-if="riskFactor.type == 1">
|
||||
<div class="flex align-items-c">
|
||||
@@ -103,7 +103,7 @@
|
||||
</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 class="flex justify-content-s pv10 border-bottom" v-if="riskFactor.type == 1">
|
||||
<div class="flex align-items-c">
|
||||
|
||||
@@ -99,8 +99,8 @@ export default {
|
||||
let resultData = await calculatePremium({ productCodes: [riskProductCode], platform: 'app', type: '1' })
|
||||
if (resultData.result == 0) {
|
||||
resultData = resultData.trialDTOS[0]
|
||||
localStorage.isTrial = resultData.productTrialInfoDTO.isTrial
|
||||
localStorage.hint = resultData.hint
|
||||
console.log('localStorage.isTrial==', localStorage.isTrial, typeof localStorage.isTrial)
|
||||
if (resultData.productTrialInfoDTO.dutyGroup != null) {
|
||||
resultData.productTrialInfoDTO.dutyGroup.map(item => {
|
||||
if (item.dutyName == '意外身故/伤残保险金') {
|
||||
@@ -125,7 +125,7 @@ export default {
|
||||
if (riskRules.lifeGradeLimit(resultData, this)) {
|
||||
return
|
||||
}
|
||||
if (resultData.productCode == 'GFRS_M0006') {
|
||||
if (resultData.productInsuredDTO.validateAppntFlag == '0') {
|
||||
if (riskRules.lifeGradeLimitForBaby(resultData, this)) {
|
||||
return
|
||||
}
|
||||
@@ -138,10 +138,10 @@ export default {
|
||||
localStorage.isRenew = resultData.isRenew
|
||||
localStorage.isRelated = resultData.isRelated
|
||||
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 currentProductInfo =
|
||||
localStorage.isTrial == '999'
|
||||
localStorage.isTrial == '1'
|
||||
? {
|
||||
calFactorLst,
|
||||
hasAddtionRisk,
|
||||
|
||||
Reference in New Issue
Block a user