Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TF-MOM-WEB
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
TFMOM
TF-MOM-WEB
Commits
d0f8fe6d
Commit
d0f8fe6d
authored
Jul 19, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP_物料配套申请
parent
215ef029
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
util.js
applications/architecture-dee/src/utils/util.js
+23
-0
No files found.
applications/architecture-dee/src/utils/util.js
View file @
d0f8fe6d
...
...
@@ -1673,6 +1673,28 @@ export function findDownByNameVnode(component, targetName) {
}
return null
}
// 获取指令
export function findAndCollectExtProcessPlanInfo(startVal, resultVal = []) {
if (!Array.isArray(resultVal)) {
throw new Error('resultVal must be an array')
}
if (!startVal || !startVal.target) {
return resultVal // 提前返回,避免后续的错误
}
const target = startVal.target
if (target.subTypeName === 'ExtProcessPlanAOR' || target.subTypeName === 'ExtProcessPlanAssembly') {
resultVal.push({
...target,
state: target.joExecutePlan && target.joExecutePlan.length && target.joExecutePlan[0].planState
})
}
if (target.sourceExtProcessUsageLink) {
for (const child of target.sourceExtProcessUsageLink) {
findAndCollectExtProcessPlanInfo(child, resultVal)
}
}
return resultVal
}
export function addMinutes(date, minutes) {
const dateFormat=new Date(date)
dateFormat.setMinutes(dateFormat.getMinutes() + minutes)
...
...
@@ -1683,6 +1705,7 @@ export function addMinutes(date, minutes) {
export default {
findByNameVnode,
findDownByNameVnode,
findAndCollectExtProcessPlanInfo,
dateFormat,
treeFindBackArray,
throttle,
...
...
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