mirror of
https://gitee.com/myxzgzs/boyue-ui-admin-vue3
synced 2025-08-09 08:52:41 +08:00
feat:【MALL 商城】佣金提现,支持提现失败时,重新发起
This commit is contained in:
parent
aec024e42c
commit
048ecd72ea
@ -111,11 +111,15 @@
|
|||||||
<div>手续费:¥{{ fenToYuan(scope.row.feePrice) }}</div>
|
<div>手续费:¥{{ fenToYuan(scope.row.feePrice) }}</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="提现方式" align="left" prop="type" min-width="120px">
|
<el-table-column label="提现方式" align="left" prop="type" min-width="80px">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<div v-if="scope.row.type === BrokerageWithdrawTypeEnum.WALLET.type"> 余额 </div>
|
<dict-tag :type="DICT_TYPE.BROKERAGE_WITHDRAW_TYPE" :value="scope.row.type" />
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="提现信息" align="left" min-width="120px">
|
||||||
|
<template #default="scope">
|
||||||
|
<div v-if="scope.row.type === BrokerageWithdrawTypeEnum.WALLET.type">-</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
{{ getDictLabel(DICT_TYPE.BROKERAGE_WITHDRAW_TYPE, scope.row.type) }}
|
|
||||||
<div v-if="scope.row.userAccount">账号:{{ scope.row.userAccount }}</div>
|
<div v-if="scope.row.userAccount">账号:{{ scope.row.userAccount }}</div>
|
||||||
<div v-if="scope.row.userName">真实姓名:{{ scope.row.userName }}</div>
|
<div v-if="scope.row.userName">真实姓名:{{ scope.row.userName }}</div>
|
||||||
</div>
|
</div>
|
||||||
@ -126,18 +130,15 @@
|
|||||||
</div>
|
</div>
|
||||||
<div>开户地址:{{ scope.row.bankAddress }}</div>
|
<div>开户地址:{{ scope.row.bankAddress }}</div>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
<div v-if="scope.row.qrCodeUrl" class="mt-2">
|
||||||
</el-table-column>
|
<div>收款码:</div>
|
||||||
<el-table-column label="收款码" align="left" prop="qrCodeUrl" min-width="70px">
|
<el-image
|
||||||
<template #default="scope">
|
:src="scope.row.qrCodeUrl"
|
||||||
<el-image
|
class="h-40px w-40px"
|
||||||
v-if="scope.row.qrCodeUrl"
|
:preview-src-list="[scope.row.qrCodeUrl]"
|
||||||
:src="scope.row.qrCodeUrl"
|
preview-teleported
|
||||||
class="h-40px w-40px"
|
/>
|
||||||
:preview-src-list="[scope.row.qrCodeUrl]"
|
</div>
|
||||||
preview-teleported
|
|
||||||
/>
|
|
||||||
<span v-else>无</span>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@ -155,11 +156,14 @@
|
|||||||
时间:{{ formatDate(scope.row.auditTime) }}
|
时间:{{ formatDate(scope.row.auditTime) }}
|
||||||
</div>
|
</div>
|
||||||
<div v-if="scope.row.auditReason" class="text-xs">
|
<div v-if="scope.row.auditReason" class="text-xs">
|
||||||
原因:{{ scope.row.auditReason }}
|
审核原因:{{ scope.row.auditReason }}
|
||||||
|
</div>
|
||||||
|
<!-- 提现失败原因 -->
|
||||||
|
<div v-if="scope.row.transferErrorMsg" class="text-xs text-red-500">
|
||||||
|
转账失败原因:{{ scope.row.transferErrorMsg }}
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="转账失败原因" align="left" prop="transferErrorMsg" />
|
|
||||||
<el-table-column label="操作" align="left" width="110px" fixed="right">
|
<el-table-column label="操作" align="left" width="110px" fixed="right">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<template v-if="scope.row.status === BrokerageWithdrawStatusEnum.AUDITING.status">
|
<template v-if="scope.row.status === BrokerageWithdrawStatusEnum.AUDITING.status">
|
||||||
@ -180,6 +184,16 @@
|
|||||||
驳回
|
驳回
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
<template v-if="scope.row.status === BrokerageWithdrawStatusEnum.WITHDRAW_FAIL.status">
|
||||||
|
<el-button
|
||||||
|
link
|
||||||
|
type="warning"
|
||||||
|
@click="handleRetryTransfer(scope.row.id)"
|
||||||
|
v-hasPermi="['trade:brokerage-withdraw:audit']"
|
||||||
|
>
|
||||||
|
重新转账
|
||||||
|
</el-button>
|
||||||
|
</template>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@ -197,7 +211,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { DICT_TYPE, getDictLabel, getIntDictOptions, getStrDictOptions } from '@/utils/dict'
|
import { DICT_TYPE, getIntDictOptions, getStrDictOptions } from '@/utils/dict'
|
||||||
import { dateFormatter, formatDate } from '@/utils/formatTime'
|
import { dateFormatter, formatDate } from '@/utils/formatTime'
|
||||||
import * as BrokerageWithdrawApi from '@/api/mall/trade/brokerage/withdraw'
|
import * as BrokerageWithdrawApi from '@/api/mall/trade/brokerage/withdraw'
|
||||||
import BrokerageWithdrawRejectForm from './BrokerageWithdrawRejectForm.vue'
|
import BrokerageWithdrawRejectForm from './BrokerageWithdrawRejectForm.vue'
|
||||||
@ -215,11 +229,11 @@ const queryParams = reactive({
|
|||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
userId: null,
|
userId: null,
|
||||||
type: null,
|
type: undefined,
|
||||||
userName: null,
|
userName: null,
|
||||||
userAccount: null,
|
userAccount: null,
|
||||||
bankName: null,
|
bankName: undefined,
|
||||||
status: null,
|
status: undefined,
|
||||||
auditReason: null,
|
auditReason: null,
|
||||||
auditTime: [],
|
auditTime: [],
|
||||||
remark: null,
|
remark: null,
|
||||||
@ -270,6 +284,19 @@ const handleApprove = async (id: number) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** 重新转账 */
|
||||||
|
const handleRetryTransfer = async (id: number) => {
|
||||||
|
try {
|
||||||
|
loading.value = true
|
||||||
|
await message.confirm('确定要重新转账吗?')
|
||||||
|
await BrokerageWithdrawApi.approveBrokerageWithdraw(id)
|
||||||
|
await message.success(t('common.success'))
|
||||||
|
await getList()
|
||||||
|
} finally {
|
||||||
|
loading.value = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/** 初始化 **/
|
/** 初始化 **/
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
getList()
|
getList()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user