From 94b37146bc77780e3aac6d94c4b3b036a9f38acb Mon Sep 17 00:00:00 2001 From: "liu.xiaofeng@ebiz-digits.com" Date: Fri, 8 Dec 2023 14:38:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=A1=E5=8D=95=E6=8A=95=E4=BF=9D=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=9C=B0=E5=8C=BA=E5=88=A4=E6=96=AD=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E6=98=AF=E5=B9=BF=E8=A5=BF=E5=9C=B0=E5=8C=BA=20=E5=8A=A8?= =?UTF-8?q?=E6=80=81=E6=8E=A7=E5=88=B6=E6=96=B0=E5=B8=82=E6=B0=91=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E6=98=AF=E5=90=A6=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/cardList/GroupAppntInfo.vue | 11 +++++++---- src/views/ebiz/cardList/GroupInsuredInfo.vue | 11 +++++++---- src/views/ebiz/cardList/information.vue | 14 ++++++++------ 3 files changed, 22 insertions(+), 14 deletions(-) diff --git a/src/views/ebiz/cardList/GroupAppntInfo.vue b/src/views/ebiz/cardList/GroupAppntInfo.vue index b0c48f566..110f1fede 100644 --- a/src/views/ebiz/cardList/GroupAppntInfo.vue +++ b/src/views/ebiz/cardList/GroupAppntInfo.vue @@ -245,6 +245,7 @@ import OccupationForLoop from '@/components/ebiz/occipation/OccupationForLoop' import { selectComp, getIdentityInfo } from './js/methods' import Vue from 'vue' import { GoodsAction, GoodsActionIcon, GoodsActionButton } from 'vant' +import riskRules from '@/views/ebiz/common/risk-rules' DataDictionary.relationToAppnt = DataDictionary.relationToAppnt.slice(0, 4) Vue.use(Checkbox).use(CheckboxGroup) @@ -374,14 +375,14 @@ export default { value: false }, occupationalType: DataDictionary.queryOccupationalByType[0].id, - manageComCode: '45', + manageComCode: '', isNewPeopleFlagTipshow: false, } }, created() { this.userInfo.homeName = getAreaName([{ code: 450000 }, { code: 450100 }, { code: 450101 }]) //家庭地址 }, - mounted() { + async mounted() { let that = this setTimeout(() => { // eslint-disable-next-line no-undef @@ -392,6 +393,8 @@ export default { }, 100) // 筛选按钮的点击事件 window.appCallBack = this.appCallBack + let dataReturn = await riskRules.getAgentInfoFunc(this) + this.manageComCode = dataReturn.manageComCode if (this.$route.query.cardOrderNo) { this.cardOrderNo = this.$route.query.cardOrderNo //根据后台数据来展示 @@ -849,10 +852,10 @@ export default { } } } - if (this.userInfo.isNewPeopleFlag == '' || this.userInfo.isNewPeopleFlag == null || this.userInfo.isNewPeopleFlag == undefined) { + if (this.manageComCode == '45' && (this.userInfo.isNewPeopleFlag == '' || this.userInfo.isNewPeopleFlag == null || this.userInfo.isNewPeopleFlag == undefined)) { return this.$toast('投保人新市民身份不能为空') } - if(this.userInfo.isNewPeopleFlag != '0' && !this.userInfo.npType) { + if(this.manageComCode == '45' && this.userInfo.isNewPeopleFlag != '0' && !this.userInfo.npType) { return this.$toast('投保人新市民类型不能为空') } this.infoUpdate() diff --git a/src/views/ebiz/cardList/GroupInsuredInfo.vue b/src/views/ebiz/cardList/GroupInsuredInfo.vue index f32c254a7..a6d6858f2 100644 --- a/src/views/ebiz/cardList/GroupInsuredInfo.vue +++ b/src/views/ebiz/cardList/GroupInsuredInfo.vue @@ -312,6 +312,7 @@ import { selectComp, getIdentityInfo } from './js/methods' import dateUtils from '@/assets/js/utils/date-utils' import Vue from 'vue' import { GoodsAction, GoodsActionIcon, GoodsActionButton } from 'vant' +import riskRules from '@/views/ebiz/common/risk-rules' DataDictionary.relationToAppnt = DataDictionary.relationToAppnt.slice(0, 4) Vue.use(Checkbox).use(CheckboxGroup) @@ -483,7 +484,7 @@ export default { occupationalType: DataDictionary.queryOccupationalByType[0].id, isInsuredCertiexpiredate:true, //被保人有效止期是否显示 isAppnt: false, // 是否投被同人 - manageComCode: '45', + manageComCode: '', isNewPeopleFlagTipshow: false, } }, @@ -520,7 +521,7 @@ export default { this.expireDate = afterDate.getAfterDateTime(val,2) } }, - mounted() { + async mounted() { let that = this window.appCallBack = this.appCallBack // 2516--除万福卡,投保人、被保险人年收入,默认为0,允许修改 @@ -534,6 +535,8 @@ export default { if (this.$route.query.cardOrderNo) { this.cardOrderNo = this.$route.query.cardOrderNo } + let dataReturn = await riskRules.getAgentInfoFunc(this) + this.manageComCode = dataReturn.manageComCode //根据后台数据来展示 let cardInfoDTO = { orderNo: this.cardOrderNo @@ -1357,10 +1360,10 @@ export default { if (this.insuredInfo.effectiveDateType) { this.insuredInfo.certiexpiredate = '9999-12-31' } - if (this.insuredInfo.isNewPeopleFlag == '' || this.insuredInfo.isNewPeopleFlag == null || this.insuredInfo.isNewPeopleFlag == undefined) { + if (this.manageComCode == '45' && (this.insuredInfo.isNewPeopleFlag == '' || this.insuredInfo.isNewPeopleFlag == null || this.insuredInfo.isNewPeopleFlag == undefined)) { return this.$toast('投保人新市民身份不能为空') } - if(this.insuredInfo.isNewPeopleFlag != '0' && !this.insuredInfo.npType) { + if(this.manageComCode == '45' && this.insuredInfo.isNewPeopleFlag != '0' && !this.insuredInfo.npType) { return this.$toast('投保人新市民类型不能为空') } this.infoUpdate() diff --git a/src/views/ebiz/cardList/information.vue b/src/views/ebiz/cardList/information.vue index 9f3a7d5cb..51c139e23 100644 --- a/src/views/ebiz/cardList/information.vue +++ b/src/views/ebiz/cardList/information.vue @@ -852,7 +852,7 @@ export default { occupationalType: DataDictionary.queryOccupationalByType[0].id, isInsuredCertiexpiredate:true, //被保人有效止期是否显示 trialDTOS:[], //产品详情信息 - manageComCode: '45', + manageComCode: '', isNewPeopleFlagTipshow: false, } }, @@ -991,7 +991,9 @@ export default { } this.userInfo.homeName = getAreaName([{ code: 450000 }, { code: 450100 }, { code: 450101 }]) //家庭地址 }, - mounted() { + async mounted() { + let dataReturn = await riskRules.getAgentInfoFunc(this) + this.manageComCode = dataReturn.manageComCode // 2516--除万福卡,投保人、被保险人年收入,默认为0,允许修改 if (this.itemProductDTOS.productCode != 'GFRS_M0032') { this.userInfo.averageAnnualIncome = '0' @@ -1832,10 +1834,10 @@ export default { // console.log(data, val) }, nextStep() { - if (this.userInfo.isNewPeopleFlag == '' || this.userInfo.isNewPeopleFlag == null || this.userInfo.isNewPeopleFlag == undefined) { + if (this.manageComCode == '45' && (this.userInfo.isNewPeopleFlag == '' || this.userInfo.isNewPeopleFlag == null || this.userInfo.isNewPeopleFlag == undefined)) { return this.$toast('投保人新市民身份不能为空') } - if(this.userInfo.isNewPeopleFlag != '0' && !this.userInfo.npType) { + if(this.manageComCode == '45' && this.userInfo.isNewPeopleFlag != '0' && !this.userInfo.npType) { return this.$toast('投保人新市民类型不能为空') } //表单校验, 成功跳转 @@ -1882,10 +1884,10 @@ export default { if (this.userInfo.relationToInsured == 2 && this.userInfo.sex == this.insuredInfo.sex) { return this.$toast('哦~配偶性别不能相同的哟~') } - if (this.insuredInfo.isNewPeopleFlag == '' || this.insuredInfo.isNewPeopleFlag == null || this.insuredInfo.isNewPeopleFlag == undefined) { + if (this.manageComCode == '45' && (this.insuredInfo.isNewPeopleFlag == '' || this.insuredInfo.isNewPeopleFlag == null || this.insuredInfo.isNewPeopleFlag == undefined)) { return this.$toast('被保人新市民身份不能为空') } - if (this.insuredInfo.isNewPeopleFlag != '0' && !this.insuredInfo.npType) { + if (this.manageComCode == '45' && this.insuredInfo.isNewPeopleFlag != '0' && !this.insuredInfo.npType) { return this.$toast('被保人新市民类型不能为空') }