Merge branch 'feature/GFRS-451【0312】电投添加双录提示' into dev

This commit is contained in:
阳华祥
2020-03-04 17:12:05 +08:00

View File

@@ -243,18 +243,35 @@ export default {
}
}
}
let showFlag = this.showTipForDoubleRecord()
if (showFlag) {
this.$dialog
.alert({
message: '年龄≥60周岁投保人如果投保一年期以上产品请根据监管要求对销售过程进行录音录像',
confirmButtonColor: '#000000'
})
.then(() => {
this.nextPageShow()
})
let routerUrl
if (localStorage.isFrom == 'proposal') {
routerUrl = '/proposal/chooseInsuredPerson'
let page = this.$route.query.proposalEdit == '1' ? '-1' : '-2'
this.$jump({
flag: 'goBack',
extra: {
refresh: '1',
index: page
},
routerInfo: {
path: routerUrl
}
})
} else {
this.nextPageShow()
let showFlag = this.showTipForDoubleRecord()
if (showFlag) {
this.$dialog
.alert({
message: '年龄≥60周岁投保人如果投保一年期以上产品请根据监管要求对销售过程进行录音录像',
confirmButtonColor: '#000000'
})
.then(() => {
this.nextPageShow()
})
} else {
this.nextPageShow()
}
}
},
//添加产品
@@ -275,16 +292,8 @@ export default {
let age = utilsAge.getAge(this.appntDTO.birthday, new Date())
if (age >= 60) {
this.chooseProducts.map(item => {
// 保险期间大于1年
item.calFactorLst.map(subItem => {
if (subItem.code == 'insuYear') {
if (subItem.payEndYearFlag == 'A' || (subItem.payEndYearFlag == 'Y' && subItem.payEndYear != '1')) {
showFlag = true
return true
}
}
})
if (showFlag) {
if (item.insuYearFlag == 'A' || (item.insuYearFlag == 'Y' && item.insuYear != '1')) {
showFlag = true
return true
}
})
@@ -292,37 +301,20 @@ export default {
return showFlag
},
nextPageShow() {
let routerUrl
if (localStorage.isFrom == 'proposal') {
routerUrl = '/proposal/chooseInsuredPerson'
let page = this.$route.query.proposalEdit == '1' ? '-1' : '-2'
this.$jump({
flag: 'goBack',
extra: {
refresh: '1',
index: page
},
routerInfo: {
path: routerUrl
}
})
} else {
routerUrl = '/sale/beneficiary'
localStorage.beneficiaryInfo = ''
localStorage.fromAddBeneficiaryInfo = ''
localStorage.removeItem('applicant')
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#' + routerUrl,
needRefresh: '1'
},
routerInfo: {
path: routerUrl
}
})
}
let routerUrl = '/sale/beneficiary'
localStorage.beneficiaryInfo = ''
localStorage.fromAddBeneficiaryInfo = ''
localStorage.removeItem('applicant')
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#' + routerUrl,
needRefresh: '1'
},
routerInfo: {
path: routerUrl
}
})
}
}
}