【建议书优化需求】建议书拷贝功能

This commit is contained in:
lyt
2023-04-20 18:20:51 +08:00
committed by liu.xiaofeng@ebiz-digits.com
parent 89e426ffe2
commit 4c51a95b01
6 changed files with 8 additions and 7 deletions

View File

@@ -510,7 +510,8 @@ export default {
if (productTrialInfoDTO[item.code] != null) {
productTrialInfoDTO[item.code].forEach(factor => {
// 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)){
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)
}
})

View File

@@ -23,7 +23,7 @@
</div>
<div class="text-right pv5">
<van-button v-if="isFrom == 'proposal'" size="small" round @click="editInsure(index)" class="mr5" type="danger">编辑</van-button>
<van-button v-if="isFrom == 'proposal'" size="small" round @click="editInsure(index,item.insuanceId)" class="mr5" type="danger">编辑</van-button>
<van-button size="small" round @click="deteleInsure(index)" plain type="danger">删除</van-button>
</div>
</div>

View File

@@ -49,9 +49,9 @@ export default {
tips = '投保人年龄不适合此款险种,请选择其他险种!'
} else {
if(riskProductCode == 'GFRS_M0061'){
age = utilsAge.getAge29(this.getSaleInsuredPersonInfo().birthday, new Date())
age = this.getSaleInsuredPersonInfo().birthday?utilsAge.getAge29(this.getSaleInsuredPersonInfo().birthday, new Date()):this.getSaleInsuredPersonInfo().insuredAge
}else{
age = utilsAge.getAgeByValue(this.getSaleInsuredPersonInfo().birthday, new Date())
age = this.getSaleInsuredPersonInfo().birthday?utilsAge.getAgeByValue(this.getSaleInsuredPersonInfo().birthday, new Date()):this.getSaleInsuredPersonInfo().insuredAge
}
tips = '被保险人年龄不适合此款险种,请选择其他险种!'
}

View File

@@ -402,7 +402,7 @@ export default {
//编辑被保险人
edit(item) {
item.birthday = item.birthdayLabel
item.age = item.insuredAge
// item.age = item.insuredAge
this.$CacheUtils.setLocItem('saleInsuredPersonInfo', JSON.stringify(item)) //存储被保险人信息
localStorage.isFrom = 'proposal'
let url = `/common/selectedProduct?proposalEdit=1&proposalOrderNo=${item.orderNo}`

View File

@@ -150,7 +150,7 @@ export default {
//如果是投被同人 就将投保人信息存入被保险人信息
this.disabled = true
this.insured = Object.assign(this.insured, JSON.parse(this.$CacheUtils.getLocItem('proposalAppnt')))
this.insured.insuredAge = getAge.getAge(this.insured.birthday, new Date())
this.insured.insuredAge = this.insured.birthday?getAge.getAge(this.insured.birthday, new Date()):this.insured.age
this.insured.medical = localStorage.orderNoSocialSecurity === '1' ? '1' : '0'
// 建议书投保人/被保人姓名不必填, 填写姓名时展示姓名(落库),不填写姓名时展示性别+年龄,如:男30岁(不落库)
if(!this.insured.name){

View File

@@ -685,7 +685,7 @@ export default {
this.pageShowInfo.insuredDTOs = res.content.orderDTO.insuredDTOs
this.pageShowInfo.showInsuredDTO = this.pageShowInfo.insuredDTOs[0]
//投保人年龄
this.pageShowInfo.appntDTO.age = getAge.getAge(this.pageShowInfo.appntDTO.birthdayLabel, new Date())
// this.pageShowInfo.appntDTO.age = getAge.getAge(this.pageShowInfo.appntDTO.birthdayLabel, new Date())
let { insuredLabelResult, insuredResult, insuredInfoResult } = res.content.calculusResDTO
orderDTO.insuredDTOs.forEach(v => {
//根据数据字典 获取当前值