Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
saas-manage
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chehuidong
saas-manage
Commits
ffd808ca
Commit
ffd808ca
authored
Sep 04, 2025
by
wusiyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 收款账户新增支付宝授权
parent
71b026d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
4 deletions
+65
-4
src/common/components/element-ui.js
+4
-2
src/views/user/baseProceedsAccount.vue
+61
-2
No files found.
src/common/components/element-ui.js
View file @
ffd808ca
...
@@ -41,7 +41,8 @@ import {
...
@@ -41,7 +41,8 @@ import {
Upload
,
Upload
,
Descriptions
,
Descriptions
,
DescriptionsItem
,
DescriptionsItem
,
InputNumber
InputNumber
,
Link
}
from
'element-ui'
}
from
'element-ui'
const
components
=
[
const
components
=
[
...
@@ -82,7 +83,8 @@ const components = [
...
@@ -82,7 +83,8 @@ const components = [
Upload
,
Upload
,
Descriptions
,
Descriptions
,
DescriptionsItem
,
DescriptionsItem
,
InputNumber
InputNumber
,
Link
]
]
export
default
{
export
default
{
...
...
src/views/user/baseProceedsAccount.vue
View file @
ffd808ca
...
@@ -52,6 +52,7 @@
...
@@ -52,6 +52,7 @@
<el-select
<el-select
v-model=
"addFormData.accountType"
v-model=
"addFormData.accountType"
placeholder=
"请选择账户类型"
placeholder=
"请选择账户类型"
@
change=
"accountTypeChange"
style=
"width: 100%"
>
style=
"width: 100%"
>
<el-option
<el-option
v-for=
"item in accountTypeList"
v-for=
"item in accountTypeList"
...
@@ -154,6 +155,7 @@
...
@@ -154,6 +155,7 @@
v-model=
"addFormData.isEnable"
v-model=
"addFormData.isEnable"
active-color=
"#67C23A"
active-color=
"#67C23A"
inactive-color=
"#F56C6C"
inactive-color=
"#F56C6C"
@
change=
"dialogEnableChange"
active-text=
"启用"
active-text=
"启用"
inactive-text=
"禁用"
></el-switch>
inactive-text=
"禁用"
></el-switch>
</el-form-item>
</el-form-item>
...
@@ -172,7 +174,7 @@
...
@@ -172,7 +174,7 @@
<el-descriptions
<el-descriptions
class=
"margin-top"
class=
"margin-top"
:column=
"3"
:column=
"3"
:labelStyle=
"{ width: '1
2
0px' }"
:labelStyle=
"{ width: '1
3
0px' }"
:contentStyle=
"{ width: '200px', textAlign: 'center' }"
:contentStyle=
"{ width: '200px', textAlign: 'center' }"
border
>
border
>
<el-descriptions-item
<el-descriptions-item
...
@@ -234,7 +236,17 @@
...
@@ -234,7 +236,17 @@
<el-descriptions-item
label=
"排序"
>
<el-descriptions-item
label=
"排序"
>
{{ detailFormData.sort }}
{{ detailFormData.sort }}
</el-descriptions-item>
</el-descriptions-item>
<el-descriptions-item
/>
<el-descriptions-item
label=
"支付宝授权状态"
>
<span
v-if=
"detailFormData.accountType === 'alipay'"
>
<el-tag
type=
"success"
size=
"small"
v-if=
"detailFormData.appAuthToken"
>
已授权
</el-tag>
<el-tag
type=
"danger"
size=
"small"
v-else
>
未授权
</el-tag>
</span>
</el-descriptions-item>
<el-descriptions-item
label=
"创建时间"
>
<el-descriptions-item
label=
"创建时间"
>
{{ detailFormData.createTime }}
{{ detailFormData.createTime }}
</el-descriptions-item>
</el-descriptions-item>
...
@@ -607,6 +619,28 @@ export default {
...
@@ -607,6 +619,28 @@ export default {
}
}
},
},
{
{
label
:
'支付宝授权状态'
,
key
:
'appAuthToken'
,
width
:
'150'
,
render
:
(
item
)
=>
{
if
(
item
.
accountType
!==
'alipay'
)
{
return
null
}
if
(
item
.
appAuthToken
)
{
return
<
span
>
已授权
<
/span
>
}
else
{
return
(
<
el
-
link
type
=
"danger"
href
=
"https://openauth.alipay.com/oauth2/appToAppAuth.htm?app_id=2018022802291295&redirect_uri=https://qcze70557268.vicp.fun/api/manage/rest/ali/auth&state=14"
target
=
"_blank"
>
未授权,点击授权
<
/el-link
>
)
}
}
},
{
label
:
'银行卡开户行'
,
label
:
'银行卡开户行'
,
key
:
'openBank'
,
key
:
'openBank'
,
width
:
'200'
width
:
'200'
...
@@ -889,6 +923,15 @@ export default {
...
@@ -889,6 +923,15 @@ export default {
this
.
type
=
'changeStatus'
this
.
type
=
'changeStatus'
this
.
currentRow
=
row
this
.
currentRow
=
row
if
(
this
.
setVerificationMethod
())
{
if
(
this
.
setVerificationMethod
())
{
// 未授权支付宝不可启用账户
if
(
flag
===
false
&&
row
.
accountType
===
'alipay'
&&
!
row
.
appAuthToken
)
{
this
.
$message
.
warning
(
'请先授权支付宝'
)
return
}
this
.
securityVisible
=
true
this
.
securityVisible
=
true
}
}
},
},
...
@@ -923,6 +966,22 @@ export default {
...
@@ -923,6 +966,22 @@ export default {
})
})
}
}
},
},
// 新增/编辑 账户类型变化
accountTypeChange
()
{
if
(
this
.
addFormData
.
accountType
===
'alipay'
)
{
this
.
addFormData
.
isEnable
=
false
}
},
// 新增/编辑 启用状态变化
dialogEnableChange
()
{
if
(
this
.
addFormData
.
accountType
===
'alipay'
&&
(
!
this
.
currentRow
||
!
this
.
currentRow
.
appAuthToken
)
)
{
this
.
addFormData
.
isEnable
=
false
this
.
$message
.
warning
(
`请在
${
this
.
operateType
}
后授权支付宝,再启用账户`
)
}
},
// 新增 校验
// 新增 校验
addVarify
()
{
addVarify
()
{
this
.
$refs
.
addForm
.
validate
((
valid
)
=>
{
this
.
$refs
.
addForm
.
validate
((
valid
)
=>
{
...
...
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