|
@@ -1,4 +1,5 @@
|
|
|
import { formatMoney } from '@/utils/index'
|
|
|
+import { getFailList } from '@/api/accountCenter/openInfoManage'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -52,6 +53,25 @@ export default {
|
|
|
prop: 'gmtCreate',
|
|
|
showTooltip: true
|
|
|
},
|
|
|
+ {
|
|
|
+ label: '法人授权状态',
|
|
|
+ prop: 'userAtuhSts',
|
|
|
+ showTooltip: true,
|
|
|
+ width: 120
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '提示',
|
|
|
+ showTooltip: true,
|
|
|
+ render: (h, row) => {
|
|
|
+ if (row.customerStatus === '生效') {
|
|
|
+ if (row.userAtuhSts === '待用户授权') {
|
|
|
+ return <div>去授权</div>
|
|
|
+ } else if (row.userAtuhSts === '银行审核中' || row.userAtuhSts === '授权失败') {
|
|
|
+ return <div>联系客户</div>
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
{
|
|
|
label: '操作',
|
|
|
show: true,
|
|
@@ -69,6 +89,20 @@ export default {
|
|
|
power: '',
|
|
|
category: 'edit',
|
|
|
rowPower: ['暂存', '审批退回']
|
|
|
+ },
|
|
|
+ {
|
|
|
+ msg: '去授权',
|
|
|
+ icon: 'iconfont icon-orange icon-a-Group1022',
|
|
|
+ power: '',
|
|
|
+ category: 'auth',
|
|
|
+ rowPower: ['待用户授权']
|
|
|
+ },
|
|
|
+ {
|
|
|
+ msg: '核验失败原因',
|
|
|
+ icon: 'iconfont icon-orange icon-icon-active',
|
|
|
+ power: '',
|
|
|
+ category: 'reason',
|
|
|
+ rowPower: ['开户失败']
|
|
|
}
|
|
|
]
|
|
|
const options = btnList.map(item => {
|
|
@@ -83,9 +117,20 @@ export default {
|
|
|
})
|
|
|
return <div>{ options }</div>
|
|
|
},
|
|
|
- width: 140
|
|
|
+ width: 170
|
|
|
}
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ reasonColumns: [{
|
|
|
+ label: '序号',
|
|
|
+ index: true,
|
|
|
+ width: 200
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '报错原因',
|
|
|
+ prop: 'reason',
|
|
|
+ showTooltip: true
|
|
|
+ }],
|
|
|
+ reasonList: []
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -93,8 +138,14 @@ export default {
|
|
|
return ({ item, row }) => {
|
|
|
const { rowPower } = item
|
|
|
if (rowPower) {
|
|
|
- if (rowPower.includes(row.stage)) {
|
|
|
- return true
|
|
|
+ if (item.category === 'auth') {
|
|
|
+ return row.customerStatus === '生效' && rowPower.includes(row.userAtuhSts)
|
|
|
+ } else if (item.category === 'reason') {
|
|
|
+ return rowPower.includes(row.customerStatus)
|
|
|
+ } else {
|
|
|
+ if (rowPower.includes(row.stage)) {
|
|
|
+ return true
|
|
|
+ }
|
|
|
}
|
|
|
} else {
|
|
|
return true
|
|
@@ -104,13 +155,27 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
handlerOperate(type, row) {
|
|
|
- this.$router.push({
|
|
|
- name: 'OpenInfoManageDetails',
|
|
|
- params: { id: row.id },
|
|
|
- query: {
|
|
|
- type
|
|
|
- }
|
|
|
- })
|
|
|
+ if (type === 'see' || type === 'edit') {
|
|
|
+ this.$router.push({
|
|
|
+ name: 'OpenInfoManageDetails',
|
|
|
+ params: { id: row.id },
|
|
|
+ query: {
|
|
|
+ type
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else if (type === 'auth') {
|
|
|
+ // 授权逻辑
|
|
|
+ } else if (type === 'reason') {
|
|
|
+ // 核验失败原因
|
|
|
+ this.$refs.failreasonDialog.show = true
|
|
|
+ getFailList({ id: row.id }).then((data) => {
|
|
|
+ this.reasonList = data.data.map(item => {
|
|
|
+ return {
|
|
|
+ reason: item
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|