【建议书优化需求】试算页面不填写姓名时展示性别+年龄,如:男30岁(不落库)

This commit is contained in:
lyt
2023-04-17 15:36:07 +08:00
committed by liu.xiaofeng@ebiz-digits.com
parent 0f2e9fc2e6
commit 844cf33dcd
4 changed files with 53 additions and 17 deletions

View File

@@ -475,6 +475,11 @@ export default {
this.pageShowInfo.showInsuredDTO
this.pageShowInfo.insuredDTOs.map(item => {
if (item.insuredId == insureId) {
// 建议书投保人/被保人姓名不必填, 填写姓名时展示姓名(落库),不填写姓名时展示性别+年龄,如:男30岁(不落库)
if(!item.name){
let sex = item.sex == '0'?'男':'女'
item.name = sex + item.insuredAge
}
this.pageShowInfo.showInsuredDTO = item
that.$forceUpdate()
return
@@ -684,6 +689,11 @@ export default {
orderDTO.insuredDTOs.forEach(v => {
//根据数据字典 获取当前值
v.age = getAge.getAge(v.birthdayLabel, new Date())
// 建议书投保人/被保人姓名不必填, 填写姓名时展示姓名(落库),不填写姓名时展示性别+年龄,如:男30岁(不落库)
if(!v.name){
let sex = v.sex == '0'?'男':'女'
v.name = sex + v.insuredAge
}
v.riskDTOLstNew = []
v.riskDTOLst.forEach(risk => {
if (risk.isMainRisk == '0') {