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
f4c6f99f
Commit
f4c6f99f
authored
Jun 05, 2025
by
许珑标
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代理商查卡优化;
账户管理页面组件;
parent
a0c45c6e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
255 additions
and
39 deletions
+255
-39
src/api/business/accInfo.js
src/api/business/accInfo.js
+3
-12
src/views/business/agentAdmin/index.vue
src/views/business/agentAdmin/index.vue
+44
-26
src/views/business/salaryAccount/extAcc.vue
src/views/business/salaryAccount/extAcc.vue
+105
-0
src/views/business/salaryAccount/index.vue
src/views/business/salaryAccount/index.vue
+12
-1
src/views/business/salaryAccount/ownAcc.vue
src/views/business/salaryAccount/ownAcc.vue
+91
-0
No files found.
src/api/business/accInfo.js
View file @
f4c6f99f
...
@@ -83,19 +83,10 @@ export function getTaxAccAliInfo(cardNo) {
...
@@ -83,19 +83,10 @@ export function getTaxAccAliInfo(cardNo) {
})
})
}
}
// 代理商获取名下客户的
自有
支付宝账本信息
// 代理商获取名下客户的支付宝账本信息
export
function
agent
Private
List
(
query
)
{
export
function
agent
Acc
List
(
query
)
{
return
request
({
return
request
({
url
:
'
/business/accInfo/agent/privateList
'
,
url
:
'
/business/accInfo/agent/accList
'
,
method
:
'
get
'
,
params
:
query
})
}
// 代理商获取名下客户的外部支付宝账本信息
export
function
agentGetOutAccInfo
(
query
)
{
return
request
({
url
:
'
/business/accInfo/agent/outList
'
,
method
:
'
get
'
,
method
:
'
get
'
,
params
:
query
params
:
query
})
})
...
...
src/views/business/agentAdmin/index.vue
View file @
f4c6f99f
...
@@ -17,14 +17,20 @@
...
@@ -17,14 +17,20 @@
@
keyup.enter.native=
"handleQuery"
@
keyup.enter.native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"
账本
卡号"
prop=
"alipayCardNo"
>
<el-form-item
label=
"卡号"
prop=
"alipayCardNo"
>
<el-input
<el-input
v-model=
"queryParams.alipayCardNo"
v-model=
"queryParams.alipayCardNo"
placeholder=
"请输入
账本外卡
卡号"
placeholder=
"请输入卡号"
clearable
clearable
@
keyup.enter.native=
"handleQuery"
@
keyup.enter.native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"绑定类型"
prop=
"bindType"
>
<el-select
v-model=
"queryParams.bindType"
placeholder=
"请选择"
clearable
>
<el-option
label=
"自有账户"
:value=
"1"
/>
<el-option
label=
"代发账户"
:value=
"2"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<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>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
...
@@ -43,20 +49,28 @@
...
@@ -43,20 +49,28 @@
<!--
</el-col>
-->
<!--
</el-col>
-->
<!--
<right-toolbar
:showSearch.sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
-->
<!--
<right-toolbar
:showSearch.sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
-->
<!--
</el-row>
-->
<!--
</el-row>
-->
<el-row
:gutter=
"0"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-radio-group
v-model=
"tabPosition"
@
input=
"getList"
>
<el-radio-button
label=
"private"
>
自有账户
</el-radio-button>
<el-radio-button
label=
"out"
>
代发账户
</el-radio-button>
</el-radio-group>
</el-col>
</el-row>
<el-table
v-loading=
"loading"
:data=
"alipayAccList"
>
<el-table
v-loading=
"loading"
:data=
"alipayAccList"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"所属企业"
align=
"center"
prop=
"companyName"
/>
<el-table-column
label=
"所属企业"
align=
"center"
prop=
"companyName"
/>
<el-table-column
label=
"支付宝账本信息"
align=
"center"
>
<el-table-column
label=
"卡信息"
align=
"center"
>
<el-table-column
label=
"外卡卡号"
align=
"center"
prop=
"alipayCardNo"
/>
<el-table-column
label=
"卡号/户名"
align=
"center"
prop=
"accName"
>
<el-table-column
label=
"开户户名"
align=
"center"
prop=
"accName"
/>
<template
slot-scope=
"scope"
>
<div>
{{
scope
.
row
.
alipayCardNo
}}
</div>
<div>
{{
scope
.
row
.
accName
}}
</div>
</
template
>
</el-table-column>
<el-table-column
label=
"通道"
align=
"center"
prop=
"payAccNo"
>
<
template
slot-scope=
"scope"
>
{{
sysPayChannelMap
.
get
(
scope
.
row
.
channelCode
)
}}
</
template
>
</el-table-column>
<el-table-column
label=
"备注"
align=
"center"
prop=
"channelCode"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.channelCode
&& scope.row.channelCode.indexOf('ALIPAY_BOOK') > -1"
>
记账本名称:
{{
scope
.
row
.
alipayBookNo
}}
</span>
</
template
>
</el-table-column>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
...
@@ -133,7 +147,8 @@
...
@@ -133,7 +147,8 @@
</template>
</template>
<
script
>
<
script
>
import
{
agentGetOutAccInfo
,
agentPrivateList
,
getAccAliInfo
}
from
'
@/api/business/accInfo
'
import
{
agentAccList
,
getAccAliInfo
,
listAllAccInfo
}
from
'
@/api/business/accInfo
'
import
{
listAllPayChannel
}
from
'
@/api/business/payChannel
'
export
default
{
export
default
{
name
:
"
Post
"
,
name
:
"
Post
"
,
...
@@ -165,7 +180,8 @@ export default {
...
@@ -165,7 +180,8 @@ export default {
pageSize
:
10
,
pageSize
:
10
,
companyName
:
undefined
,
companyName
:
undefined
,
accName
:
undefined
,
accName
:
undefined
,
alipayCardNo
:
undefined
alipayCardNo
:
undefined
,
bindType
:
null
},
},
// 账户详情
// 账户详情
accDetail
:
{
accDetail
:
{
...
@@ -190,6 +206,7 @@ export default {
...
@@ -190,6 +206,7 @@ export default {
toAlipayRate
:
0
,
toAlipayRate
:
0
,
toBankRate
:
0
toBankRate
:
0
},
},
sysPayChannelMap
:
null
,
configRateFormRules
:
{
configRateFormRules
:
{
toAlipayRate
:
[
toAlipayRate
:
[
{
required
:
true
,
message
:
'
请输入转账到支付宝的费率
'
,
trigger
:
'
blur
'
}
{
required
:
true
,
message
:
'
请输入转账到支付宝的费率
'
,
trigger
:
'
blur
'
}
...
@@ -205,20 +222,21 @@ export default {
...
@@ -205,20 +222,21 @@ export default {
},
},
methods
:
{
methods
:
{
/** 查询岗位列表 */
/** 查询岗位列表 */
getList
()
{
async
getList
()
{
this
.
loading
=
true
;
this
.
$modal
.
loading
();
if
(
this
.
tabPosition
===
'
private
'
)
{
try
{
agentPrivateList
(
this
.
queryParams
).
then
(
response
=>
{
if
(
!
this
.
sysPayChannelMap
)
{
this
.
alipayAccList
=
response
.
rows
;
await
listAllPayChannel
().
then
(
resp
=>
{
this
.
total
=
response
.
total
;
this
.
sysPayChannelMap
=
new
Map
(
resp
.
data
.
map
(
value
=>
[
value
.
channelCode
,
value
.
channelName
]));
this
.
loading
=
false
;
})
});
}
}
else
{
await
agentAccList
(
this
.
queryParams
).
then
(
response
=>
{
agentGetOutAccInfo
(
this
.
queryParams
).
then
(
response
=>
{
this
.
alipayAccList
=
response
.
rows
;
this
.
alipayAccList
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
this
.
loading
=
false
;
});
});
}
finally
{
this
.
$modal
.
closeLoading
()
}
}
},
},
/** 搜索按钮操作 */
/** 搜索按钮操作 */
...
...
src/views/business/salaryAccount/extAcc.vue
0 → 100644
View file @
f4c6f99f
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
label-width=
"80px"
>
<el-form-item
label=
"卡号"
prop=
"payAccNo"
>
<el-input
v-model=
"queryParams.payAccNo"
placeholder=
"请输入卡号搜索"
clearable
@
keyup.enter.native=
"handleQuery"
/>
</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>
</el-form-item>
</el-form>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"primary"
icon=
"el-icon-plus"
size=
"mini"
v-hasPermi=
"['business:payChannel:add']"
>
新增
</el-button>
</el-col>
<right-toolbar
@
queryTable=
"getList"
></right-toolbar>
</el-row>
<el-table
:data=
"accList"
>
<el-table-column
label=
"卡号"
align=
"center"
prop=
"payAccNo"
/>
<el-table-column
label=
"户名"
align=
"center"
prop=
"payAccName"
/>
<el-table-column
label=
"通道"
align=
"center"
prop=
"payAccNo"
>
<template
slot-scope=
"scope"
>
{{
sysPayChannelMap
.
get
(
scope
.
row
.
channelCode
)
}}
</
template
>
</el-table-column>
<el-table-column
label=
"关联企业"
align=
"center"
prop=
"companyName"
/>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"viewDetail(scope.row.payAccNo)"
>
详情
</el-button>
</
template
>
</el-table-column>
</el-table>
</div>
</template>
<
script
>
import
{
listAllAccInfo
}
from
'
@/api/business/accInfo
'
import
{
listAllPayChannel
}
from
'
@/api/business/payChannel
'
export
default
{
name
:
"
ExtAcc
"
,
data
()
{
return
{
// 根路径
baseURL
:
process
.
env
.
VUE_APP_BASE_API
,
accList
:
[],
sysPayChannelMap
:
null
,
// 查询参数
queryParams
:
{
bindType
:
2
,
},
};
},
created
()
{
this
.
getList
();
},
methods
:
{
/** 查询账户列表 */
async
getList
()
{
this
.
$modal
.
loading
();
try
{
if
(
!
this
.
sysPayChannelMap
)
{
await
listAllPayChannel
().
then
(
resp
=>
{
this
.
sysPayChannelMap
=
new
Map
(
resp
.
data
.
map
(
value
=>
[
value
.
channelCode
,
value
.
channelName
]));
})
}
await
listAllAccInfo
(
this
.
queryParams
).
then
(
res
=>
{
this
.
accList
=
res
.
data
})
}
finally
{
this
.
$modal
.
closeLoading
()
}
},
/** 搜索按钮操作 */
handleQuery
()
{
this
.
getList
();
},
/** 搜索重置按钮操作 */
resetQuery
()
{
this
.
resetForm
(
"
queryForm
"
);
this
.
handleQuery
();
},
viewDetail
(
accNo
)
{
}
}
};
</
script
>
src/views/business/salaryAccount/index.vue
View file @
f4c6f99f
<
template
>
<
template
>
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tab-pane
label=
"直属账户"
name=
"ownAcc"
>
<own-acc></own-acc>
</el-tab-pane>
<el-tab-pane
label=
"代发账户"
name=
"extAcc"
>
<ext-acc></ext-acc>
</el-tab-pane>
</el-tabs>
<!-- 发薪账户管理页面 -->
<!-- 发薪账户管理页面 -->
<el-tabs
v-model=
"payType"
@
tab-click=
"handleClick"
type=
"card"
>
<el-tabs
v-model=
"payType"
@
tab-click=
"handleClick"
type=
"card"
>
<el-tab-pane
label=
"自有发薪账号"
name=
"first"
>
<el-tab-pane
label=
"自有发薪账号"
name=
"first"
>
...
@@ -592,11 +600,14 @@ import { allHasNoOpenInfoCompany, bindCompanyAcc, listAllCompanyInfo } from '@/a
...
@@ -592,11 +600,14 @@ import { allHasNoOpenInfoCompany, bindCompanyAcc, listAllCompanyInfo } from '@/a
import
{
queryHasNoAccSign
}
from
'
@/api/business/laborSign
'
import
{
queryHasNoAccSign
}
from
'
@/api/business/laborSign
'
import
{
listAllCompanyPayChannel
,
signChannel
}
from
'
@/api/business/companyPayChannel
'
import
{
listAllCompanyPayChannel
,
signChannel
}
from
'
@/api/business/companyPayChannel
'
import
{
listAllPayChannel
}
from
'
@/api/business/payChannel
'
import
{
listAllPayChannel
}
from
'
@/api/business/payChannel
'
import
OwnAcc
from
'
@/views/business/salaryAccount/ownAcc.vue
'
import
ExtAcc
from
'
@/views/business/salaryAccount/extAcc.vue
'
export
default
{
export
default
{
name
:
'
SalaryAccount
'
,
name
:
'
SalaryAccount
'
,
components
:
{
TaxSignComponent
,
QrCodeComponent
,
AccSelect
},
components
:
{
ExtAcc
,
OwnAcc
,
TaxSignComponent
,
QrCodeComponent
,
AccSelect
},
data
()
{
data
()
{
return
{
return
{
activeName
:
'
ownAcc
'
,
signNoAccList
:
[],
signNoAccList
:
[],
openSign
:
{
openSign
:
{
panel
:
false
,
panel
:
false
,
...
...
src/views/business/salaryAccount/ownAcc.vue
0 → 100644
View file @
f4c6f99f
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
label-width=
"80px"
>
<el-form-item
label=
"卡号"
prop=
"payAccNo"
>
<el-input
v-model=
"queryParams.payAccNo"
placeholder=
"请输入卡号搜索"
clearable
@
keyup.enter.native=
"handleQuery"
/>
</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>
</el-form-item>
</el-form>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"primary"
icon=
"el-icon-plus"
size=
"mini"
v-hasPermi=
"['business:payChannel:add']"
>
新增
</el-button>
</el-col>
<right-toolbar
@
queryTable=
"getList"
></right-toolbar>
</el-row>
<el-table
:data=
"accList"
>
<el-table-column
label=
"卡号"
align=
"center"
prop=
"payAccNo"
/>
<el-table-column
label=
"户名"
align=
"center"
prop=
"payAccName"
/>
<el-table-column
label=
"通道"
align=
"center"
prop=
"payAccNo"
>
<template
slot-scope=
"scope"
>
{{
sysPayChannelMap
.
get
(
scope
.
row
.
channelCode
)
}}
</
template
>
</el-table-column>
</el-table>
</div>
</template>
<
script
>
import
{
listAllAccInfo
}
from
'
@/api/business/accInfo
'
import
{
listAllPayChannel
}
from
'
@/api/business/payChannel
'
export
default
{
name
:
"
OwnAcc
"
,
data
()
{
return
{
// 根路径
baseURL
:
process
.
env
.
VUE_APP_BASE_API
,
accList
:
[],
// 查询参数
queryParams
:
{
bindType
:
1
,
},
sysPayChannelMap
:
null
,
};
},
created
()
{
this
.
getList
();
},
methods
:
{
/** 查询账户列表 */
async
getList
()
{
this
.
$modal
.
loading
();
try
{
if
(
!
this
.
sysPayChannelMap
)
{
await
listAllPayChannel
().
then
(
resp
=>
{
this
.
sysPayChannelMap
=
new
Map
(
resp
.
data
.
map
(
value
=>
[
value
.
channelCode
,
value
.
channelName
]));
})
}
await
listAllAccInfo
(
this
.
queryParams
).
then
(
res
=>
{
this
.
accList
=
res
.
data
})
}
finally
{
this
.
$modal
.
closeLoading
()
}
},
/** 搜索按钮操作 */
handleQuery
()
{
this
.
getList
();
},
/** 搜索重置按钮操作 */
resetQuery
()
{
this
.
resetForm
(
"
queryForm
"
);
this
.
handleQuery
();
},
}
};
</
script
>
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