fix(saleFlowProImprove): 修复受益人信息页面证书有效期计算逻辑

- 将 getStartDate 方法的参数从年龄调整为生日日期
- 优化开发环境下缓存键的配置逻辑
- 修复生产环境中缓存键数组的条件判断问题
This commit is contained in:
hz
2025-11-28 11:10:44 +08:00
parent c15cfbd37b
commit 2f9d15d99b
2 changed files with 2 additions and 7 deletions

View File

@@ -1,9 +1,4 @@
export default {
isAll: false,
encodeKeys: [
'saleInsuredInfo',
'saleInsuredPersonInfo',
'appntDTO',
'proposalAppnt'
]
encodeKeys: process.env.NODE_ENV === 'development' ? [] : ['saleInsuredInfo', 'saleInsuredPersonInfo', 'appntDTO', 'proposalAppnt']
}

View File

@@ -722,7 +722,7 @@ export default {
//获取年龄
let age = utilsAge.getAge(this.userInfo.birthday, new Date())
if (this.userInfo.birthday) {
this.userInfo.certificateValidate = countCredentialValidity.getStartDate(age, val)
this.userInfo.certificateValidate = countCredentialValidity.getStartDate(this.userInfo.birthday, val)
}
}
}