|
@@ -18,8 +18,12 @@
|
|
|
<cl-table ref="Table">
|
|
|
<template #slot-btn="{ scope }">
|
|
|
<el-button text bg type="success" @click="rechange(scope.row)">充值</el-button>
|
|
|
- <el-button text bg type="success" @click="showWithdraw(scope.row)">提现</el-button>
|
|
|
- <el-button text bg type="success" @click="showTransfer(scope.row)">划转</el-button>
|
|
|
+ <el-button text bg type="success" @click="showWithdraw(scope.row)"
|
|
|
+ >提现</el-button
|
|
|
+ >
|
|
|
+ <el-button text bg type="success" @click="showTransfer(scope.row)"
|
|
|
+ >划转</el-button
|
|
|
+ >
|
|
|
</template>
|
|
|
</cl-table>
|
|
|
</cl-row>
|
|
@@ -35,23 +39,93 @@
|
|
|
<template #slot-currency="{ scope }">
|
|
|
<el-select v-model="scope.currency" clearable>
|
|
|
<el-option
|
|
|
-v-for="item in currencyList.filter(
|
|
|
- item =>
|
|
|
- channelList
|
|
|
- .find(v => v.code == scope.channel)
|
|
|
- ?.supportedCurrencies.includes(item.id) || item.type == '2'
|
|
|
- )" :key="item.id" :label="item.label" :value="item.value" />
|
|
|
+ v-for="item in currencyList.filter(
|
|
|
+ item =>
|
|
|
+ channelList
|
|
|
+ .find(v => v.code == scope.channel)
|
|
|
+ ?.supportedCurrencies.includes(item.id) || item.type == '2'
|
|
|
+ )"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ />
|
|
|
</el-select>
|
|
|
</template>
|
|
|
</cl-upsert>
|
|
|
<withdraw
|
|
|
-v-if="WithdrawVisible" :channel="channel" :currency="currency" v-model:show="WithdrawVisible"
|
|
|
- @refresh="refresh" />
|
|
|
+ v-if="WithdrawVisible"
|
|
|
+ :channel="channel"
|
|
|
+ :currency="currency"
|
|
|
+ v-model:show="WithdrawVisible"
|
|
|
+ @refresh="refresh"
|
|
|
+ />
|
|
|
<transfer
|
|
|
-v-if="TransferVisible" :fromWalletId="fromWalletId" :channel="channel" v-model:show="TransferVisible"
|
|
|
- @refresh="refresh" />
|
|
|
- <cl-dialog title="充值信息" v-model="rechangeVisible">
|
|
|
- <pre class="json-content">{{ rechangeInfo.config }}</pre>
|
|
|
+ v-if="TransferVisible"
|
|
|
+ :fromWalletId="fromWalletId"
|
|
|
+ :channel="channel"
|
|
|
+ v-model:show="TransferVisible"
|
|
|
+ @refresh="refresh"
|
|
|
+ />
|
|
|
+ <cl-dialog title="充值信息" v-model="rechangeVisible" width="80%">
|
|
|
+ <div v-if="rechangeInfo && rechangeInfo.currency === 'EUR'" class="currency-box">
|
|
|
+ <el-row style="margin-bottom: 12px">
|
|
|
+ <el-col :span="12">
|
|
|
+ <span class="label">bic:</span>
|
|
|
+ <span class="content">{{ rechangeInfo.config[0].bic }}</span>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <span class="label">iBan:</span
|
|
|
+ ><span class="content">{{ rechangeInfo.config[0].iBan }}</span>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row style="margin-bottom: 12px">
|
|
|
+ <el-col :span="12">
|
|
|
+ <span class="label">status:</span
|
|
|
+ ><span class="content">{{ rechangeInfo.config[0].status }}</span>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <span class="label">bankName:</span
|
|
|
+ ><span class="content">{{ rechangeInfo.config[0].bankName }}</span>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row style="margin-bottom: 12px">
|
|
|
+ <el-col :span="12">
|
|
|
+ <span class="label">currency:</span
|
|
|
+ ><span class="content">{{ rechangeInfo.config[0].currency }}</span>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <span class="label">bankAddress:</span
|
|
|
+ ><span class="content">{{ rechangeInfo.config[0].bankAddress }}</span>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row style="margin-bottom: 12px">
|
|
|
+ <el-col :span="12">
|
|
|
+ <span class="label">bankCountry:</span
|
|
|
+ ><span class="content">{{ rechangeInfo.config[0].bankCountry }}</span>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <span class="label">accountNumber:</span
|
|
|
+ ><span class="content">{{ rechangeInfo.config[0].accountNumber }}</span>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row style="margin-bottom: 12px">
|
|
|
+ <el-col :span="12">
|
|
|
+ <span class="label">routingCodeEntries:</span
|
|
|
+ ><span class="content">{{
|
|
|
+ rechangeInfo.config[0].routingCodeEntries
|
|
|
+ }}</span>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <span class="label">bankAccountHolderName:</span
|
|
|
+ ><span class="content">{{
|
|
|
+ rechangeInfo.config[0].bankAccountHolderName
|
|
|
+ }}</span>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+ <div v-else>
|
|
|
+ <pre class="json-content">{{ rechangeInfo.config[0] }}</pre>
|
|
|
+ </div>
|
|
|
</cl-dialog>
|
|
|
</cl-crud>
|
|
|
</template>
|
|
@@ -63,6 +137,7 @@ import { useCrud, useTable, useUpsert } from '@cool-vue/crud';
|
|
|
import { useCool } from '/@/cool';
|
|
|
import { ref } from 'vue';
|
|
|
import { ElMessage } from 'element-plus';
|
|
|
+import ClCrud from '/~/crud/src/components/crud';
|
|
|
const { service } = useCool();
|
|
|
const WithdrawVisible = ref(false);
|
|
|
const TransferVisible = ref(false);
|
|
@@ -91,7 +166,7 @@ const Upsert = useUpsert({
|
|
|
prop: 'currency',
|
|
|
component: { name: 'slot-currency', props: { clearable: true } },
|
|
|
required: true
|
|
|
- },
|
|
|
+ }
|
|
|
],
|
|
|
async onOpen() {
|
|
|
channelList.value = await service.payment.channel.list();
|
|
@@ -103,7 +178,6 @@ const Upsert = useUpsert({
|
|
|
// getCustomerList.value = await service.payment.customer.list({ merchantId: 24 });
|
|
|
// console.log(1130000, getCustomerList.value);
|
|
|
|
|
|
-
|
|
|
// getCustomerList = await service.payment.customer.list({});
|
|
|
}
|
|
|
});
|
|
@@ -188,4 +262,19 @@ function refresh(params?: any) {
|
|
|
overflow: auto;
|
|
|
/* 内容过多时显示滚动条 */
|
|
|
}
|
|
|
+
|
|
|
+.currency-box {
|
|
|
+ .el-col-12 {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ .label {
|
|
|
+ flex: 0 0 200px;
|
|
|
+ font-weight: bold;
|
|
|
+ display: block;
|
|
|
+ }
|
|
|
+ .content {
|
|
|
+ display: block;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|