mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-12 17:16:43 +08:00
【建议书优化需求】建议书拷贝功能
This commit is contained in:
committed by
liu.xiaofeng@ebiz-digits.com
parent
89e426ffe2
commit
4c51a95b01
@@ -510,7 +510,8 @@ export default {
|
|||||||
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(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)
|
item = Object.assign(item, factor)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="text-right pv5">
|
<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>
|
<van-button size="small" round @click="deteleInsure(index)" plain type="danger">删除</van-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -49,9 +49,9 @@ export default {
|
|||||||
tips = '投保人年龄不适合此款险种,请选择其他险种!'
|
tips = '投保人年龄不适合此款险种,请选择其他险种!'
|
||||||
} else {
|
} else {
|
||||||
if(riskProductCode == 'GFRS_M0061'){
|
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{
|
}else{
|
||||||
age = utilsAge.getAgeByValue(this.getSaleInsuredPersonInfo().birthday, new Date())
|
age = this.getSaleInsuredPersonInfo().birthday?utilsAge.getAgeByValue(this.getSaleInsuredPersonInfo().birthday, new Date()):this.getSaleInsuredPersonInfo().insuredAge
|
||||||
}
|
}
|
||||||
tips = '被保险人年龄不适合此款险种,请选择其他险种!'
|
tips = '被保险人年龄不适合此款险种,请选择其他险种!'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -402,7 +402,7 @@ export default {
|
|||||||
//编辑被保险人
|
//编辑被保险人
|
||||||
edit(item) {
|
edit(item) {
|
||||||
item.birthday = item.birthdayLabel
|
item.birthday = item.birthdayLabel
|
||||||
item.age = item.insuredAge
|
// item.age = item.insuredAge
|
||||||
this.$CacheUtils.setLocItem('saleInsuredPersonInfo', JSON.stringify(item)) //存储被保险人信息
|
this.$CacheUtils.setLocItem('saleInsuredPersonInfo', JSON.stringify(item)) //存储被保险人信息
|
||||||
localStorage.isFrom = 'proposal'
|
localStorage.isFrom = 'proposal'
|
||||||
let url = `/common/selectedProduct?proposalEdit=1&proposalOrderNo=${item.orderNo}`
|
let url = `/common/selectedProduct?proposalEdit=1&proposalOrderNo=${item.orderNo}`
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ export default {
|
|||||||
//如果是投被同人 就将投保人信息存入被保险人信息
|
//如果是投被同人 就将投保人信息存入被保险人信息
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
this.insured = Object.assign(this.insured, JSON.parse(this.$CacheUtils.getLocItem('proposalAppnt')))
|
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'
|
this.insured.medical = localStorage.orderNoSocialSecurity === '1' ? '1' : '0'
|
||||||
// 建议书投保人/被保人姓名不必填, 填写姓名时展示姓名(落库),不填写姓名时展示性别+年龄,如:男30岁(不落库)
|
// 建议书投保人/被保人姓名不必填, 填写姓名时展示姓名(落库),不填写姓名时展示性别+年龄,如:男30岁(不落库)
|
||||||
if(!this.insured.name){
|
if(!this.insured.name){
|
||||||
|
|||||||
@@ -685,7 +685,7 @@ export default {
|
|||||||
this.pageShowInfo.insuredDTOs = res.content.orderDTO.insuredDTOs
|
this.pageShowInfo.insuredDTOs = res.content.orderDTO.insuredDTOs
|
||||||
this.pageShowInfo.showInsuredDTO = this.pageShowInfo.insuredDTOs[0]
|
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
|
let { insuredLabelResult, insuredResult, insuredInfoResult } = res.content.calculusResDTO
|
||||||
orderDTO.insuredDTOs.forEach(v => {
|
orderDTO.insuredDTOs.forEach(v => {
|
||||||
//根据数据字典 获取当前值
|
//根据数据字典 获取当前值
|
||||||
|
|||||||
Reference in New Issue
Block a user