This commit is contained in:
parent
6d3a6f4358
commit
7cb2e161f7
|
|
@ -6,6 +6,6 @@ export const rechangeTableColumns = [
|
||||||
label: '支持货币',
|
label: '支持货币',
|
||||||
align: 'center' as const
|
align: 'center' as const
|
||||||
},
|
},
|
||||||
{ prop: 'channel_fee', label: '渠道费用', align: 'center' as const , isNumber: true },
|
{ prop: 'channel_fee', label: '渠道费用', align: 'center' as const },
|
||||||
{ label: '操作', slotName: 'action', align: 'center' as const, width: 120 },
|
{ label: '操作', slotName: 'action', align: 'center' as const, width: 120 },
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -104,7 +104,7 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<!-- 银行信息(BANK 渠道) -->
|
<!-- 银行信息(BANK 渠道) -->
|
||||||
<template v-if="isBankChannel && !isAgent">
|
<template v-if="isBankChannel">
|
||||||
<el-form-item :label="t('withdraw.dialog.beneficiaryName')" prop="beneficiary_name">
|
<el-form-item :label="t('withdraw.dialog.beneficiaryName')" prop="beneficiary_name">
|
||||||
<el-input v-model="formData.beneficiary_name"
|
<el-input v-model="formData.beneficiary_name"
|
||||||
:placeholder="t('withdraw.dialog.beneficiaryNamePlaceholder')" />
|
:placeholder="t('withdraw.dialog.beneficiaryNamePlaceholder')" />
|
||||||
|
|
@ -128,7 +128,7 @@
|
||||||
<div class="dialog-footer">
|
<div class="dialog-footer">
|
||||||
<el-button @click="handleBack">{{ t('common.cancel') }}</el-button>
|
<el-button @click="handleBack">{{ t('common.cancel') }}</el-button>
|
||||||
<el-button type="primary" :loading="submitLoading" @click="handleSubmit">{{ t('withdraw.dialog.confirmWithdraw')
|
<el-button type="primary" :loading="submitLoading" @click="handleSubmit">{{ t('withdraw.dialog.confirmWithdraw')
|
||||||
}}</el-button>
|
}}</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
|
|
@ -261,7 +261,7 @@ const totalWalletBalance = computed(() => {
|
||||||
parseFloat(walletInfo.value.commission_point_diff || '0') +
|
parseFloat(walletInfo.value.commission_point_diff || '0') +
|
||||||
parseFloat(walletInfo.value.service || '0') +
|
parseFloat(walletInfo.value.service || '0') +
|
||||||
parseFloat(walletInfo.value.risk || '0') +
|
parseFloat(walletInfo.value.risk || '0') +
|
||||||
parseFloat(Math.min(0, +walletInfo.value.closing_profit)+'')
|
parseFloat(Math.min(0, +walletInfo.value.closing_profit) + '')
|
||||||
|
|
||||||
if (roleId >= 5) {
|
if (roleId >= 5) {
|
||||||
// roleId >= 5 时,总余额包含可用余额
|
// roleId >= 5 时,总余额包含可用余额
|
||||||
|
|
@ -662,13 +662,18 @@ const handleSubmit = async () => {
|
||||||
|
|
||||||
if (isBankChannel.value) {
|
if (isBankChannel.value) {
|
||||||
params.withdraw_address = '--'
|
params.withdraw_address = '--'
|
||||||
|
params.beneficiary_name = formData.value.beneficiary_name
|
||||||
|
params.beneficiary_enname = formData.value.beneficiary_enname
|
||||||
|
params.beneficiary_bank_name = formData.value.beneficiary_bank_name
|
||||||
|
params.beneficiary_bank_account = formData.value.beneficiary_bank_account
|
||||||
|
} else {
|
||||||
|
params.beneficiary_name = '--'
|
||||||
|
params.beneficiary_enname = '--'
|
||||||
|
params.beneficiary_bank_name = '--'
|
||||||
|
params.beneficiary_bank_account = '--'
|
||||||
|
params.swift_bic_code = '--'
|
||||||
|
params.beneficiary_bank_address = '--'
|
||||||
}
|
}
|
||||||
params.beneficiary_name = '--'
|
|
||||||
params.beneficiary_enname = '--'
|
|
||||||
params.beneficiary_bank_name = '--'
|
|
||||||
params.beneficiary_bank_account = '--'
|
|
||||||
params.swift_bic_code = '--'
|
|
||||||
params.beneficiary_bank_address = '--'
|
|
||||||
await agentWithdraw(params)
|
await agentWithdraw(params)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ export const tableColumns = [
|
||||||
// 渠道名称
|
// 渠道名称
|
||||||
{ label: '渠道名称', prop: 'name' },
|
{ label: '渠道名称', prop: 'name' },
|
||||||
// 渠道费用
|
// 渠道费用
|
||||||
{ label: '渠道费用', prop: 'channel_fee', isNumber: true },
|
{ label: '渠道费用', prop: 'channel_fee' },
|
||||||
{
|
{
|
||||||
label: '出金货币',
|
label: '出金货币',
|
||||||
prop: 'symbol',
|
prop: 'symbol',
|
||||||
|
|
|
||||||
|
|
@ -177,20 +177,11 @@ searchForm.value.timeRange = getDefaultTimeRange()
|
||||||
// 转换接口数据为表格数据
|
// 转换接口数据为表格数据
|
||||||
const transformTableData = (data: TableRow[]): TransformedTableRow[] => {
|
const transformTableData = (data: TableRow[]): TransformedTableRow[] => {
|
||||||
return data.map(item => ({
|
return data.map(item => ({
|
||||||
id: item.id,
|
|
||||||
trade_id: item.trade_id,
|
|
||||||
user_name: item.user?.username || '-',
|
user_name: item.user?.username || '-',
|
||||||
withdraw_currency_symbol: item.withdraw_currency?.symbol || '-',
|
withdraw_currency_symbol: item.withdraw_currency?.symbol || '-',
|
||||||
withdraw_amount: item.withdraw_amount,
|
|
||||||
real_currency_symbol: item.real_currency?.symbol || '-',
|
real_currency_symbol: item.real_currency?.symbol || '-',
|
||||||
real_amount: item.real_amount,
|
|
||||||
rate: item.rate,
|
|
||||||
channel_name: item.channel?.name || '-',
|
channel_name: item.channel?.name || '-',
|
||||||
withdraw_service_fee: item.withdraw_service_fee,
|
...item,
|
||||||
withdraw_head_fee: item.withdraw_head_fee,
|
|
||||||
withdraw_fee_handle: item.withdraw_fee_handle,
|
|
||||||
withdraw_point_diff: item.withdraw_point_diff,
|
|
||||||
withdraw_risk_fee: item.withdraw_risk_fee,
|
|
||||||
withdraw_address: item.withdraw_address,
|
withdraw_address: item.withdraw_address,
|
||||||
created_at: item.created_at
|
created_at: item.created_at
|
||||||
}))
|
}))
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,12 @@ export const withdrawCheckTableColumns = [
|
||||||
{ prop: 'withdraw_point_diff', label: '点差', align: 'center' as const, width: 100, isNumber: true },
|
{ prop: 'withdraw_point_diff', label: '点差', align: 'center' as const, width: 100, isNumber: true },
|
||||||
{ prop: 'withdraw_risk_fee', label: '风控费', align: 'center' as const, isNumber: true , width: 180},
|
{ prop: 'withdraw_risk_fee', label: '风控费', align: 'center' as const, isNumber: true , width: 180},
|
||||||
{ prop: 'withdraw_address', label: '提现地址', align: 'center' as const, width: 180},
|
{ prop: 'withdraw_address', label: '提现地址', align: 'center' as const, width: 180},
|
||||||
|
{ prop: 'beneficiary_bank_account', label: '银行账号', align: 'center' as const, width: 180},
|
||||||
|
{ prop: 'beneficiary_bank_name', label: '银行名称', align: 'center' as const, width: 180},
|
||||||
|
{ prop: 'beneficiary_enname', label: '收款人英文名字', align: 'center' as const, width: 180},
|
||||||
|
{ prop: 'fee', label: '通道费', align: 'center' as const, width: 180},
|
||||||
|
{ prop: 'beneficiary_name', label: '收款人姓名', align: 'center' as const, width: 180},
|
||||||
{ prop: 'created_at', label: '申请时间', align: 'center' as const, width: 180},
|
{ prop: 'created_at', label: '申请时间', align: 'center' as const, width: 180},
|
||||||
{ label: '操作', align: 'center' as const, width: 140, fixed: 'right' as const, slotName: 'action' },
|
{ label: '操作', align: 'center' as const, width: 140, fixed: 'right' as const, slotName: 'action' },
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
@ -31,6 +31,10 @@ export const search = [
|
||||||
export const tableColumns = [
|
export const tableColumns = [
|
||||||
{ prop: 'trade_id', label: '订单号', align: 'center' as const, width: 200 },
|
{ prop: 'trade_id', label: '订单号', align: 'center' as const, width: 200 },
|
||||||
{ prop: 'user_name', label: '账户持有人', width: 160, align: 'center' as const },
|
{ prop: 'user_name', label: '账户持有人', width: 160, align: 'center' as const },
|
||||||
|
{ prop: 'beneficiary_bank_account', label: '银行账号', align: 'center' as const, width: 180},
|
||||||
|
{ prop: 'beneficiary_bank_name', label: '银行名称', align: 'center' as const, width: 180},
|
||||||
|
{ prop: 'beneficiary_enname', label: '收款人英文名字', align: 'center' as const, width: 180},
|
||||||
|
{ prop: 'beneficiary_name', label: '收款人姓名', align: 'center' as const, width: 180},
|
||||||
{ prop: 'withdraw_currency_symbol', label: '取款币种', align: 'center' as const, width: 100 },
|
{ prop: 'withdraw_currency_symbol', label: '取款币种', align: 'center' as const, width: 100 },
|
||||||
{ prop: 'withdraw_amount', label: '取款金额', align: 'center' as const, width: 120, isNumber: true },
|
{ prop: 'withdraw_amount', label: '取款金额', align: 'center' as const, width: 120, isNumber: true },
|
||||||
{ prop: 'real_currency_symbol', label: '到账币种', align: 'center' as const, width: 100 },
|
{ prop: 'real_currency_symbol', label: '到账币种', align: 'center' as const, width: 100 },
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue