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
aec024e4
authored
May 10, 2025
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:【MALL 商城】佣金提现,优化字段,以及支持更多 API 自动打款
parent
11b3de0f
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
24 deletions
+30
-24
src/api/mall/trade/brokerage/withdraw/index.ts
+7
-3
src/api/pay/demo/order/index.ts
+1
-8
src/views/mall/trade/brokerage/withdraw/index.vue
+20
-11
src/views/pay/demo/order/index.vue
+1
-1
src/views/pay/demo/withdraw/index.vue
+1
-1
No files found.
src/api/mall/trade/brokerage/withdraw/index.ts
View file @
aec024e4
...
@@ -7,15 +7,19 @@ export interface BrokerageWithdrawVO {
...
@@ -7,15 +7,19 @@ export interface BrokerageWithdrawVO {
feePrice
:
number
feePrice
:
number
totalPrice
:
number
totalPrice
:
number
type
:
number
type
:
number
n
ame
:
string
userN
ame
:
string
accountNo
:
string
userAccount
:
string
bankName
:
string
bankName
:
string
bankAddress
:
string
bankAddress
:
string
accountQ
rCodeUrl
:
string
q
rCodeUrl
:
string
status
:
number
status
:
number
auditReason
:
string
auditReason
:
string
auditTime
:
Date
auditTime
:
Date
remark
:
string
remark
:
string
payTransferId
?:
number
transferChannelCode
?:
string
transferTime
?:
Date
transferErrorMsg
?:
string
}
}
// 查询佣金提现列表
// 查询佣金提现列表
...
...
src/api/pay/demo/index.ts
→
src/api/pay/demo/
order/
index.ts
View file @
aec024e4
...
@@ -13,13 +13,6 @@ export function createDemoOrder(data: DemoOrderVO) {
...
@@ -13,13 +13,6 @@ export function createDemoOrder(data: DemoOrderVO) {
})
})
}
}
// 获得示例订单
export
function
getDemoOrder
(
id
:
number
)
{
return
request
.
get
({
url
:
'/pay/demo-order/get?id='
+
id
})
}
// 获得示例订单分页
// 获得示例订单分页
export
function
getDemoOrderPage
(
query
:
PageParam
)
{
export
function
getDemoOrderPage
(
query
:
PageParam
)
{
return
request
.
get
({
return
request
.
get
({
...
@@ -29,7 +22,7 @@ export function getDemoOrderPage(query: PageParam) {
...
@@ -29,7 +22,7 @@ export function getDemoOrderPage(query: PageParam) {
}
}
// 退款示例订单
// 退款示例订单
export
function
refundDemoOrder
(
id
)
{
export
function
refundDemoOrder
(
id
:
number
)
{
return
request
.
put
({
return
request
.
put
({
url
:
'/pay/demo-order/refund?id='
+
id
url
:
'/pay/demo-order/refund?id='
+
id
})
})
...
...
src/views/mall/trade/brokerage/withdraw/index.vue
View file @
aec024e4
...
@@ -34,15 +34,24 @@
...
@@ -34,15 +34,24 @@
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"账号"
prop=
"
accountNo
"
>
<el-form-item
label=
"账号"
prop=
"
userAccount
"
>
<el-input
<el-input
v-model=
"queryParams.
accountNo
"
v-model=
"queryParams.
userAccount
"
placeholder=
"请输入账号"
placeholder=
"请输入账号"
clearable
clearable
@
keyup
.
enter=
"handleQuery"
@
keyup
.
enter=
"handleQuery"
class=
"!w-240px"
class=
"!w-240px"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"真实名字"
prop=
"userName"
>
<el-input
v-model=
"queryParams.userName"
placeholder=
"请输入真实名字"
clearable
@
keyup
.
enter=
"handleQuery"
class=
"!w-240px"
/>
</el-form-item>
<el-form-item
label=
"提现银行"
prop=
"bankName"
>
<el-form-item
label=
"提现银行"
prop=
"bankName"
>
<el-select
<el-select
v-model=
"queryParams.bankName"
v-model=
"queryParams.bankName"
...
@@ -107,10 +116,10 @@
...
@@ -107,10 +116,10 @@
<div
v-if=
"scope.row.type === BrokerageWithdrawTypeEnum.WALLET.type"
>
余额
</div>
<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
)
}}
{{
getDictLabel
(
DICT_TYPE
.
BROKERAGE_WITHDRAW_TYPE
,
scope
.
row
.
type
)
}}
<span
v-if=
"scope.row.accountNo"
>
账号:
{{
scope
.
row
.
accountNo
}}
</span>
<div
v-if=
"scope.row.userAccount"
>
账号:
{{
scope
.
row
.
userAccount
}}
</div>
<div
v-if=
"scope.row.userName"
>
真实姓名:
{{
scope
.
row
.
userName
}}
</div>
</div>
</div>
<template
v-if=
"scope.row.type === BrokerageWithdrawTypeEnum.BANK.type"
>
<template
v-if=
"scope.row.type === BrokerageWithdrawTypeEnum.BANK.type"
>
<div>
真实姓名:
{{
scope
.
row
.
name
}}
</div>
<div>
<div>
银行名称:
银行名称:
<dict-tag
:type=
"DICT_TYPE.BROKERAGE_BANK_NAME"
:value=
"scope.row.bankName"
/>
<dict-tag
:type=
"DICT_TYPE.BROKERAGE_BANK_NAME"
:value=
"scope.row.bankName"
/>
...
@@ -119,13 +128,13 @@
...
@@ -119,13 +128,13 @@
</
template
>
</
template
>
</template>
</template>
</el-table-column>
</el-table-column>
<el-table-column
label=
"收款码"
align=
"left"
prop=
"
accountQ
rCodeUrl"
min-width=
"70px"
>
<el-table-column
label=
"收款码"
align=
"left"
prop=
"
q
rCodeUrl"
min-width=
"70px"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<el-image
<el-image
v-if=
"scope.row.
accountQ
rCodeUrl"
v-if=
"scope.row.
q
rCodeUrl"
:src=
"scope.row.
accountQ
rCodeUrl"
:src=
"scope.row.
q
rCodeUrl"
class=
"h-40px w-40px"
class=
"h-40px w-40px"
:preview-src-list=
"[scope.row.
accountQ
rCodeUrl]"
:preview-src-list=
"[scope.row.
q
rCodeUrl]"
preview-teleported
preview-teleported
/>
/>
<span
v-else
>
无
</span>
<span
v-else
>
无
</span>
...
@@ -150,6 +159,7 @@
...
@@ -150,6 +159,7 @@
</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"
>
...
@@ -192,7 +202,6 @@ import { dateFormatter, formatDate } from '@/utils/formatTime'
...
@@ -192,7 +202,6 @@ 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'
import
{
BrokerageWithdrawStatusEnum
,
BrokerageWithdrawTypeEnum
}
from
'@/utils/constants'
import
{
BrokerageWithdrawStatusEnum
,
BrokerageWithdrawTypeEnum
}
from
'@/utils/constants'
import
{
fenToYuanFormat
}
from
'@/utils/formatter'
import
{
fenToYuan
}
from
'@/utils'
import
{
fenToYuan
}
from
'@/utils'
defineOptions
({
name
:
'BrokerageWithdraw'
})
defineOptions
({
name
:
'BrokerageWithdraw'
})
...
@@ -207,8 +216,8 @@ const queryParams = reactive({
...
@@ -207,8 +216,8 @@ const queryParams = reactive({
pageSize
:
10
,
pageSize
:
10
,
userId
:
null
,
userId
:
null
,
type
:
null
,
type
:
null
,
n
ame
:
null
,
userN
ame
:
null
,
accountNo
:
null
,
userAccount
:
null
,
bankName
:
null
,
bankName
:
null
,
status
:
null
,
status
:
null
,
auditReason
:
null
,
auditReason
:
null
,
...
...
src/views/pay/demo/order/index.vue
View file @
aec024e4
...
@@ -110,7 +110,7 @@
...
@@ -110,7 +110,7 @@
</Dialog>
</Dialog>
</template>
</template>
<
script
lang=
"ts"
setup
name=
"PayDemoOrder"
>
<
script
lang=
"ts"
setup
name=
"PayDemoOrder"
>
import
*
as
PayDemoApi
from
'@/api/pay/demo'
import
*
as
PayDemoApi
from
'@/api/pay/demo
/order
'
import
{
dateFormatter
,
formatDate
}
from
'@/utils/formatTime'
import
{
dateFormatter
,
formatDate
}
from
'@/utils/formatTime'
import
{
DICT_TYPE
}
from
'@/utils/dict'
import
{
DICT_TYPE
}
from
'@/utils/dict'
...
...
src/views/pay/demo/withdraw/index.vue
View file @
aec024e4
...
@@ -99,7 +99,7 @@
...
@@ -99,7 +99,7 @@
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
dateFormatter
}
from
'@/utils/formatTime'
import
{
dateFormatter
}
from
'@/utils/formatTime'
import
*
as
DemoWithdrawApi
from
'@/api/pay/demo/withdraw
/index
'
import
*
as
DemoWithdrawApi
from
'@/api/pay/demo/withdraw'
import
DemoWithdrawForm
from
'./DemoWithdrawForm.vue'
import
DemoWithdrawForm
from
'./DemoWithdrawForm.vue'
import
{
DICT_TYPE
}
from
'@/utils/dict'
import
{
DICT_TYPE
}
from
'@/utils/dict'
import
{
useMessage
}
from
'@/hooks/web/useMessage'
import
{
useMessage
}
from
'@/hooks/web/useMessage'
...
...
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