|
|
@@ -5,13 +5,13 @@
|
|
|
<template #headerLeft>
|
|
|
<template v-if="((hasAQAuth && hasSignContract) || !hasAQAuth) && [AuthStatus.Certified, AuthStatus.Submitted].includes(authStatus) && ![SignStatus.Audit, SignStatus.Signing, SignStatus.Signed].includes(signStatus)">
|
|
|
<el-button type="primary" size="small"
|
|
|
- @click="showComponent('sign')">添加签约账户</el-button>
|
|
|
+ @click="showComponent('sign')">{{ t('banksign.addbanksign') }}</el-button>
|
|
|
</template>
|
|
|
<template v-if="[AuthStatus.Certified, AuthStatus.Submitted].includes(authStatus) && (hasAQAuth && !hasSignContract) ">
|
|
|
- <el-button type="primary" size="small" @click="showComponent('protocol')">协议签署</el-button>
|
|
|
+ <el-button type="primary" size="small" @click="showComponent('protocol')">{{ t('banksign.signagreement') }}</el-button>
|
|
|
</template>
|
|
|
<el-button type="warning" size="small" v-if="authStatus === AuthStatus.Uncertified"
|
|
|
- @click="openComponent('certification-aq')">实名认证</el-button>
|
|
|
+ @click="openComponent('certification-aq')">{{ t('user.authentication.title') }}</el-button>
|
|
|
</template>
|
|
|
<!-- 证件类型 -->
|
|
|
<template #cardtype="{ value }">
|
|
|
@@ -25,10 +25,10 @@
|
|
|
<template #expand="{ row }">
|
|
|
<div class="buttonbar">
|
|
|
<el-button v-if="row.signstatus === SignStatus.Signed && cusBank?.canrelease === 1" type="danger"
|
|
|
- size="small" @click="openComponent('cancel')">解约</el-button>
|
|
|
+ size="small" @click="openComponent('cancel')">{{ t('banksign.cancel') }}</el-button>
|
|
|
<el-button
|
|
|
v-if="[SignStatus.Unsigned, SignStatus.Refuse, SignStatus.Rescinded].includes(row.signstatus) || (row.signstatus === SignStatus.Signed && cusBank?.canmodifysigninfo === 1)"
|
|
|
- type="primary" size="small" @click="beforeShowComponent(row)">修改</el-button>
|
|
|
+ type="primary" size="small" @click="beforeShowComponent(row)">{{ t('operation.modify') }}</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
</app-table>
|
|
|
@@ -47,12 +47,12 @@ import { getSignStatusName, SignStatus } from '@/constants/bank'
|
|
|
import { getCertificateTypeCodeName } from '@/constants/account'
|
|
|
import { queryUserAccount, queryUsereSignRecords } from '@/services/api/account'
|
|
|
import { AuthStatus } from '@/constants/account'
|
|
|
-import { useUserStore } from '@/stores'
|
|
|
+import { useUserStore, i18n } from '@/stores'
|
|
|
import { ElMessage } from 'element-plus'
|
|
|
-import AppTable from '@pc/components/base/table/index.vue'
|
|
|
-import service from '@/services'
|
|
|
import { queryMdUserSwapProtocol } from '@/services/api/swap'
|
|
|
import { getUserId, getMemberUserId } from '@/services/methods/user'
|
|
|
+import AppTable from '@pc/components/base/table/index.vue'
|
|
|
+import service from '@/services'
|
|
|
|
|
|
const componentMap = new Map<string, unknown>([
|
|
|
['cancel', defineAsyncComponent(() => import('./components/cancel/index.vue'))],
|
|
|
@@ -67,6 +67,7 @@ const authStatus = shallowRef(AuthStatus.Certified) // 实名认证状态
|
|
|
const signStatus = shallowRef(SignStatus.Unsigned)
|
|
|
const cusBank = shallowRef<Model.CusBankSignBankRsp>()
|
|
|
const oem = service.getConfig('oem')
|
|
|
+const { t } = i18n.global
|
|
|
|
|
|
const { rowKey, expandKeys, rowClick, selectedRow } = useComposeTable<Model.BankAccountSignRsp>({ rowKey: 'applyexchticket' })
|
|
|
const { loading, dataList, run } = useRequest(queryBankAccountSign, {
|