mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-22 22: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 === '') || (item.isRemit == 1 && isTrial !== '' && item.isMainRisk == 1)">
|
<div v-if="(item.isRemit == 1 && isTrial === '999') || (item.isRemit == 1 && isTrial != '999' && 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 !== '' && item.isMainRisk == 0">
|
<div v-if="item.isRemit == 1 && isTrial !== '999' && 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">
|
||||||
@@ -273,6 +273,7 @@ export default {
|
|||||||
defalutAmt: '',
|
defalutAmt: '',
|
||||||
//是否需要调试算接口标志 0-不需要调取
|
//是否需要调试算接口标志 0-不需要调取
|
||||||
isTrial: localStorage.isTrial
|
isTrial: localStorage.isTrial
|
||||||
|
//是否存在特殊配置
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -291,6 +292,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
//初始化数据
|
//初始化数据
|
||||||
init() {
|
init() {
|
||||||
|
console.log('====unde', localStorage.isTrial === '999')
|
||||||
// 获取是否从建议书过来的
|
// 获取是否从建议书过来的
|
||||||
this.isFrom = localStorage.isFrom
|
this.isFrom = localStorage.isFrom
|
||||||
//获取投保人信息
|
//获取投保人信息
|
||||||
@@ -333,7 +335,8 @@ export default {
|
|||||||
|
|
||||||
this.mainRiskInfluenceAddRisk()
|
this.mainRiskInfluenceAddRisk()
|
||||||
//初始化数据试算 isTrial是否调后端保费试算 /sale/ insure/trial 接口标志,0-不调取
|
//初始化数据试算 isTrial是否调后端保费试算 /sale/ insure/trial 接口标志,0-不调取
|
||||||
if (localStorage.isTrial === '') {
|
if (localStorage.isTrial === '999') {
|
||||||
|
console.log('调了')
|
||||||
this.getTrial()
|
this.getTrial()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -362,7 +365,7 @@ export default {
|
|||||||
item.amt = Number(item.minDutyAmt) * Number(item.moneyUnit)
|
item.amt = Number(item.minDutyAmt) * Number(item.moneyUnit)
|
||||||
})
|
})
|
||||||
this.mainRiskInfluenceAddRisk()
|
this.mainRiskInfluenceAddRisk()
|
||||||
if (localStorage.isTrial === '') {
|
if (localStorage.isTrial === '999') {
|
||||||
this.getTrial()
|
this.getTrial()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -377,7 +380,7 @@ export default {
|
|||||||
},
|
},
|
||||||
//弹框选择
|
//弹框选择
|
||||||
toSelect(index, index1, columns) {
|
toSelect(index, index1, columns) {
|
||||||
console.log(index, index1, columns)
|
console.log('===', index, index1, columns)
|
||||||
;[this.popupShow, this.productIndex, this.calFactorIndex] = [true, index, index1]
|
;[this.popupShow, this.productIndex, this.calFactorIndex] = [true, index, index1]
|
||||||
this.columns = columns
|
this.columns = columns
|
||||||
},
|
},
|
||||||
@@ -417,7 +420,7 @@ export default {
|
|||||||
}
|
}
|
||||||
this.hiddenPayEndYear(currentEle)
|
this.hiddenPayEndYear(currentEle)
|
||||||
//特殊规则:设置豁免险
|
//特殊规则:设置豁免险
|
||||||
if (localStorage.isTrial === '') {
|
if (localStorage.isTrial === '999') {
|
||||||
this.getTrial()
|
this.getTrial()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -436,7 +439,7 @@ export default {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
this.mainRiskInfluenceAddRisk()
|
this.mainRiskInfluenceAddRisk()
|
||||||
if (localStorage.isTrial === '') {
|
if (localStorage.isTrial === '999') {
|
||||||
this.getTrial()
|
this.getTrial()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -712,7 +715,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
localStorage.chooseProducts = JSON.stringify(this.chooseProducts)
|
localStorage.chooseProducts = JSON.stringify(this.chooseProducts)
|
||||||
if (localStorage.isTrial === '') {
|
if (localStorage.isTrial === '999') {
|
||||||
this.getTrial()
|
this.getTrial()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -851,7 +854,8 @@ export default {
|
|||||||
: this.chooseProducts[productIndex].calFactorLst[calFactorIndex]
|
: this.chooseProducts[productIndex].calFactorLst[calFactorIndex]
|
||||||
//改动原因:孝心保产品有对年龄的特殊要求
|
//改动原因:孝心保产品有对年龄的特殊要求
|
||||||
//添加判断,是否是孝心保产品
|
//添加判断,是否是孝心保产品
|
||||||
if (localStorage.trialList != '' && JSON.parse(localStorage.trialList)[0].productCode == 'GFRS_M0014') {
|
let productCode = (localStorage.trialList !== undefined && localStorage.trialList != '') ? JSON.parse(localStorage.trialList)[0].productCode : ''
|
||||||
|
if (productCode == 'GFRS_M0014') {
|
||||||
//被保人年龄如果在50-65区间
|
//被保人年龄如果在50-65区间
|
||||||
if (this.saleInsuredPersonInfo.age >= 50 && this.saleInsuredPersonInfo.age <= 65) {
|
if (this.saleInsuredPersonInfo.age >= 50 && this.saleInsuredPersonInfo.age <= 65) {
|
||||||
//使用rules规则里的第二条控制保额份数
|
//使用rules规则里的第二条控制保额份数
|
||||||
@@ -866,7 +870,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.mainRiskInfluenceAddRisk()
|
this.mainRiskInfluenceAddRisk()
|
||||||
currentEle['amt'] = Number(this.defalutAmt) * Number(currentEle.moneyUnit)
|
currentEle['amt'] = Number(this.defalutAmt) * Number(currentEle.moneyUnit)
|
||||||
if (localStorage.isTrial === '') {
|
if (localStorage.isTrial === '999') {
|
||||||
this.getTrial()
|
this.getTrial()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -885,7 +889,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.mainRiskInfluenceAddRisk()
|
this.mainRiskInfluenceAddRisk()
|
||||||
currentEle['amt'] = Number(this.defalutAmt) * Number(currentEle.moneyUnit)
|
currentEle['amt'] = Number(this.defalutAmt) * Number(currentEle.moneyUnit)
|
||||||
if (localStorage.isTrial === '') {
|
if (localStorage.isTrial === '999') {
|
||||||
this.getTrial()
|
this.getTrial()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -904,7 +908,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.mainRiskInfluenceAddRisk()
|
this.mainRiskInfluenceAddRisk()
|
||||||
currentEle['amt'] = Number(this.defalutAmt) * Number(currentEle.moneyUnit)
|
currentEle['amt'] = Number(this.defalutAmt) * Number(currentEle.moneyUnit)
|
||||||
if (localStorage.isTrial === '') {
|
if (localStorage.isTrial === '999') {
|
||||||
this.getTrial()
|
this.getTrial()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -922,7 +926,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.mainRiskInfluenceAddRisk()
|
this.mainRiskInfluenceAddRisk()
|
||||||
currentEle['amt'] = Number(this.defalutAmt) * Number(currentEle.moneyUnit)
|
currentEle['amt'] = Number(this.defalutAmt) * Number(currentEle.moneyUnit)
|
||||||
if (localStorage.isTrial === '') {
|
if (localStorage.isTrial === '999') {
|
||||||
this.getTrial()
|
this.getTrial()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -94,13 +94,14 @@ export default {
|
|||||||
},
|
},
|
||||||
//储存主险
|
//储存主险
|
||||||
async addMainRisk() {
|
async addMainRisk() {
|
||||||
localStorage.setItem('isTrial', '')
|
localStorage.setItem('isTrial', '999')
|
||||||
let riskProductCode = this.result.riskProductCode
|
let riskProductCode = this.result.riskProductCode
|
||||||
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.hint = resultData.hint
|
localStorage.hint = resultData.hint
|
||||||
localStorage.isTrial = resultData.productTrialInfoDTO.isTrial
|
localStorage.isTrial = resultData.productTrialInfoDTO.isTrial === undefined ? '999' : resultData.productTrialInfoDTO.isTrial
|
||||||
|
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 == '意外身故/伤残保险金') {
|
||||||
@@ -141,7 +142,7 @@ export default {
|
|||||||
let productTrialYearDTOS = localStorage.isTrial === '' ? null : resultData.productTrialInfoDTO.productTrialYearDTOS
|
let productTrialYearDTOS = localStorage.isTrial === '' ? null : resultData.productTrialInfoDTO.productTrialYearDTOS
|
||||||
let hasAddtionRisk = resultData.productTrialInfoDTO.addtionRiskLst ? true : false
|
let hasAddtionRisk = resultData.productTrialInfoDTO.addtionRiskLst ? true : false
|
||||||
let currentProductInfo =
|
let currentProductInfo =
|
||||||
localStorage.isTrial === ''
|
localStorage.isTrial == '' || localStorage.isTrial === undefined || localStorage.isTrial == null
|
||||||
? {
|
? {
|
||||||
calFactorLst,
|
calFactorLst,
|
||||||
hasAddtionRisk,
|
hasAddtionRisk,
|
||||||
|
|||||||
Reference in New Issue
Block a user