|
|
@@ -4,8 +4,8 @@
|
|
|
:expand-row-keys="expandKeys" @row-click="rowClick">
|
|
|
<template #headerLeft>
|
|
|
<el-button type="primary"
|
|
|
- v-if="authStatus === AuthStatus.Certified && ![SignStatus.Audit, SignStatus.Signed].includes(signStatus)"
|
|
|
- @click="openComponent('sign')">添加签约账户</el-button>
|
|
|
+ v-if="[AuthStatus.Certified, AuthStatus.Submitted].includes(authStatus) && ![SignStatus.Audit, SignStatus.Signed].includes(signStatus)"
|
|
|
+ @click="showComponent('sign')">添加签约账户</el-button>
|
|
|
<!-- <el-button type="warning" v-if="authStatus === AuthStatus.Uncertified"
|
|
|
@click="openComponent('certification')">实名认证</el-button> -->
|
|
|
<el-button type="warning" v-if="authStatus === AuthStatus.Uncertified"
|
|
|
@@ -44,6 +44,7 @@ import { getSignStatusName, SignStatus } from '@/constants/bank'
|
|
|
import { getCertificateTypeCodeName } from '@/constants/account'
|
|
|
import { queryUserAccount } from '@/services/api/account'
|
|
|
import { AuthStatus } from '@/constants/account'
|
|
|
+import { ElMessage } from 'element-plus'
|
|
|
import AppTable from '@pc/components/base/table/index.vue'
|
|
|
|
|
|
const componentMap = new Map<string, unknown>([
|
|
|
@@ -81,6 +82,15 @@ const { componentRef, componentId, openComponent, closeComponent } = useComponen
|
|
|
run()
|
|
|
})
|
|
|
|
|
|
+const showComponent = ((componentName: string) => {
|
|
|
+ /// 认证请求中 不能操作
|
|
|
+ if (authStatus.value === AuthStatus.Submitted) {
|
|
|
+ ElMessage.error('实名认证正在审核中,暂不能进行签约请求操作!')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ openComponent(componentName)
|
|
|
+})
|
|
|
+
|
|
|
const tableColumns = shallowRef<Model.TableColumn[]>([
|
|
|
{ prop: 'accountcode', label: '资金账号' },
|
|
|
{ prop: 'accountname', label: '名称' },
|