双录代码基础判断逻辑修改

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2023-10-04 21:48:33 +08:00
parent 0687f0aea1
commit 8b82fe77d1
2 changed files with 10 additions and 6 deletions

View File

@@ -148,6 +148,7 @@ export default {
noCheckedUrl: require('@/assets/images/kmh/no_checked.png'),
proposalOrderNo:'',
renovate:'',//刷新子组件
manageComCode:'',//代理人管理机构 52贵州 45广西
isCrossChannel: 0, // 是否选择交叉渠道列表 0-否 1-是
}
},
@@ -161,7 +162,7 @@ export default {
[Radio.name]: Radio,
[Image.name]: Image
},
mounted() {
async mounted() {
this.$jump({
flag: 'navigation',
extra: {
@@ -207,6 +208,9 @@ export default {
window.appCallBack = this.appCallBack
document.body.style.backgroundColor = '#fff'
let dataReturn = await riskRules.getAgentInfoFunc(this)
this.manageComCode = dataReturn.manageComCode
this.getProductList()
if (!this.$route.query.edit) {
//如果不是编辑/导航条跳转进来的
@@ -758,7 +762,7 @@ export default {
if (showFlag) {
this.$dialog
.alert({
message: '年龄≥60周岁投保人如果投保一年期以上产品根据监管要求对销售过程进行录音录像!',
message: '根据监管要求,本单需要您配合对销售过程进行录音录像!',
confirmButtonColor: '#000000'
})
.then(() => {
@@ -906,9 +910,9 @@ export default {
//判断投保人年龄是否大于等于60岁
let showFlag = false
let age = this.appntDTO.birthday?utilsAge.getAge(this.appntDTO.birthday, new Date()):this.appntDTO.age
if (age >= 60) {
if (this.manageComCode == '52') {
this.chooseProducts.map(item => {
if (item.insuYearFlag == 'A' || (item.insuYearFlag == 'Y' && item.insuYear != '1')) {
if (item.insuYearFlag == 'A' || item.riskCode == 'GFRS_M0074' || (item.insuYearFlag == 'Y' && item.insuYear != '1')) {
showFlag = true
return true
}

View File

@@ -1370,10 +1370,10 @@
// localStorage.insuredDetail = JSON.stringify(this.userInfo)
// 添加提示
let age = utilsAge.getAge(this.userInfo.birthday, new Date())
if (age >= 60) {
if (age >= 60 && this.manageComCode == '45') {
this.$dialog
.alert({
message: '年龄≥60周岁投保人如果投保一年期以上产品根据监管要求对销售过程进行录音录像!',
message: '根据监管要求,本单需要您配合对销售过程进行录音录像!',
confirmButtonColor: '#000000',
})
.then(() => {