Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
psa-web
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高滢
psa-web
Commits
0b0ee048
Commit
0b0ee048
authored
Apr 22, 2025
by
‘老张’
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.91isoft.com:90/gaoying/psa-web
parents
400adca2
22bc2732
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
9 deletions
+50
-9
index.vue
src/views/costManage/dailyReimburse/index.vue
+50
-9
No files found.
src/views/costManage/dailyReimburse/index.vue
View file @
0b0ee048
...
...
@@ -202,10 +202,11 @@
</el-table>
<div
style=
"padding-right: 35%"
>
<pagination
v-show=
"total > 0"
:total=
"total"
v-model:page=
"queryParams.pageNum"
v-model:limit=
"queryParams.pageSize"
:page-sizes=
"pageSizes"
v-show=
"item.total > 0"
:total=
"item.total"
v-model:page=
"paginationState[item.projectId].pageNum"
v-model:limit=
"paginationState[item.projectId].pageSize"
@
pagination=
"getList"
/>
</div>
...
...
@@ -263,8 +264,6 @@ const printDis = (row) => {
const
data
=
reactive
({
form
:{},
queryParams
:{
pageNum
:
1
,
pageSize
:
10
,
projectName
:
undefined
,
reimbursementType
:
undefined
,
projectNumber
:
undefined
,
...
...
@@ -276,7 +275,9 @@ const data = reactive({
});
const
{
queryParams
,
form
}
=
toRefs
(
data
);
// 分页参数
const
paginationState
=
ref
({});
const
pageSizes
=
ref
([
3
,
6
,
9
,
12
,
15
]);
//获取列表第一个顶部信息
const
getTopApproveInfo
=
()
=>
{
let
item2
=
costManageList
.
value
[
0
]
...
...
@@ -289,8 +290,12 @@ const getTopApproveInfo = ()=>{
/** 查询报销列表 */
function
getList
()
{
loading
.
value
=
true
;
const
params
=
{
...
queryParams
.
value
,
projectPageParams
:
JSON
.
stringify
(
paginationState
.
value
)
}
//获取日常报销列表
listCostManage
(
queryParams
.
value
).
then
((
res
)
=>
{
listCostManage
(
params
).
then
((
res
)
=>
{
costManageList
.
value
=
res
.
rows
for
(
let
item
of
costManageList
.
value
){
if
(
!
item
.
tableItemList
){
...
...
@@ -316,6 +321,42 @@ function getList() {
})
}
/** 初始化报销列表 */
function
onMountGetList
()
{
loading
.
value
=
true
;
//获取日常报销列表
listCostManage
(
queryParams
.
value
).
then
((
res
)
=>
{
costManageList
.
value
=
res
.
rows
// 初始化分页状态
costManageList
.
value
.
forEach
((
item
)
=>
{
paginationState
.
value
[
item
.
projectId
]
=
{
pageNum
:
1
,
pageSize
:
3
,
};
});
for
(
let
item
of
costManageList
.
value
){
if
(
!
item
.
tableItemList
){
item
.
tableItemList
=
[]
}
}
for
(
let
key
in
res
.
rows
){
// console.log(data)
res
.
rows
[
key
].
tableItemList
.
sort
((
a
,
b
)
=>
{
if
(
a
.
status
===
1
&&
b
.
status
!==
1
){
return
-
1
;
}
if
(
b
.
status
===
1
&&
a
.
status
!==
1
){
return
1
;
}
return
new
Date
(
b
.
registrationTime
)
-
new
Date
(
a
.
registrationTime
)
})
}
total
.
value
=
res
.
total
loading
.
value
=
false
getTopApproveInfo
()
})
}
//获取所有审批流程
const
getAllshenpiList
=
()
=>
{
getAllapproveList
(
16
).
then
(
res
=>
{
...
...
@@ -468,7 +509,7 @@ const handleLeave = () => {
}
onMounted
(()
=>
{
g
etList
();
onMountG
etList
();
getAllshenpiList
();
getProjectList
();
getUserSelectList
();
...
...
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