Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
薪
薪瑞通-前端
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
许珑标
薪瑞通-前端
Commits
e1c2a706
Commit
e1c2a706
authored
Jun 04, 2025
by
许珑标
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决首页推出不跳转的问题;
parent
6685f047
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
454 additions
and
15 deletions
+454
-15
src/api/business/unitRechargeBank.js
src/api/business/unitRechargeBank.js
+53
-0
src/layout/components/Navbar.vue
src/layout/components/Navbar.vue
+1
-1
src/views/business/taxUnit/channel.vue
src/views/business/taxUnit/channel.vue
+68
-14
src/views/business/unitRechargeBank/index.vue
src/views/business/unitRechargeBank/index.vue
+332
-0
No files found.
src/api/business/unitRechargeBank.js
0 → 100644
View file @
e1c2a706
import
request
from
'
@/utils/request
'
// 查询税地企业来账收款卡信息列表
export
function
listUnitRechargeBank
(
query
)
{
return
request
({
url
:
'
/business/unitRechargeBank/list
'
,
method
:
'
get
'
,
params
:
query
})
}
// 查询税地企业来账收款卡信息所有列表
export
function
listAllUnitRechargeBank
(
query
)
{
return
request
({
url
:
'
/business/unitRechargeBank/listAll
'
,
method
:
'
get
'
,
params
:
query
})
}
// 查询税地企业来账收款卡信息详细
export
function
getUnitRechargeBank
(
id
)
{
return
request
({
url
:
'
/business/unitRechargeBank/getInfo/
'
+
id
,
method
:
'
get
'
})
}
// 新增税地企业来账收款卡信息
export
function
addUnitRechargeBank
(
data
)
{
return
request
({
url
:
'
/business/unitRechargeBank/add
'
,
method
:
'
post
'
,
data
:
data
})
}
// 修改税地企业来账收款卡信息
export
function
updateUnitRechargeBank
(
data
)
{
return
request
({
url
:
'
/business/unitRechargeBank/edit
'
,
method
:
'
post
'
,
data
:
data
})
}
// 删除税地企业来账收款卡信息
export
function
delUnitRechargeBank
(
id
)
{
return
request
({
url
:
'
/business/unitRechargeBank/remove/
'
+
id
,
method
:
'
get
'
})
}
src/layout/components/Navbar.vue
View file @
e1c2a706
...
...
@@ -98,7 +98,7 @@ export default {
type
:
'
warning
'
}).
then
(()
=>
{
this
.
$store
.
dispatch
(
'
LogOut
'
).
then
(()
=>
{
this
.
$router
.
push
(
'
/
index
'
)
this
.
$router
.
push
(
'
/
login
'
)
})
}).
catch
(()
=>
{});
}
...
...
src/views/business/taxUnit/channel.vue
View file @
e1c2a706
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"80px"
>
<el-form-item
label=
"通道名称"
prop=
"channelName"
>
<el-form-item
label=
"关联企业"
prop=
"companyId"
>
<el-select
v-model=
"queryParams.companyId"
placeholder=
"请选择关联企业"
clearable
>
<el-option
v-for=
"item in unitInfoList"
:key=
"item.companyId"
:label=
"item.companyName"
:value=
"item.companyId"
/>
</el-select>
</el-form-item>
<el-form-item
label=
"支付通道"
prop=
"channelName"
>
<el-input
v-model=
"queryParams.channelName"
placeholder=
"请输入通道名称"
...
...
@@ -9,12 +15,6 @@
@
keyup.enter.native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"关联企业"
prop=
"companyId"
>
<el-select
v-model=
"queryParams.companyId"
placeholder=
"请选择关联企业"
clearable
>
<el-option
v-for=
"item in unitInfoList"
:key=
"item.companyId"
:label=
"item.companyName"
:value=
"item.companyId"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
...
...
@@ -36,8 +36,8 @@
<el-table
v-loading=
"loading"
:data=
"companyPayChannelList"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"企业名称"
align=
"center"
prop=
"companyName"
/>
<el-table-column
label=
"支付通道"
align=
"center"
prop=
"channelName"
/>
<el-table-column
label=
"关联企业"
align=
"center"
prop=
"companyName"
/>
<el-table-column
label=
"使用状态"
align=
"center"
prop=
"status"
>
<template
slot-scope=
"scope"
>
<el-switch
...
...
@@ -59,8 +59,16 @@
size=
"mini"
type=
"text"
icon=
"el-icon-help"
v-if=
"scope.row.isEnter === 1"
@
click=
"signChannel(scope.row)"
v-if=
"scope.row.isEnter
<
3
"
>
开通
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-setting"
@
click=
"goChannelSet(scope.row)"
v-if=
"scope.row.isEnter === 3"
>
参数配置
</el-button>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -72,20 +80,32 @@
:limit.sync=
"queryParams.pageSize"
@
pagination=
"getList"
/>
<el-dialog
title=
"扫码签约"
:visible.sync=
"bindAcc.codePanel"
width=
"300px"
style=
"text-align: center"
>
<h3>
请使用
</h3>
<h3><span
style=
"color: #00afff"
>
{{ bindAcc.companyName}}
</span>
的对公支付宝
</h3>
<h3>
扫描下方二维码
</h3>
<qr-code-component
:text=
"bindAcc.codeUrl"
/>
<h3>
操作完成后大约5-10分钟
</h3>
<h3>
可刷新页面查看结果
</h3>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"bindAcc.codePanel = false"
>
关 闭
</el-button>
</div>
</el-dialog>
</div>
</template>
<
script
>
import
{
listCompanyPayChannel
,
listCompanyPayChannel
,
signChannel
,
updateCompanyPayChannel
}
from
"
@/api/business/companyPayChannel
"
;
}
from
'
@/api/business/companyPayChannel
'
import
{
listAllPayChannel
}
from
'
@/api/business/payChannel
'
import
{
listAllUnitInfo
}
from
'
@/api/business/unitInfo
'
import
QrCodeComponent
from
'
@/components/QrCode.vue
'
export
default
{
name
:
"
CompanyPayChannel
"
,
components
:
{
QrCodeComponent
},
dicts
:
[
'
pay_channel_use_status
'
],
data
()
{
return
{
...
...
@@ -121,7 +141,12 @@ export default {
deptId
:
null
,
},
sysPayChannelList
:
[],
unitInfoList
:
[]
unitInfoList
:
[],
bindAcc
:
{
codePanel
:
false
,
companyName
:
''
,
codeUrl
:
''
,
},
};
},
created
()
{
...
...
@@ -145,7 +170,6 @@ export default {
'
companyId
'
:
item
[
'
id
'
],
'
companyName
'
:
item
[
'
unitName
'
]
}));
console
.
log
(
this
.
unitInfoList
)
})
},
// 取消按钮
...
...
@@ -209,6 +233,36 @@ export default {
row
.
status
=
row
.
status
===
2
?
1
:
2
;
});
},
signChannel
(
row
)
{
this
.
$confirm
(
'
确认开通支付通道[
'
+
row
.
channelName
+
'
]?
'
,
'
提示
'
,
{
confirmButtonText
:
'
确定
'
,
cancelButtonText
:
'
取消
'
,
type
:
'
warning
'
}).
then
(()
=>
{
this
.
doSignChannel
(
row
)
})
},
doSignChannel
(
row
)
{
const
singForm
=
{
companyId
:
row
.
companyId
,
unitType
:
2
,
channelCode
:
row
.
channelCode
}
this
.
$modal
.
loading
()
signChannel
(
singForm
).
then
(
resp
=>
{
this
.
bindAcc
.
codePanel
=
true
this
.
bindAcc
.
codeUrl
=
resp
.
data
this
.
bindAcc
.
companyName
=
row
.
companyName
}).
finally
(()
=>
{
this
.
$modal
.
closeLoading
()
})
},
goChannelSet
(
row
)
{
this
.
$router
.
push
({
path
:
'
/business/unitRechargeBank
'
,
query
:
{
companyId
:
row
.
companyId
,
channelCode
:
row
.
channelCode
}
})
}
}
};
</
script
>
src/views/business/unitRechargeBank/index.vue
0 → 100644
View file @
e1c2a706
This diff is collapsed.
Click to expand it.
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