mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 01:06:45 +08:00
fix: 修复保费试算属性缺少的问题
This commit is contained in:
@@ -390,7 +390,7 @@
|
||||
<van-popup v-model="showAdditionRiskPopup" round position="bottom" class="addtion-risk">
|
||||
<van-picker show-toolbar @confirm="handleSubmitAddAdditionRisk" @cancel="handleSubmitAddAdditionRisk({ submit: false })">
|
||||
<template #columns-top>
|
||||
<addtion-risk-list ref="additionRiskList" :show-next="false" :trial-test="false" @changeProducts="handleChoosedProductsChange"/>
|
||||
<addtion-risk-list ref="additionRiskList" :show-next="false" :trial-test="false" @changeProducts="handleChoosedProductsChange" />
|
||||
</template>
|
||||
</van-picker>
|
||||
</van-popup>
|
||||
@@ -699,12 +699,7 @@ export default {
|
||||
item[item.code] = factor[item.code]
|
||||
}
|
||||
}
|
||||
let itemColumns = {
|
||||
text: factor.showContent,
|
||||
value: factor[item.code],
|
||||
flag: factor[item.code + 'Flag'],
|
||||
sex: factor.sex
|
||||
}
|
||||
let itemColumns = { text: factor.showContent, value: factor[item.code], flag: factor[item.code + 'Flag'], sex: factor.sex }
|
||||
if (factor.medical !== undefined) {
|
||||
itemColumns.medical = factor.medical
|
||||
}
|
||||
@@ -713,16 +708,17 @@ export default {
|
||||
} else if (item.type == 1) {
|
||||
//按年龄选择
|
||||
if (productTrialInfoDTO[item.code] != null) {
|
||||
// productTrialInfoDTO[item.code].forEach((factor) => {
|
||||
// item = Object.assign(item, factor)
|
||||
// if (
|
||||
// JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).insuredAge >= Number(factor.minAge) &&
|
||||
// JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).insuredAge <= Number(factor.maxAge)
|
||||
// ) {
|
||||
// // if(JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).age >= Number(factor.minAge) && JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).age <= Number(factor.maxAge)){
|
||||
// item = Object.assign(item, factor)
|
||||
// }
|
||||
// })
|
||||
productTrialInfoDTO[item.code].forEach(factor => {
|
||||
item = Object.assign(item, factor)
|
||||
// todo: 流程缩减
|
||||
// if (
|
||||
// JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).insuredAge >= Number(factor.minAge) &&
|
||||
// JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).insuredAge <= Number(factor.maxAge)
|
||||
// ) {
|
||||
// // if(JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).age >= Number(factor.minAge) && JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).age <= Number(factor.maxAge)){
|
||||
// item = Object.assign(item, factor)
|
||||
// }
|
||||
})
|
||||
if (item.code == 'inputPrem') {
|
||||
item['inputPrem'] = Number(item.minPrem) * Number(item.moneyUnit)
|
||||
} else {
|
||||
@@ -2870,7 +2866,7 @@ export default {
|
||||
)
|
||||
this.nextStepFlag = true
|
||||
} else {
|
||||
if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) !== 0) {
|
||||
if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
|
||||
// this.defalutAmt = currentEle.rules[productIndex].displayAmount
|
||||
this.$toast(
|
||||
'0周岁-55周岁最低基本保险金额为' +
|
||||
@@ -3596,10 +3592,10 @@ export default {
|
||||
})
|
||||
})
|
||||
},
|
||||
handleChoosedProductsChange(){
|
||||
this.chooseProducts = JSON.parse(localStorage.getItem("chooseProducts"))
|
||||
handleChoosedProductsChange() {
|
||||
this.chooseProducts = JSON.parse(localStorage.getItem('chooseProducts'))
|
||||
this.selectAddtionRisk()
|
||||
},
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
saleInsuredPersonInfo: {
|
||||
@@ -3607,7 +3603,7 @@ export default {
|
||||
handler: function(obj) {
|
||||
const { birthday } = obj
|
||||
this.saleInsuredPersonInfo.insuredAge = utilsAge.getAge(birthday, new Date())
|
||||
console.log(`saleInsuredPersonInfo value change` , this.saleInsuredPersonInfo)
|
||||
console.log(`saleInsuredPersonInfo value change`, this.saleInsuredPersonInfo)
|
||||
if (this.passUserInfoCheck) this.getTrial()
|
||||
}
|
||||
},
|
||||
@@ -3616,7 +3612,7 @@ export default {
|
||||
handler: function(obj) {
|
||||
const { birthday } = obj
|
||||
this.saleInsuredInfo.insuredAge = utilsAge.getAge(birthday, new Date())
|
||||
console.log(`saleInsuredInfo value change` , this.saleInsuredInfo)
|
||||
console.log(`saleInsuredInfo value change`, this.saleInsuredInfo)
|
||||
if (this.passUserInfoCheck) this.getTrial()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user