【柳州生产问题】渠道判断有误, 柳州只有个险有,864502并且为个险渠道

This commit is contained in:
li.yuetong
2022-03-29 17:52:25 +08:00
parent eb30a234aa
commit e1a4ddc8b5
9 changed files with 30 additions and 13 deletions

View File

@@ -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: '广西壮族自治区'

View File

@@ -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)
}

View File

@@ -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(() => {

View File

@@ -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: '广西壮族自治区'

View File

@@ -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(() => {

View File

@@ -30,7 +30,7 @@
<script>
import { RadioGroup, Radio, Dialog, NoticeBar } from 'vant'
import { saveInformation, getOrderDetail } from '@/api/ebiz/sale/sale'
import riskRules from '@/views/ebiz/common/risk-rules'
import config from '@/config'
// import axios from 'axios'
export default {
@@ -72,7 +72,8 @@ export default {
pdfUrl: '',
src: location.origin + '/pdfjs/web/viewer.html?file=',
tipsPolicyUrl: '',
flagLiuZhou: '' // 当前代理人是否属于柳州代理人的标志,此变量的值为'true'或'false'
flagLiuZhou: '', // 当前代理人是否属于柳州代理人的标志,此变量的值为'true'或'false'
branchTypeVal:'' // 当前代理人渠道
}
},
components: {
@@ -81,10 +82,13 @@ export default {
[Dialog.name]: Dialog,
[NoticeBar.name]: NoticeBar
},
mounted() {
async mounted() {
let that = this
that.timeOut()
document.body.style.backgroundColor = '#fff'
// 当前代理人渠道--个险渠道,中介渠道
let dataReturn = await riskRules.getAgentInfoFunc(this)
this.branchTypeVal = dataReturn.branchTypeVal
},
async created() {
if (!this.isWeixin) {
@@ -220,7 +224,7 @@ export default {
// 截取代理人机构号的前六位,用于去判断是否属于柳州代理人
let str = res.orderDTO.recmdDTO.managerOrg.substr(0, 6)
// 如果属于
if (str === '864502') {
if (str === '864502' && this.branchTypeVal == 'G') {
that.flagLiuZhou = true
} else {
that.flagLiuZhou = false

View File

@@ -614,7 +614,8 @@ export default {
// 筛选按钮的点击事件
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: '广西壮族自治区'

View File

@@ -765,7 +765,8 @@ export default {
window.appCallBack = this.appCallBack
// // document.body.style.backgroundColor = '#F5F5F5'
//获取代理人管理机构 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: '广西壮族自治区'

View File

@@ -184,7 +184,8 @@ export default {
this.queryPayState()
}
//获取代理人管理机构 52贵州 45广西
this.manageComCode = await riskRules.getAgentInfoFunc(this)
let dataReturn = await riskRules.getAgentInfoFunc(this)
this.manageComCode = dataReturn.manageComCode
},
beforeRouteLeave(to, from, next) {
document.body.style.backgroundColor = ''