|
|
@@ -39,6 +39,11 @@ import { getTradeStatusName } from '@/constants/order'
|
|
|
import { AuthStatus } from '@/constants/account'
|
|
|
import { queryBankAccountSign } from '@/services/api/bank'
|
|
|
import AppTable from '@pc/components/base/table/index.vue'
|
|
|
+import { useRequest } from '@/hooks/request'
|
|
|
+import service from '@/services'
|
|
|
+import { queryMdUserSwapProtocol } from '@/services/api/swap'
|
|
|
+import { getUserId } from '@/services/methods/user'
|
|
|
+const oem = service.getConfig('oem')
|
|
|
|
|
|
const componentMap = new Map<string, unknown>([
|
|
|
['deposit', defineAsyncComponent(() => import('./deposit/index.vue'))], // 入金
|
|
|
@@ -50,6 +55,18 @@ const accountStore = useAccountStore()
|
|
|
const { selectedRow, rowKey, expandKeys, rowClick } = useComposeTable<Model.TaAccountsRsp>({ rowKey: 'accountid' })
|
|
|
const { componentRef, componentId, openComponent, closeComponent } = useComponent()
|
|
|
|
|
|
+/// 查询用户掉期协议签署表
|
|
|
+const { dataList: protocolList} = useRequest(queryMdUserSwapProtocol, {
|
|
|
+ params: {
|
|
|
+ userId: getUserId()
|
|
|
+ }
|
|
|
+})
|
|
|
+
|
|
|
+/// 判断是否能签约
|
|
|
+const canBankSign = computed(() => {
|
|
|
+ return protocolList.value.some(e => { return e.protocolstatus === 4 })
|
|
|
+})
|
|
|
+
|
|
|
const authStatus = computed(() => userStore.userAccount.hasauth) // 实名认证状态
|
|
|
|
|
|
const tableColumns = shallowRef<Model.TableColumn[]>([
|
|
|
@@ -70,6 +87,11 @@ const tableColumns = shallowRef<Model.TableColumn[]>([
|
|
|
|
|
|
/// 进行出入金操作判断
|
|
|
const doInOutMoney = (code: string) => {
|
|
|
+ /// 天津麦顿需要进行合同签署才能进行相关操作
|
|
|
+ if (oem === 'tjmd' && !canBankSign.value) {
|
|
|
+ ElMessage({ showClose: true, message: '请前往手机App进行合同签署操作!', })
|
|
|
+ return
|
|
|
+ }
|
|
|
if (authStatus.value === AuthStatus.Certified) {
|
|
|
queryBankAccountSign().then((res) => {
|
|
|
const { signstatus } = res.data[0] ?? {}
|