|
|
@@ -55,7 +55,7 @@ import { useRequest } from '@/hooks/request'
|
|
|
import { queryBankAccountSign, queryCusBankSignBank } from '@/services/api/bank'
|
|
|
import { getSignStatusName, SignStatus } from '@/constants/bank'
|
|
|
import { getCertificateTypeCodeName } from '@/constants/account'
|
|
|
-import { queryUserAccount } from '@/services/api/account'
|
|
|
+import { queryUserAccount, queryUsereSignRecords } from '@/services/api/account'
|
|
|
import { AuthStatus } from '@/constants/account'
|
|
|
import { useUserStore } from '@/stores'
|
|
|
import { ElMessage } from 'element-plus'
|
|
|
@@ -95,9 +95,21 @@ const { dataList: protocolList} = useRequest(queryMdUserSwapProtocol, {
|
|
|
}
|
|
|
})
|
|
|
|
|
|
+/// 查询爱签签约协议信息
|
|
|
+const { dataList: records} = useRequest(queryUsereSignRecords, {
|
|
|
+ params: {
|
|
|
+ userId: getUserId()
|
|
|
+ }
|
|
|
+})
|
|
|
+
|
|
|
/// 判断是否能签约
|
|
|
const canBankSign = computed(() => {
|
|
|
- return protocolList.value.some(e => { return e.protocolstatus === 4 })
|
|
|
+ if (oem === 'tjmd') {
|
|
|
+ return protocolList.value.some(e => { return e.protocolstatus === 4 })
|
|
|
+ } else if (oem === 'zrwyt') {
|
|
|
+ return records.value.some(e => { return e.recordstatus === 3 })
|
|
|
+ }
|
|
|
+ return true
|
|
|
})
|
|
|
|
|
|
/// 查询托管银行信息
|