|
|
@@ -1,12 +1,15 @@
|
|
|
<!-- 账号管理-资金账户管理-银行签约信息-解约 -->
|
|
|
<template>
|
|
|
- <app-drawer :title="t('account.fundacct.sign.cancel.title')" width="900" v-model:show="show" :refresh="refresh" :loading="loading">
|
|
|
- <app-table-details :title="t('common.baseinfo')" :data="formData" :label-width="200" :cell-props="detailProps1" :column="2" />
|
|
|
- <app-table-details :title="t('common.extendinfo')" :data="formData.extend" :label-width="200" :cell-props="detailProps2"
|
|
|
- :column="2" v-if="expandableList.length" />
|
|
|
+ <app-drawer :title="t('account.fundacct.sign.cancel.title')" width="900" v-model:show="show" :refresh="refresh"
|
|
|
+ :loading="loading">
|
|
|
+ <app-table-details :title="t('common.baseinfo')" :data="formData" :label-width="200" :cell-props="detailProps1"
|
|
|
+ :column="2" />
|
|
|
+ <app-table-details :title="t('common.extendinfo')" :data="formData.extend" :label-width="200"
|
|
|
+ :cell-props="detailProps2" :column="2" v-if="expandableList.length" />
|
|
|
<template #footer>
|
|
|
<el-button @click="onCancel(false)">{{ t('operation.close') }}</el-button>
|
|
|
- <el-button type="primary" @click="onSubmit(1)" v-if="selectedItem.canBindCard === 1">{{ t('account.fundacct.sign.cancel.broker') }}</el-button>
|
|
|
+ <el-button type="primary" @click="onSubmit(1)" v-if="selectedItem.canBindCard === 1">{{
|
|
|
+ t('account.fundacct.sign.cancel.broker') }}</el-button>
|
|
|
<el-button type="primary" @click="onSubmit(2)">{{ t('account.fundacct.sign.cancel.unbind') }}</el-button>
|
|
|
</template>
|
|
|
</app-drawer>
|
|
|
@@ -15,6 +18,7 @@
|
|
|
<script lang="ts" setup>
|
|
|
import { shallowRef, reactive, PropType, toRaw, computed } from 'vue'
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
|
|
+import { useEnum } from '@/hooks/enum'
|
|
|
import { decryptAES } from '@/services/crypto'
|
|
|
import { useRequest } from '@/hooks/request'
|
|
|
import { getSignBankById, dealAccountSign } from '@/services/api/account'
|
|
|
@@ -31,6 +35,8 @@ const props = defineProps({
|
|
|
}
|
|
|
})
|
|
|
|
|
|
+const certificatetypeEnum = useEnum('certificatetype') // 证件类型
|
|
|
+
|
|
|
const { global: { t } } = i18n
|
|
|
const show = shallowRef(true)
|
|
|
const refresh = shallowRef(false)
|
|
|
@@ -81,7 +87,7 @@ const { dataList: expandableList, run: getExpandableList } = useRequest(queryBoo
|
|
|
|
|
|
const detailProps1: CellProp[] = [
|
|
|
{ prop: 'accounttype', label: 'account.fundacct.sign.cancel.accounttype', formatValue: (val) => val === 1 ? 'account.fundacct.sign.cancel.person' : 'account.fundacct.sign.cancel.companny' },
|
|
|
- { prop: 'certtype', label: 'account.fundacct.sign.cancel.certtype' },
|
|
|
+ { prop: 'certtype', label: 'account.fundacct.sign.cancel.certtype', formatValue: (val) => certificatetypeEnum.getEnumTypeName(val) },
|
|
|
{ prop: 'cusbankid', label: 'account.fundacct.sign.cancel.cusbankid', formatValue: () => props.selectedItem.cusBankName },
|
|
|
{ prop: 'certid', label: 'account.fundacct.sign.cancel.certid' },
|
|
|
{ prop: 'exbankname', label: 'account.fundacct.sign.cancel.exbankname' },
|