Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rbc-demo
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王衍超
rbc-demo
Commits
abe14953
Commit
abe14953
authored
Apr 13, 2022
by
Joey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(@gms/gms-plugin-billexpand): 审批轨迹会签接口调整
parent
d4f72e8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
workflow-track.vue
...@gms/gms-plugin-billexpand/src/control/workflow-track.vue
+41
-0
No files found.
develop/@gms/gms-plugin-billexpand/src/control/workflow-track.vue
View file @
abe14953
...
@@ -166,6 +166,47 @@ export default {
...
@@ -166,6 +166,47 @@ export default {
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
const
formatTrack
=
(
curTrack
)
=>
{
const
formatTrack
=
(
curTrack
)
=>
{
if
(
!
curTrack
)
return
[]
if
(
!
curTrack
)
return
[]
curTrack
.
steps
=
curTrack
.
steps
.
reverse
()
curTrack
.
steps
=
curTrack
.
steps
.
map
((
step
)
=>
{
if
(
step
.
subTasks
&&
step
.
subTasks
.
length
)
{
let
participants
=
[]
let
actualOwnerList
=
[]
let
resultFlag
=
0
let
rejectFlag
=
false
for
(
let
task
of
step
.
subTasks
)
{
if
(
task
.
state
==
2
&&
task
.
result
==
3
||
task
.
state
==
3
)
{
rejectFlag
=
true
break
}
}
for
(
let
task
of
step
.
subTasks
)
{
if
(
task
.
participants
)
{
participants
=
participants
.
concat
(
task
.
participants
)
}
if
(
task
.
actualOwner
)
{
if
(
!
rejectFlag
||
task
.
state
==
2
&&
task
.
result
==
3
)
{
actualOwnerList
.
push
(
task
.
actualOwner
)
}
}
const
curResult
=
task
.
result
||
0
resultFlag
|=
1
<<
curResult
}
step
.
result
=
resultFlag
&
8
?
3
:
resultFlag
&
1
?
0
:
1
rejectFlag
&&
(
step
.
state
=
2
)
step
.
participants
=
participants
step
.
actualOwner
=
actualOwnerList
.
join
(
'、'
)
}
return
step
})
console
.
log
(
curTrack
)
curTrack
.
steps
.
push
({
curTrack
.
steps
.
push
({
title
:
"提交申请"
,
title
:
"提交申请"
,
state
:
2
,
state
:
2
,
...
...
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