Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-csf-front
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
1
Merge Requests
1
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
yuzhenWang
yd-csf-front
Commits
c3092767
Commit
c3092767
authored
Apr 03, 2026
by
Sweet Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对接出纳管理导出功能
parent
5bc9e590
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
16 deletions
+17
-16
src/api/financial/commission.js
+1
-3
src/views/financialCenter/payroll.vue
+16
-13
No files found.
src/api/financial/commission.js
View file @
c3092767
...
...
@@ -443,9 +443,8 @@ export function salarySummary(data) {
// 薪资拆分应发信息汇总列表下载---待提供
export
function
exportPayRoll
(
data
)
{
return
request
({
url
:
'csf/api/salarySplit/
summary/page
'
,
url
:
'csf/api/salarySplit/
export/summary/list
'
,
method
:
'post'
,
data
:
data
,
responseType
:
'blob'
})
}
\ No newline at end of file
src/views/financialCenter/payroll.vue
View file @
c3092767
...
...
@@ -107,8 +107,8 @@ const getList = async (searchParams = {}) => {
try
{
const
params
=
{
...
searchParams
,
startMonth
:
searchParams
.
payoutMonth
[
0
]
,
endMonth
:
searchParams
.
payoutMonth
[
1
]
,
startMonth
:
searchParams
.
payoutMonth
?
searchParams
.
payoutMonth
[
0
]
:
''
,
endMonth
:
searchParams
.
payoutMonth
?
searchParams
.
payoutMonth
[
1
]
:
''
,
payoutMonth
:
undefined
,
pageNo
:
currentPage
.
value
,
pageSize
:
pageSize
.
value
...
...
@@ -120,10 +120,6 @@ const getList = async (searchParams = {}) => {
pageTotal
.
value
=
response
.
data
.
page
.
total
loading
.
value
=
false
}
// 数据加载完成后,设置当前页的选中状态
nextTick
(()
=>
{
setCurrentPageSelection
()
})
}
catch
(
error
)
{
loading
.
value
=
false
// ElMessage.error('获取数据失败')
...
...
@@ -149,14 +145,21 @@ const handleReset = () => {
const
handleExport
=
async
()
=>
{
// 获取搜索参数
const
params
=
searchFormRef
.
value
?.
getFormData
()
||
{}
let
params
=
searchFormRef
.
value
?.
getFormData
()
params
=
{
...
params
,
startMonth
:
params
.
payoutMonth
?
params
.
payoutMonth
[
0
]
:
''
,
endMonth
:
params
.
payoutMonth
?
params
.
payoutMonth
[
1
]
:
''
,
payoutMonth
:
undefined
,
}
const
response
=
await
exportPayRoll
(
params
)
const
fileName
=
`薪资发放记录导出_
${
new
Date
().
toLocaleString
().
replace
(
/
\/
/g
,
''
).
replace
(
/:/g
,
''
).
replace
(
/
\s
/g
,
''
)}
.xlsx`
await
safeDownload
(
response
,
fileName
,
'application/vnd.ms-excel;charset=utf-8'
)
if
(
response
.
data
&&
response
.
data
.
url
){
window
.
open
(
response
.
data
.
url
)
}
else
{
ElMessage
.
error
(
'导出失败'
)
}
}
...
...
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