diff --git a/src/components/ebiz/customer/formBlock.vue b/src/components/ebiz/customer/formBlock.vue index 2f7dd1e5d..f35678c8a 100644 --- a/src/components/ebiz/customer/formBlock.vue +++ b/src/components/ebiz/customer/formBlock.vue @@ -306,7 +306,8 @@ export default { }, async mounted() { //获取代理人管理机构 52贵州 45广西 - this.manageComCode = await riskRules.getAgentInfoFunc(this) + let dataReturn = await riskRules.getAgentInfoFunc(this) + this.manageComCode = dataReturn.manageComCode if(this.manageComCode == '45'){ areaLists.province_list = { 450000: '广西壮族自治区' diff --git a/src/views/ebiz/common/risk-rules.js b/src/views/ebiz/common/risk-rules.js index 578438801..11e1076b3 100644 --- a/src/views/ebiz/common/risk-rules.js +++ b/src/views/ebiz/common/risk-rules.js @@ -170,12 +170,18 @@ export default { }, //查看代理人信息 getAgentInfoFunc(that) { - let flag = '' + let flag = {} return new Promise((resolve, reject) => { getAgentInfo({}).then( res => { if (res.result == 0) { - flag = res.manageComCode.substring(2, 4) + flag.manageComCode = res.manageComCode.substring(2, 4) + // branchType N1、1代表个险渠道 和 N5、5 代表中介渠道,N代表内勤 + if (res.branchType == 'N1' || res.branchType == '1') { + flag.branchTypeVal = 'G' + } else if (res.branchType == 'N5' || res.branchType == '5') { + flag.branchTypeVal = 'Z' + } } else { that.$toast(res.resultMessage) } diff --git a/src/views/ebiz/insureAgain/InsuranceInformation.vue b/src/views/ebiz/insureAgain/InsuranceInformation.vue index 87eb98b6b..306822a76 100644 --- a/src/views/ebiz/insureAgain/InsuranceInformation.vue +++ b/src/views/ebiz/insureAgain/InsuranceInformation.vue @@ -173,7 +173,8 @@ export default { that.appntSign = JSON.parse(window.localStorage.getItem('sign-appnt')) } //获取代理人管理机构 52贵州 45广西 - // this.manageComCode = await riskRules.getAgentInfoFunc(this) + // let dataReturn = await riskRules.getAgentInfoFunc(this) + // this.manageComCode = dataReturn.manageComCode }, created() { setTimeout(() => { diff --git a/src/views/ebiz/insureAgain/InsureInformation.vue b/src/views/ebiz/insureAgain/InsureInformation.vue index f18788588..b46c9b420 100644 --- a/src/views/ebiz/insureAgain/InsureInformation.vue +++ b/src/views/ebiz/insureAgain/InsureInformation.vue @@ -470,7 +470,8 @@ export default { }, 100) window.appCallBack = this.appCallBack //获取代理人管理机构 52贵州 45广西 - this.manageComCode = await riskRules.getAgentInfoFunc(this) + let dataReturn = await riskRules.getAgentInfoFunc(this) + this.manageComCode = dataReturn.manageComCode if(this.manageComCode == '45'){ areaLists.province_list = { 450000: '广西壮族自治区' diff --git a/src/views/ebiz/sale/InsuranceInformation.vue b/src/views/ebiz/sale/InsuranceInformation.vue index 167fa49f8..3c863a321 100644 --- a/src/views/ebiz/sale/InsuranceInformation.vue +++ b/src/views/ebiz/sale/InsuranceInformation.vue @@ -174,7 +174,8 @@ export default { that.appntSign = JSON.parse(window.localStorage.getItem('sign-appnt')) } //获取代理人管理机构 52贵州 45广西 - // this.manageComCode = await riskRules.getAgentInfoFunc(this) + // let dataReturn = await riskRules.getAgentInfoFunc(this) + // this.manageComCode = dataReturn.manageComCode }, created() { setTimeout(() => { diff --git a/src/views/ebiz/sale/InsuranceTip.vue b/src/views/ebiz/sale/InsuranceTip.vue index fa2acaa9e..27eb8e72b 100644 --- a/src/views/ebiz/sale/InsuranceTip.vue +++ b/src/views/ebiz/sale/InsuranceTip.vue @@ -30,7 +30,7 @@