mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-16 06:26: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 === '999') || (item.isRemit == 1 && isTrial != '999' && 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 !== '999' && 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">
|
||||
@@ -271,7 +271,7 @@ export default {
|
||||
isFrom: '',
|
||||
// 默认钱数
|
||||
defalutAmt: '',
|
||||
//是否需要调试算接口标志 0-不需要调取
|
||||
//是否需要调试算接口标志 0-是 1-否
|
||||
isTrial: localStorage.isTrial
|
||||
//是否存在特殊配置
|
||||
}
|
||||
@@ -292,7 +292,6 @@ export default {
|
||||
methods: {
|
||||
//初始化数据
|
||||
init() {
|
||||
console.log('====unde', localStorage.isTrial === '999')
|
||||
// 获取是否从建议书过来的
|
||||
this.isFrom = localStorage.isFrom
|
||||
//获取投保人信息
|
||||
@@ -335,7 +334,7 @@ export default {
|
||||
|
||||
this.mainRiskInfluenceAddRisk()
|
||||
//初始化数据试算 isTrial是否调后端保费试算 /sale/ insure/trial 接口标志,0-不调取
|
||||
if (localStorage.isTrial === '999') {
|
||||
if (localStorage.isTrial === '1') {
|
||||
console.log('调了')
|
||||
this.getTrial()
|
||||
}
|
||||
@@ -365,7 +364,7 @@ export default {
|
||||
item.amt = Number(item.minDutyAmt) * Number(item.moneyUnit)
|
||||
})
|
||||
this.mainRiskInfluenceAddRisk()
|
||||
if (localStorage.isTrial === '999') {
|
||||
if (localStorage.isTrial === '1') {
|
||||
this.getTrial()
|
||||
}
|
||||
} else {
|
||||
@@ -420,7 +419,7 @@ export default {
|
||||
}
|
||||
this.hiddenPayEndYear(currentEle)
|
||||
//特殊规则:设置豁免险
|
||||
if (localStorage.isTrial === '999') {
|
||||
if (localStorage.isTrial === '1') {
|
||||
this.getTrial()
|
||||
}
|
||||
}
|
||||
@@ -439,7 +438,7 @@ export default {
|
||||
return false
|
||||
}
|
||||
this.mainRiskInfluenceAddRisk()
|
||||
if (localStorage.isTrial === '999') {
|
||||
if (localStorage.isTrial === '1') {
|
||||
this.getTrial()
|
||||
}
|
||||
},
|
||||
@@ -715,7 +714,7 @@ export default {
|
||||
}
|
||||
|
||||
localStorage.chooseProducts = JSON.stringify(this.chooseProducts)
|
||||
if (localStorage.isTrial === '999') {
|
||||
if (localStorage.isTrial === '1') {
|
||||
this.getTrial()
|
||||
}
|
||||
})
|
||||
@@ -849,7 +848,7 @@ export default {
|
||||
console.log(this.saleInsuredPersonInfo.age)
|
||||
console.log(riskFactor)
|
||||
let currentEle =
|
||||
localStorage.isTrial !== '' && this.chooseProducts[productIndex].isMainRisk == '0'
|
||||
localStorage.isTrial == '0' && this.chooseProducts[productIndex].isMainRisk == '0'
|
||||
? this.chooseProducts[productIndex].productTrialYearDTOS[calFactorIndex]
|
||||
: this.chooseProducts[productIndex].calFactorLst[calFactorIndex]
|
||||
//改动原因:孝心保产品有对年龄的特殊要求
|
||||
@@ -870,7 +869,7 @@ export default {
|
||||
} else {
|
||||
this.mainRiskInfluenceAddRisk()
|
||||
currentEle['amt'] = Number(this.defalutAmt) * Number(currentEle.moneyUnit)
|
||||
if (localStorage.isTrial === '999') {
|
||||
if (localStorage.isTrial === '1') {
|
||||
this.getTrial()
|
||||
}
|
||||
}
|
||||
@@ -889,7 +888,7 @@ export default {
|
||||
} else {
|
||||
this.mainRiskInfluenceAddRisk()
|
||||
currentEle['amt'] = Number(this.defalutAmt) * Number(currentEle.moneyUnit)
|
||||
if (localStorage.isTrial === '999') {
|
||||
if (localStorage.isTrial === '1') {
|
||||
this.getTrial()
|
||||
}
|
||||
}
|
||||
@@ -908,7 +907,7 @@ export default {
|
||||
} else {
|
||||
this.mainRiskInfluenceAddRisk()
|
||||
currentEle['amt'] = Number(this.defalutAmt) * Number(currentEle.moneyUnit)
|
||||
if (localStorage.isTrial === '999') {
|
||||
if (localStorage.isTrial === '1') {
|
||||
this.getTrial()
|
||||
}
|
||||
}
|
||||
@@ -926,7 +925,7 @@ export default {
|
||||
} else {
|
||||
this.mainRiskInfluenceAddRisk()
|
||||
currentEle['amt'] = Number(this.defalutAmt) * Number(currentEle.moneyUnit)
|
||||
if (localStorage.isTrial === '999') {
|
||||
if (localStorage.isTrial === '1') {
|
||||
this.getTrial()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -94,13 +94,12 @@ export default {
|
||||
},
|
||||
//储存主险
|
||||
async addMainRisk() {
|
||||
localStorage.setItem('isTrial', '999')
|
||||
localStorage.setItem('isTrial', '1')
|
||||
let riskProductCode = this.result.riskProductCode
|
||||
let resultData = await calculatePremium({ productCodes: [riskProductCode], platform: 'app', type: '1' })
|
||||
if (resultData.result == 0) {
|
||||
resultData = resultData.trialDTOS[0]
|
||||
localStorage.hint = resultData.hint
|
||||
localStorage.isTrial = resultData.productTrialInfoDTO.isTrial === undefined ? '999' : resultData.productTrialInfoDTO.isTrial
|
||||
console.log('localStorage.isTrial==', localStorage.isTrial, typeof localStorage.isTrial)
|
||||
if (resultData.productTrialInfoDTO.dutyGroup != null) {
|
||||
resultData.productTrialInfoDTO.dutyGroup.map(item => {
|
||||
|
||||
Reference in New Issue
Block a user