|
@@ -42,7 +42,8 @@ import AppTable from '@pc/components/base/table/index.vue'
|
|
|
import { useRequest } from '@/hooks/request'
|
|
import { useRequest } from '@/hooks/request'
|
|
|
import service from '@/services'
|
|
import service from '@/services'
|
|
|
import { queryMdUserSwapProtocol } from '@/services/api/swap'
|
|
import { queryMdUserSwapProtocol } from '@/services/api/swap'
|
|
|
-import { getUserId } from '@/services/methods/user'
|
|
|
|
|
|
|
+import { getMemberUserId, getUserId } from '@/services/methods/user'
|
|
|
|
|
+import { queryUsereSignRecords } from '@/services/api/account'
|
|
|
const oem = service.getConfig('oem')
|
|
const oem = service.getConfig('oem')
|
|
|
|
|
|
|
|
const componentMap = new Map<string, unknown>([
|
|
const componentMap = new Map<string, unknown>([
|
|
@@ -62,13 +63,28 @@ const { dataList: protocolList} = useRequest(queryMdUserSwapProtocol, {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
|
|
+/// 查询用户掉期协议签署表
|
|
|
|
|
+const { dataList: records} = useRequest(queryUsereSignRecords, {
|
|
|
|
|
+ params: {
|
|
|
|
|
+ userId: getUserId(),
|
|
|
|
|
+ memberUserId: getMemberUserId(),
|
|
|
|
|
+ templatetype: 2
|
|
|
|
|
+ }
|
|
|
|
|
+})
|
|
|
|
|
+
|
|
|
/// 判断是否能签约
|
|
/// 判断是否能签约
|
|
|
const canBankSign = computed(() => {
|
|
const canBankSign = computed(() => {
|
|
|
/// 机构不需要签合同
|
|
/// 机构不需要签合同
|
|
|
if (userStore.userInfo.usertype === 2) {
|
|
if (userStore.userInfo.usertype === 2) {
|
|
|
return true
|
|
return true
|
|
|
}
|
|
}
|
|
|
- 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 })
|
|
|
|
|
+ } else {
|
|
|
|
|
+ return true
|
|
|
|
|
+ }
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
const authStatus = computed(() => userStore.userAccount.hasauth) // 实名认证状态
|
|
const authStatus = computed(() => userStore.userAccount.hasauth) // 实名认证状态
|
|
@@ -91,8 +107,8 @@ const tableColumns = shallowRef<Model.TableColumn[]>([
|
|
|
|
|
|
|
|
/// 进行出入金操作判断
|
|
/// 进行出入金操作判断
|
|
|
const doInOutMoney = (code: string) => {
|
|
const doInOutMoney = (code: string) => {
|
|
|
- /// 天津麦顿需要进行合同签署才能进行相关操作
|
|
|
|
|
- if ( oem === 'tjmd' && !canBankSign.value) {
|
|
|
|
|
|
|
+ /// 进行合同签署才能进行相关操作
|
|
|
|
|
+ if (!canBankSign.value) {
|
|
|
ElMessage({ showClose: true, message: '请前往手机App进行合同签署操作!', })
|
|
ElMessage({ showClose: true, message: '请前往手机App进行合同签署操作!', })
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|