mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-23 01:46:44 +08:00
Merge branch '有无社保写死赔付比例和免赔额' into dev
This commit is contained in:
@@ -309,6 +309,9 @@ export default {
|
|||||||
//构建提交数据、渲染险种
|
//构建提交数据、渲染险种
|
||||||
this.chooseProducts = JSON.parse(localStorage.chooseProducts)
|
this.chooseProducts = JSON.parse(localStorage.chooseProducts)
|
||||||
|
|
||||||
|
//是否有社保
|
||||||
|
const isMedical = localStorage.getItem("medical") === '1'
|
||||||
|
|
||||||
this.chooseProducts.map(item => {
|
this.chooseProducts.map(item => {
|
||||||
if (item.mainRiskCode == 'GFRS_M0006') {
|
if (item.mainRiskCode == 'GFRS_M0006') {
|
||||||
item.isHidden = true
|
item.isHidden = true
|
||||||
@@ -319,10 +322,48 @@ export default {
|
|||||||
// console.log('i.displayAmount ==', i.displayAmount)
|
// console.log('i.displayAmount ==', i.displayAmount)
|
||||||
// console.log('i.defaultValue ==', i.defaultValue)
|
// console.log('i.defaultValue ==', i.defaultValue)
|
||||||
this.mult = Number(i.displayAmount) / Number(i.defaultValue)
|
this.mult = Number(i.displayAmount) / Number(i.defaultValue)
|
||||||
|
|
||||||
|
//根据社保写死两个字段 赔付比例和免赔额
|
||||||
|
//免赔额
|
||||||
|
if (i.code === 'getLimit') {
|
||||||
|
const text = isMedical ? '0元' : '100元'
|
||||||
|
const value = isMedical ? '0' : '100'
|
||||||
|
|
||||||
|
//保存数据
|
||||||
|
this.medicalInfo = this.medicalInfo || {}
|
||||||
|
this.medicalInfo.getLimit = text
|
||||||
|
|
||||||
|
i.showContent = text
|
||||||
|
i.getLimit = value
|
||||||
|
i.columns = [{ text, value }]
|
||||||
|
}
|
||||||
|
//赔付比例
|
||||||
|
if (i.code === 'getRate') {
|
||||||
|
const text = isMedical ? '80%' : '70%'
|
||||||
|
const value = isMedical ? '0.8' : '0.7'
|
||||||
|
|
||||||
|
//保存数据
|
||||||
|
this.medicalInfo = this.medicalInfo || {}
|
||||||
|
this.medicalInfo.getRate = text
|
||||||
|
|
||||||
|
i.showContent = text
|
||||||
|
i.getRate = value
|
||||||
|
i.columns = [{ text, value }]
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
//弹框展示是否有社保、赔付比例和免赔额信息
|
||||||
|
if (this.medicalInfo && this.medicalInfo.getLimit && this.medicalInfo.getRate) {
|
||||||
|
const message = isMedical ?
|
||||||
|
'您以社保身份投保,理赔时:通过社会基本医疗保险或者公费医疗就诊并结算,意外伤害医疗保险金赔付比例80%,免赔额0元;未通过社会基本医疗保险或者公费医疗就诊并结算的,意外伤害医疗保险金的赔付比例为60%,免赔额为100元。' :
|
||||||
|
'您以无社保身份投保,理赔时,若未通过社会基本医疗保险或者公费医疗就诊并结算的,意外伤害医疗保险金的赔付比例和免赔额分别70%,100元;理赔时,若通过社会基本医疗保险或者公费医疗就诊并结算的,意外伤害医疗保险金的赔付比例为90%,免赔额为0元。'
|
||||||
|
Dialog({ message })
|
||||||
|
}
|
||||||
|
|
||||||
|
// this.influenceAddRiskCodes
|
||||||
|
|
||||||
if (this.chooseProducts[0].influences && this.chooseProducts[0].influences.length > 0) {
|
if (this.chooseProducts[0].influences && this.chooseProducts[0].influences.length > 0) {
|
||||||
this.influences = this.chooseProducts[0].influences
|
this.influences = this.chooseProducts[0].influences
|
||||||
this.chooseProducts[0].influences.forEach(item => {
|
this.chooseProducts[0].influences.forEach(item => {
|
||||||
|
|||||||
@@ -138,6 +138,17 @@ export default {
|
|||||||
localStorage.isRenew = resultData.isRenew
|
localStorage.isRenew = resultData.isRenew
|
||||||
localStorage.isForceRenew = resultData.isForceRenew
|
localStorage.isForceRenew = resultData.isForceRenew
|
||||||
localStorage.isRelated = resultData.isRelated
|
localStorage.isRelated = resultData.isRelated
|
||||||
|
|
||||||
|
//保存是否有社保
|
||||||
|
const getRate = resultData.productTrialInfoDTO.getRate
|
||||||
|
if (
|
||||||
|
Array.isArray(getRate) &&
|
||||||
|
getRate.length > 0 &&
|
||||||
|
typeof getRate[0].medical !== undefined
|
||||||
|
) {
|
||||||
|
localStorage.medical = getRate[0].medical
|
||||||
|
}
|
||||||
|
|
||||||
let calFactorLst = this.getFactorList(resultData)
|
let calFactorLst = this.getFactorList(resultData)
|
||||||
let productTrialYearDTOS = resultData.productTrialInfoDTO.productTrialYearDTOS != null ? resultData.productTrialInfoDTO.productTrialYearDTOS : null
|
let productTrialYearDTOS = resultData.productTrialInfoDTO.productTrialYearDTOS != null ? resultData.productTrialInfoDTO.productTrialYearDTOS : null
|
||||||
let hasAddtionRisk = resultData.productTrialInfoDTO.addtionRiskLst ? true : false
|
let hasAddtionRisk = resultData.productTrialInfoDTO.addtionRiskLst ? true : false
|
||||||
|
|||||||
Reference in New Issue
Block a user