fix: 修复保费试算属性缺少的问题

This commit is contained in:
hz
2025-10-29 18:28:52 +08:00
parent 7885abaa2d
commit f1b587ff75

View File

@@ -390,7 +390,7 @@
<van-popup v-model="showAdditionRiskPopup" round position="bottom" class="addtion-risk"> <van-popup v-model="showAdditionRiskPopup" round position="bottom" class="addtion-risk">
<van-picker show-toolbar @confirm="handleSubmitAddAdditionRisk" @cancel="handleSubmitAddAdditionRisk({ submit: false })"> <van-picker show-toolbar @confirm="handleSubmitAddAdditionRisk" @cancel="handleSubmitAddAdditionRisk({ submit: false })">
<template #columns-top> <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> </template>
</van-picker> </van-picker>
</van-popup> </van-popup>
@@ -699,12 +699,7 @@ export default {
item[item.code] = factor[item.code] item[item.code] = factor[item.code]
} }
} }
let itemColumns = { let itemColumns = { text: factor.showContent, value: factor[item.code], flag: factor[item.code + 'Flag'], sex: factor.sex }
text: factor.showContent,
value: factor[item.code],
flag: factor[item.code + 'Flag'],
sex: factor.sex
}
if (factor.medical !== undefined) { if (factor.medical !== undefined) {
itemColumns.medical = factor.medical itemColumns.medical = factor.medical
} }
@@ -713,16 +708,17 @@ export default {
} else if (item.type == 1) { } else if (item.type == 1) {
//按年龄选择 //按年龄选择
if (productTrialInfoDTO[item.code] != null) { if (productTrialInfoDTO[item.code] != null) {
// productTrialInfoDTO[item.code].forEach((factor) => { productTrialInfoDTO[item.code].forEach(factor => {
// item = Object.assign(item, factor) item = Object.assign(item, factor)
// if ( // todo: 流程缩减
// JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).insuredAge >= Number(factor.minAge) && // if (
// JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).insuredAge <= Number(factor.maxAge) // 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(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') { if (item.code == 'inputPrem') {
item['inputPrem'] = Number(item.minPrem) * Number(item.moneyUnit) item['inputPrem'] = Number(item.minPrem) * Number(item.moneyUnit)
} else { } else {
@@ -2870,7 +2866,7 @@ export default {
) )
this.nextStepFlag = true this.nextStepFlag = true
} else { } 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.defalutAmt = currentEle.rules[productIndex].displayAmount
this.$toast( this.$toast(
'0周岁-55周岁最低基本保险金额为' + '0周岁-55周岁最低基本保险金额为' +
@@ -3596,10 +3592,10 @@ export default {
}) })
}) })
}, },
handleChoosedProductsChange(){ handleChoosedProductsChange() {
this.chooseProducts = JSON.parse(localStorage.getItem("chooseProducts")) this.chooseProducts = JSON.parse(localStorage.getItem('chooseProducts'))
this.selectAddtionRisk() this.selectAddtionRisk()
}, }
}, },
watch: { watch: {
saleInsuredPersonInfo: { saleInsuredPersonInfo: {
@@ -3607,7 +3603,7 @@ export default {
handler: function(obj) { handler: function(obj) {
const { birthday } = obj const { birthday } = obj
this.saleInsuredPersonInfo.insuredAge = utilsAge.getAge(birthday, new Date()) 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() if (this.passUserInfoCheck) this.getTrial()
} }
}, },
@@ -3616,7 +3612,7 @@ export default {
handler: function(obj) { handler: function(obj) {
const { birthday } = obj const { birthday } = obj
this.saleInsuredInfo.insuredAge = utilsAge.getAge(birthday, new Date()) 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() if (this.passUserInfoCheck) this.getTrial()
} }
} }