|
@@ -66,7 +66,7 @@ const { router, getQueryString, setGlobalUrlParams } = useNavigation()
|
|
|
const futuresStore = useFuturesStore()
|
|
const futuresStore = useFuturesStore()
|
|
|
const userStore = useUserStore()
|
|
const userStore = useUserStore()
|
|
|
const subscribe = quoteSocket.createSubscribe()
|
|
const subscribe = quoteSocket.createSubscribe()
|
|
|
-const canBankSign = shallowRef(false)
|
|
|
|
|
|
|
+const canProtocolSign = shallowRef(false)
|
|
|
const oem = service.getConfig('oem')
|
|
const oem = service.getConfig('oem')
|
|
|
const title = getQueryString('title')
|
|
const title = getQueryString('title')
|
|
|
const titleName = computed(() => title ? decodeURIComponent(title) : props.marketSection?.displayname ?? '掉期贸易')
|
|
const titleName = computed(() => title ? decodeURIComponent(title) : props.marketSection?.displayname ?? '掉期贸易')
|
|
@@ -126,7 +126,7 @@ const columns: Model.TableColumn[] = [
|
|
|
const rowClick = (row: Model.QuoteGoodsListRsp) => {
|
|
const rowClick = (row: Model.QuoteGoodsListRsp) => {
|
|
|
/// 这里要去判断是否已经实名认证
|
|
/// 这里要去判断是否已经实名认证
|
|
|
if (userStore.hasAuth) {
|
|
if (userStore.hasAuth) {
|
|
|
- if (userStore.userInfo.usertype != 2 && !canBankSign.value) {
|
|
|
|
|
|
|
+ if (userStore.userInfo.usertype != 2 && !canProtocolSign.value) {
|
|
|
showToast('请先通过“我的”-“合同签署”功能菜单签署相应的合同!')
|
|
showToast('请先通过“我的”-“合同签署”功能菜单签署相应的合同!')
|
|
|
} else {
|
|
} else {
|
|
|
setGlobalUrlParams(row)
|
|
setGlobalUrlParams(row)
|
|
@@ -145,6 +145,8 @@ const { run: initMdUserSwapProtocol } = useRequest(requestInitMdUserSwapProtocol
|
|
|
memberUserId: getMemberUserId()
|
|
memberUserId: getMemberUserId()
|
|
|
},
|
|
},
|
|
|
onSuccess: () => {
|
|
onSuccess: () => {
|
|
|
|
|
+ /// 可以交易
|
|
|
|
|
+ canProtocolSign.value = true
|
|
|
/// 重新请求
|
|
/// 重新请求
|
|
|
showToast('合同已提交签署请求,请耐心等待审核通过!')
|
|
showToast('合同已提交签署请求,请耐心等待审核通过!')
|
|
|
}
|
|
}
|
|
@@ -164,12 +166,12 @@ onActivated(() => {
|
|
|
}
|
|
}
|
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
|
if (oem === 'tjmd') { // 天津麦顿
|
|
if (oem === 'tjmd') { // 天津麦顿
|
|
|
- canBankSign.value = res.data.some(e => e.protocolstatus === 4)
|
|
|
|
|
|
|
+ canProtocolSign.value = res.data.some(e => e.protocolstatus === 4)
|
|
|
} else {
|
|
} else {
|
|
|
if (res.data.length === 0) {
|
|
if (res.data.length === 0) {
|
|
|
initMdUserSwapProtocol()
|
|
initMdUserSwapProtocol()
|
|
|
} else {
|
|
} else {
|
|
|
- canBankSign.value = res.data.some(e => e.protocolstatus === 4)
|
|
|
|
|
|
|
+ canProtocolSign.value = res.data.some(e => e.protocolstatus === 4)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|