|
@@ -13,7 +13,7 @@
|
|
|
<div>
|
|
|
<el-select v-model="search.accountStatus" placeholder="请选择账户状态" clearable>
|
|
|
<el-option
|
|
|
- v-for="item in constant.memberAccountStatus"
|
|
|
+ v-for="item in constant.bocomVipAccountStatus"
|
|
|
:key="item.code"
|
|
|
:label="item.name"
|
|
|
:value="item.code"
|
|
@@ -110,19 +110,26 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
label: '账户状态',
|
|
|
+ prop: 'accountStatusReal',
|
|
|
+ showTooltip: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '授权代理人授权状态',
|
|
|
+ width: 150,
|
|
|
showTooltip: true,
|
|
|
render: (h, row) => {
|
|
|
return (
|
|
|
- <div>{ row.accountStatus === 1 ? '生效' : '失效' }</div>
|
|
|
+ <div>{ this.getAuthorizationDesc(row.authorizationStatus) }</div>
|
|
|
)
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- label: '授权状态',
|
|
|
+ label: '法人授权状态',
|
|
|
+ width: 120,
|
|
|
showTooltip: true,
|
|
|
render: (h, row) => {
|
|
|
return (
|
|
|
- <div>{ this.getAuthorizationDesc(row.authorizationStatus) }</div>
|
|
|
+ <div>{ this.getlegalDesc(row.legalAuthorizationStatus) }</div>
|
|
|
)
|
|
|
}
|
|
|
},
|
|
@@ -190,6 +197,7 @@ export default {
|
|
|
prop: 'currency',
|
|
|
showTooltip: true
|
|
|
},
|
|
|
+
|
|
|
{
|
|
|
label: '通知推送对象',
|
|
|
width: 120,
|
|
@@ -200,6 +208,23 @@ export default {
|
|
|
)
|
|
|
}
|
|
|
},
|
|
|
+ {
|
|
|
+ label: '提示',
|
|
|
+ render: (h, row) => {
|
|
|
+ if (row.accountStatusReal === '生效') {
|
|
|
+ if (row.authorizationStatus === 1 && row.legalAuthorizationStatus === 1) {
|
|
|
+ return <div>请联系客服</div>
|
|
|
+ }
|
|
|
+ if (row.authorizationStatus === 2 && row.legalAuthorizationStatus === 2) {
|
|
|
+ return <div>请联系客服</div>
|
|
|
+ }
|
|
|
+ if (row.authorizationStatus === 3 && row.legalAuthorizationStatus === 3) {
|
|
|
+ return <div>请联系客服</div>
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return <div></div>
|
|
|
+ }
|
|
|
+ },
|
|
|
{
|
|
|
label: '创建日期',
|
|
|
prop: 'gmtCreate',
|
|
@@ -320,16 +345,30 @@ export default {
|
|
|
...mapGetters(['constant']),
|
|
|
tablePower() {
|
|
|
return ({ item, tab, row }) => {
|
|
|
- const { tabPower, rowPower } = item
|
|
|
+ const { tabPower, rowPower, category } = item
|
|
|
if (rowPower) {
|
|
|
if (tabPower.includes(tab) && rowPower.includes(row.statusName)) {
|
|
|
return true
|
|
|
}
|
|
|
|
|
|
- if (row.authorizationStatus !== null &&
|
|
|
- rowPower.includes(row.authorizationStatus)) {
|
|
|
- return true
|
|
|
- } else {
|
|
|
+ // if (row.authorizationStatus !== null &&
|
|
|
+ // rowPower.includes(row.authorizationStatus)) {
|
|
|
+ // return true
|
|
|
+ // } else {
|
|
|
+ // return false
|
|
|
+ // }
|
|
|
+ if (category === 'seeAuth') {
|
|
|
+ if (row.accountStatusReal === '生效') {
|
|
|
+ if (row.authorizationStatus === 0 && row.legalAuthorizationStatus === 0) {
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ if (row.authorizationStatus === 0 && row.legalAuthorizationStatus === 4) {
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ if (row.authorizationStatus === 4 && row.legalAuthorizationStatus === 0) {
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ }
|
|
|
return false
|
|
|
}
|
|
|
} else {
|
|
@@ -363,6 +402,7 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
this.fetchData('all')
|
|
|
+ this.$store.dispatch('getConstant', ['bocomVipAccountStatus'])
|
|
|
},
|
|
|
methods: {
|
|
|
async fetchData(tab) {
|
|
@@ -599,6 +639,17 @@ export default {
|
|
|
return noticeMap[status] || ''
|
|
|
}
|
|
|
return ''
|
|
|
+ },
|
|
|
+ // 法人授权状态
|
|
|
+ getlegalDesc(status) {
|
|
|
+ const map = {
|
|
|
+ 0: '待用户授权',
|
|
|
+ 1: '银行审核中',
|
|
|
+ 2: '授权失败(用户拒绝)',
|
|
|
+ 3: '授权失败(银行拒绝)',
|
|
|
+ 4: '授权成功'
|
|
|
+ }
|
|
|
+ return map[status] || ''
|
|
|
}
|
|
|
}
|
|
|
}
|