|
|
@@ -22,10 +22,11 @@
|
|
|
<!-- 展开行 -->
|
|
|
<template #expand="{ row }">
|
|
|
<div class="buttonbar">
|
|
|
- <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].includes(row.signstatus) || (row.signstatus === SignStatus.Signed && cusBank?.canmodifysigninfo === 1)"
|
|
|
- type="primary" size="small" @click="openComponent('sign')">修改</el-button>
|
|
|
+ <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].includes(row.signstatus) || (row.signstatus === SignStatus.Signed && cusBank?.canmodifysigninfo === 1)"
|
|
|
+ type="primary" size="small" @click="beforeShowComponent(row)">修改</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
</app-table>
|
|
|
@@ -35,6 +36,7 @@
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
import { shallowRef, defineAsyncComponent, onMounted } from 'vue'
|
|
|
+import { ElMessageBox } from 'element-plus'
|
|
|
import { useComponent } from '@/hooks/component'
|
|
|
import { useComposeTable } from '@pc/components/base/table'
|
|
|
import { useRequest } from '@/hooks/request'
|
|
|
@@ -92,6 +94,16 @@ const showComponent = ((componentName: string) => {
|
|
|
openComponent(componentName)
|
|
|
})
|
|
|
|
|
|
+const beforeShowComponent = (row: Model.BankAccountSignRsp) => {
|
|
|
+ if (row.cusbankid === 'jdjs') {
|
|
|
+ ElMessageBox.alert('请先发函到结算中心修改信息后再修改,否则将会影响充值、提现。').finally(() => {
|
|
|
+ showComponent('sign')
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ showComponent('sign')
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
const tableColumns = shallowRef<Model.TableColumn[]>([
|
|
|
{ prop: 'accountcode', label: '资金账号' },
|
|
|
{ prop: 'accountname', label: '名称' },
|