|
|
@@ -22,9 +22,10 @@
|
|
|
<!-- 展开行 -->
|
|
|
<template #expand="{ row }">
|
|
|
<div class="buttonbar">
|
|
|
- <el-button v-if="row.signstatus === SignStatus.Signed" type="danger" size="small"
|
|
|
+ <el-button v-if="row.signstatus === SignStatus.Signed && cusBank.canrelease === 1" type="danger" size="small"
|
|
|
@click="openComponent('cancel')">解约</el-button>
|
|
|
- <el-button v-if="[SignStatus.Unsigned, SignStatus.Refuse, SignStatus.Signed].includes(row.signstatus)"
|
|
|
+ <el-button v-if="[SignStatus.Unsigned, SignStatus.Refuse, SignStatus.Signed].includes(row.signstatus) &&
|
|
|
+ cusBank.canmodifysigninfo === 1"
|
|
|
type="primary" size="small" @click="openComponent('sign')">修改</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -34,11 +35,11 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
-import { shallowRef, defineAsyncComponent, onMounted } from 'vue'
|
|
|
+import { ref, shallowRef, defineAsyncComponent, onMounted } from 'vue'
|
|
|
import { useComponent } from '@/hooks/component'
|
|
|
import { useComposeTable } from '@pc/components/base/table'
|
|
|
import { useRequest } from '@/hooks/request'
|
|
|
-import { queryBankAccountSign } from '@/services/api/bank'
|
|
|
+import { queryBankAccountSign, queryCusBankSignBank } from '@/services/api/bank'
|
|
|
import { getSignStatusName, SignStatus } from '@/constants/bank'
|
|
|
import { getCertificateTypeCodeName } from '@/constants/account'
|
|
|
import { queryUserAccount } from '@/services/api/account'
|
|
|
@@ -54,6 +55,7 @@ const componentMap = new Map<string, unknown>([
|
|
|
|
|
|
const authStatus = shallowRef(AuthStatus.Certified) // 实名认证状态
|
|
|
const signStatus = shallowRef(SignStatus.Unsigned)
|
|
|
+const cusBank = ref<Model.CusBankSignBankRsp>({})
|
|
|
|
|
|
const { rowKey, expandKeys, rowClick, selectedRow } = useComposeTable<Model.BankAccountSignRsp>({ rowKey: 'applyexchticket' })
|
|
|
const { loading, dataList, run } = useRequest(queryBankAccountSign, {
|
|
|
@@ -65,6 +67,16 @@ const { loading, dataList, run } = useRequest(queryBankAccountSign, {
|
|
|
}
|
|
|
})
|
|
|
|
|
|
+/// 查询托管银行信息
|
|
|
+useRequest(queryCusBankSignBank, {
|
|
|
+ onSuccess: (res) => {
|
|
|
+ /// 签约状态
|
|
|
+ if (res.data.length != 0) {
|
|
|
+ cusBank.value = res.data[0]
|
|
|
+ }
|
|
|
+ }
|
|
|
+})
|
|
|
+
|
|
|
const { componentRef, componentId, openComponent, closeComponent } = useComponent(() => {
|
|
|
run()
|
|
|
})
|