Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
048ecd72
authored
May 10, 2025
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:【MALL 商城】佣金提现,支持提现失败时,重新发起
parent
aec024e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
21 deletions
+48
-21
src/views/mall/trade/brokerage/withdraw/index.vue
+48
-21
No files found.
src/views/mall/trade/brokerage/withdraw/index.vue
View file @
048ecd72
...
...
@@ -111,11 +111,15 @@
<div>
手续费:¥
{{
fenToYuan
(
scope
.
row
.
feePrice
)
}}
</div>
</
template
>
</el-table-column>
<el-table-column
label=
"提现方式"
align=
"left"
prop=
"type"
min-width=
"
12
0px"
>
<el-table-column
label=
"提现方式"
align=
"left"
prop=
"type"
min-width=
"
8
0px"
>
<
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
>
{{
getDictLabel
(
DICT_TYPE
.
BROKERAGE_WITHDRAW_TYPE
,
scope
.
row
.
type
)
}}
<div
v-if=
"scope.row.userAccount"
>
账号:
{{
scope
.
row
.
userAccount
}}
</div>
<div
v-if=
"scope.row.userName"
>
真实姓名:
{{
scope
.
row
.
userName
}}
</div>
</div>
...
...
@@ -126,18 +130,15 @@
</div>
<div>
开户地址:
{{
scope
.
row
.
bankAddress
}}
</div>
</
template
>
</template>
</el-table-column>
<el-table-column
label=
"收款码"
align=
"left"
prop=
"qrCodeUrl"
min-width=
"70px"
>
<
template
#
default=
"scope"
>
<el-image
v-if=
"scope.row.qrCodeUrl"
:src=
"scope.row.qrCodeUrl"
class=
"h-40px w-40px"
:preview-src-list=
"[scope.row.qrCodeUrl]"
preview-teleported
/>
<span
v-else
>
无
</span>
<div
v-if=
"scope.row.qrCodeUrl"
class=
"mt-2"
>
<div>
收款码:
</div>
<el-image
:src=
"scope.row.qrCodeUrl"
class=
"h-40px w-40px"
:preview-src-list=
"[scope.row.qrCodeUrl]"
preview-teleported
/>
</div>
</template>
</el-table-column>
<el-table-column
...
...
@@ -155,11 +156,14 @@
时间:
{{
formatDate
(
scope
.
row
.
auditTime
)
}}
</div>
<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>
</
template
>
</el-table-column>
<el-table-column
label=
"转账失败原因"
align=
"left"
prop=
"transferErrorMsg"
/>
<el-table-column
label=
"操作"
align=
"left"
width=
"110px"
fixed=
"right"
>
<
template
#
default=
"scope"
>
<template
v-if=
"scope.row.status === BrokerageWithdrawStatusEnum.AUDITING.status"
>
...
...
@@ -180,6 +184,16 @@
驳回
</el-button>
</
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>
</el-table-column>
</el-table>
...
...
@@ -197,7 +211,7 @@
</template>
<
script
setup
lang=
"ts"
>
import
{
DICT_TYPE
,
get
DictLabel
,
get
IntDictOptions
,
getStrDictOptions
}
from
'@/utils/dict'
import
{
DICT_TYPE
,
getIntDictOptions
,
getStrDictOptions
}
from
'@/utils/dict'
import
{
dateFormatter
,
formatDate
}
from
'@/utils/formatTime'
import
*
as
BrokerageWithdrawApi
from
'@/api/mall/trade/brokerage/withdraw'
import
BrokerageWithdrawRejectForm
from
'./BrokerageWithdrawRejectForm.vue'
...
...
@@ -215,11 +229,11 @@ const queryParams = reactive({
pageNo
:
1
,
pageSize
:
10
,
userId
:
null
,
type
:
null
,
type
:
undefined
,
userName
:
null
,
userAccount
:
null
,
bankName
:
null
,
status
:
null
,
bankName
:
undefined
,
status
:
undefined
,
auditReason
:
null
,
auditTime
:
[],
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
(()
=>
{
getList
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment