From d1a1cd197693fd766b24b1b0310bb074ab39ea58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8?= Date: Mon, 11 May 2026 15:52:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=AC=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modules/capital/rechangeChanl.ts | 10 + src/views/capital/rechange/index.vue | 605 +++++++++++++-------- src/views/capital/rechange/options.ts | 17 +- src/views/capital/rechangeChanl/index.vue | 5 + src/views/capital/rechangeChanl/options.ts | 14 + src/views/profile/business/index.vue | 9 +- src/views/profile/business/options.ts | 2 +- 7 files changed, 435 insertions(+), 227 deletions(-) diff --git a/src/api/modules/capital/rechangeChanl.ts b/src/api/modules/capital/rechangeChanl.ts index 63189d4..196842b 100644 --- a/src/api/modules/capital/rechangeChanl.ts +++ b/src/api/modules/capital/rechangeChanl.ts @@ -16,3 +16,13 @@ export const editChannel = (params: any) => { export const delChannel = (params: any) => { return request.post('/channel/delChannel', { ...params }) } + +// 获取用户充值渠道列表 +export const getRechargeChannelList = () => { + return request.get('/user/regchargeChannel') +} + +// 用户充值 +export const rechargeApi = (params: any) => { + return request.post('/user/recharge', { ...params }) +} diff --git a/src/views/capital/rechange/index.vue b/src/views/capital/rechange/index.vue index 5b58859..aed5119 100644 --- a/src/views/capital/rechange/index.vue +++ b/src/views/capital/rechange/index.vue @@ -3,7 +3,7 @@
存款
- + diff --git a/src/views/capital/rechange/options.ts b/src/views/capital/rechange/options.ts index bc51d7b..2cd2b6b 100644 --- a/src/views/capital/rechange/options.ts +++ b/src/views/capital/rechange/options.ts @@ -1,12 +1,11 @@ -// 存款列表表格列配置:当前页面仍然保留列表 + 行内操作按钮的结构。 +// 存款列表表格列配置 export const rechangeTableColumns = [ - { prop: 'depositChannel', label: '存款渠道', align: 'center' as const }, - { prop: 'channelName', label: '渠道名称', align: 'center' as const }, - { prop: 'supportedCurrency', label: '支持货币', align: 'center' as const }, - { prop: 'processingTime', label: '预计处理时间', align: 'center' as const }, - { prop: 'singleAmount', label: '单笔存款金额', align: 'center' as const }, + { prop: 'name', label: '渠道名称', align: 'center' as const }, + { + prop: 'currency.symbol', + label: '支持货币', + align: 'center' as const + }, + { prop: 'channel_fee', label: '渠道费用', align: 'center' as const }, { label: '操作', slotName: 'action', align: 'center' as const, width: 120 }, ] - -// 存款弹窗快捷金额:点击后直接回填到金额输入框。 -export const rechangeQuickAmounts = ['100.00', '500.00', '1000.00', '2000.00', '5000.00'] diff --git a/src/views/capital/rechangeChanl/index.vue b/src/views/capital/rechangeChanl/index.vue index c84b47c..33ffdbc 100644 --- a/src/views/capital/rechangeChanl/index.vue +++ b/src/views/capital/rechangeChanl/index.vue @@ -92,7 +92,9 @@ const formData = ref({ beneficiary_name: '', beneficiary_bank_name: '', swift_bic_code: '', + beneficiary_bank_account: '', beneficiary_bank_address: '', + address: '', channel_code: '', status: 1, }) @@ -128,7 +130,9 @@ const resetFormData = () => { beneficiary_name: '', beneficiary_bank_name: '', swift_bic_code: '', + bank_account: '', beneficiary_bank_address: '', + address: '', channel_code: '', } } @@ -195,3 +199,4 @@ onMounted(() => { } } + diff --git a/src/views/capital/rechangeChanl/options.ts b/src/views/capital/rechangeChanl/options.ts index 505d1e2..017288a 100644 --- a/src/views/capital/rechangeChanl/options.ts +++ b/src/views/capital/rechangeChanl/options.ts @@ -52,12 +52,24 @@ export const formItemsData = [ type: 'input', placeholder: '请输入银行识别代码', }, + { + label: '银行账号', + prop: 'beneficiary_bank_account', + type: 'input', + placeholder: '请输入银行账号', + }, { label: '银行地址', prop: 'beneficiary_bank_address', type: 'input', placeholder: '请输入银行地址', }, + { + label: 'U钱包收款地址', + prop: 'address', + type: 'input', + placeholder: '请输入U钱包收款地址', + }, { label: '渠道编码', prop: 'channel_code', type: 'input', placeholder: '请输入渠道编码' }, { label: '状态', prop: 'status', type: 'radio' }, ] @@ -73,7 +85,9 @@ export const formRulesData = { beneficiary_name: [{ required: true, message: '请输入账户持有人姓名', trigger: ['change'] }], beneficiary_bank_name: [{ required: true, message: '请输入银行名称', trigger: ['change'] }], swift_bic_code: [{ required: true, message: '请输入银行识别代码', trigger: ['change'] }], + beneficiary_bank_account: [{ required: true, message: '请输入银行账号', trigger: ['change'] }], beneficiary_bank_address: [{ required: true, message: '请输入银行地址', trigger: ['change'] }], + address: [{ required: true, message: '请输入U钱包收款地址', trigger: ['change'] }], channel_code: [{ required: true, message: '请输入渠道编码', trigger: ['change'] }], } diff --git a/src/views/profile/business/index.vue b/src/views/profile/business/index.vue index 0d83447..2457b70 100644 --- a/src/views/profile/business/index.vue +++ b/src/views/profile/business/index.vue @@ -190,7 +190,14 @@ const marketForm = ref({ }) const marketFormRules = rules(marketForm.value) const marketFormRef = ref() -const marketFormItemOptions = ref(marketFormItem) +const marketFormItemOptions = computed(() => { + return marketFormItem.map((item) => { + if (item.prop === 'parentAccountName' || item.prop === 'level') { + return { ...item, disabled: dialogType.value === 'edit' } + } + return item + }) +}) interface SelectOption { label: string value: string | number diff --git a/src/views/profile/business/options.ts b/src/views/profile/business/options.ts index a25e2c7..69f7427 100644 --- a/src/views/profile/business/options.ts +++ b/src/views/profile/business/options.ts @@ -58,7 +58,7 @@ export const marketFormItem = [ //级别 { label: '级别', prop: 'level', type: 'select' as const, placeholder: '请选择级别' }, //所属上级 - { label: '所属上级', prop: 'parentAccountName', type: 'select' as const, placeholder: '请选择所属上级账户名称', }, + { label: '所属上级', prop: 'parentAccountName', type: 'select' as const, placeholder: '请选择所属上级账户名称' }, // 风控模板 { label: '风控模板', prop: 'riskControlTemplate', type: 'select' as const, placeholder: '请选择风控模板' }, //头寸