Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
weChatFlowApprove
Project
Project
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
刘川
weChatFlowApprove
Commits
6856999f
Commit
6856999f
authored
Nov 19, 2025
by
chicheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
要货审批通用页面调整(考虑分流要货)
parent
97b9b88f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
8 deletions
+41
-8
ShipApproval.vue
src/views/ship-approval/ShipApproval.vue
+41
-8
No files found.
src/views/ship-approval/ShipApproval.vue
View file @
6856999f
...
...
@@ -365,17 +365,20 @@ export default {
isReadonly
()
{
return
false
},
// 查找第一个审批节点(排除发起人节点和分流审批节点)
firstApprovalNode
()
{
return
this
.
findFirstApprovalNode
()
},
// 判断当前是否是第一个审批节点
isFirstApprovalNode
()
{
if
(
this
.
tablePathData
.
length
>
1
&&
this
.
tablePathData
[
1
].
statusId
===
'executing'
)
{
return
true
}
return
false
const
node
=
this
.
firstApprovalNode
// 判断找到的节点是否为执行中状态
return
node
&&
node
.
statusId
===
'executing'
},
// 获取第一条审批节点的opinion数据
firstApprovalOpinion
()
{
if
(
this
.
tablePathData
.
length
>
1
)
{
return
this
.
tablePathData
[
1
].
opinion
||
''
}
return
''
const
node
=
this
.
firstApprovalNode
return
node
?
(
node
.
opinion
||
''
)
:
''
}
},
created
()
{
...
...
@@ -388,6 +391,36 @@ export default {
}
},
methods
:
{
/**
* 查找第一个审批节点
* 排除规则:
* 1. 排除第一个节点(发起人节点,索引0)
* 2. 如果第二个节点的 subProcUnitId === 'shunt',也排除(分流审批)
* @returns {Object|null} 第一个审批节点,如果不存在则返回 null
*/
findFirstApprovalNode
()
{
const
data
=
this
.
tablePathData
if
(
!
data
||
data
.
length
===
0
)
{
return
null
}
// 从索引1开始查找(排除第一个节点,发起人节点)
let
startIndex
=
1
// 如果第二个节点是分流审批(subProcUnitId === 'shunt'),也排除
if
(
data
.
length
>
1
&&
data
[
1
].
subProcUnitId
===
'shunt'
)
{
startIndex
=
2
}
// 从 startIndex 开始查找第一个审批节点
for
(
let
i
=
startIndex
;
i
<
data
.
length
;
i
++
)
{
const
node
=
data
[
i
]
// 返回找到的第一个节点
return
node
}
return
null
},
handlePicker
()
{
this
.
showPicker
=
this
.
flag
},
...
...
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