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
fdbe82eb
Commit
fdbe82eb
authored
May 10, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
站位计划维护第三层增加转移工作包及子集(暂存,点击加载右侧待联调)
parent
2a02e53b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
84 additions
and
22 deletions
+84
-22
stationPlanList.vue
...PlanManagement/stationPlanMaintenance/stationPlanList.vue
+84
-22
No files found.
applications/dee-mes/src/views/assemblyPlanManagement/stationPlanMaintenance/stationPlanList.vue
View file @
fdbe82eb
...
@@ -51,7 +51,9 @@
...
@@ -51,7 +51,9 @@
<i
:class=
"'tree' + node.level"
/>
<i
:class=
"'tree' + node.level"
/>
<span
v-if=
"node.level === 1"
class=
"label change-text"
:title=
"data.serialNumber"
>
{{
data
.
serialNumber
}}
</span>
<span
v-if=
"node.level === 1"
class=
"label change-text"
:title=
"data.serialNumber"
>
{{
data
.
serialNumber
}}
</span>
<span
v-if=
"node.level === 2"
class=
"change-text"
>
{{
data
.
serialNumber
+
','
+
data
.
name
}}
</span>
<span
v-if=
"node.level === 2"
class=
"change-text"
>
{{
data
.
serialNumber
+
','
+
data
.
name
}}
</span>
<span
v-if=
"node.level === 3"
class=
"change-text"
:class=
"[data.target.isOk ?'Delivery':'Finish']"
>
{{
data
.
target
.
serialNumber
+
','
+
data
.
target
.
name
}}
</span>
<span
v-if=
"node.level === 3&& data.target"
class=
"change-text"
:class=
"[data.target.isOk ?'Delivery':'Finish']"
>
{{
data
.
target
.
serialNumber
+
','
+
data
.
target
.
name
}}
</span>
<span
v-if=
"data.name==='转移工作包'"
class=
"change-text Reserved"
>
{{
data
.
name
}}
</span>
<span
v-if=
"node.level === 4"
class=
"change-text"
:class=
"[data.isOk ?'Delivery':'Finish']"
>
{{
data
.
serialNumber
+
','
+
data
.
name
}}
</span>
</span>
</span>
</span>
</span>
</el-tree>
</el-tree>
...
@@ -499,7 +501,7 @@ export default {
...
@@ -499,7 +501,7 @@ export default {
item
.
extPositionLinks
.
forEach
(
element
=>
{
item
.
extPositionLinks
.
forEach
(
element
=>
{
element
.
leaf
=
true
element
.
leaf
=
true
})
})
item
.
children
=
item
.
extPositionLinks
item
.
children
=
[...
item
.
extPositionLinks
,
{
name
:
'转移工作包'
,
children
:
[],
id
:
parseInt
(
Math
.
random
()
*
100000000000000
,
10
)
}]
}
}
})
})
this
.
treeData
=
[
this
.
treeData
=
[
...
@@ -590,30 +592,90 @@ export default {
...
@@ -590,30 +592,90 @@ export default {
})
})
},
},
handleNodeClick
(
data
,
node
)
{
handleNodeClick
(
data
,
node
)
{
data
.
activeTab
=
this
.
activeTab
if
(
data
.
name
===
'转移工作包'
)
{
data
.
level
=
node
.
level
this
.
getQueryRetention
(
data
,
node
)
data
.
searchStories
=
this
.
form
.
sortiesName
}
else
{
this
.
activeNodeData
=
data
data
.
activeTab
=
this
.
activeTab
if
(
node
.
level
===
2
||
node
.
level
===
3
)
{
data
.
level
=
node
.
level
this
.
$nextTick
(()
=>
{
data
.
searchStories
=
this
.
form
.
sortiesName
if
(
this
.
activeTab
===
'0'
)
{
this
.
activeNodeData
=
data
if
(
this
.
$refs
.
detailCom
.
$refs
.
asCom
&&
this
.
$refs
.
detailCom
.
$refs
.
asCom
.
getData
)
{
if
(
node
.
level
===
2
||
node
.
level
===
3
)
{
this
.
$refs
.
detailCom
.
$refs
.
asCom
.
getData
(
data
)
this
.
$nextTick
(()
=>
{
this
.
$emit
(
'getMissData'
,
null
)
if
(
this
.
activeTab
===
'0'
)
{
}
if
(
this
.
$refs
.
detailCom
.
$refs
.
asCom
&&
this
.
$refs
.
detailCom
.
$refs
.
asCom
.
getData
)
{
}
else
if
(
this
.
activeTab
===
'1'
)
{
this
.
$refs
.
detailCom
.
$refs
.
asCom
.
getData
(
data
)
if
(
this
.
$refs
.
detailCom2
.
$refs
.
asCom
&&
this
.
$refs
.
detailCom2
.
$refs
.
asCom
.
getData
)
{
this
.
$emit
(
'getMissData'
,
null
)
this
.
$refs
.
detailCom2
.
$refs
.
asCom
.
getData
(
data
)
}
this
.
$emit
(
'getMissData'
,
null
)
}
else
if
(
this
.
activeTab
===
'1'
)
{
if
(
this
.
$refs
.
detailCom2
.
$refs
.
asCom
&&
this
.
$refs
.
detailCom2
.
$refs
.
asCom
.
getData
)
{
this
.
$refs
.
detailCom2
.
$refs
.
asCom
.
getData
(
data
)
this
.
$emit
(
'getMissData'
,
null
)
}
}
else
if
(
this
.
activeTab
===
'2'
)
{
if
(
this
.
$refs
.
detailComSI2
.
$refs
.
asCom
&&
this
.
$refs
.
detailComSI2
.
$refs
.
asCom
.
getData
)
{
this
.
$refs
.
detailComSI2
.
$refs
.
asCom
.
getData
(
data
)
this
.
$emit
(
'getMissData'
,
null
)
}
}
}
}
else
if
(
this
.
activeTab
===
'2'
)
{
})
if
(
this
.
$refs
.
detailComSI2
.
$refs
.
asCom
&&
this
.
$refs
.
detailComSI2
.
$refs
.
asCom
.
getData
)
{
}
this
.
$refs
.
detailComSI2
.
$refs
.
asCom
.
getData
(
data
)
}
this
.
$emit
(
'getMissData'
,
null
)
},
getQueryRetention
(
data
,
node
)
{
const
params
=
{
'searchItems'
:
{
'children'
:
[
{
'items'
:
[
{
'fieldName'
:
'state'
,
'operator'
:
'EQ'
,
'value'
:
'Approved'
},
{
'fieldName'
:
'enterPosition'
,
'operator'
:
'EQ'
,
'value'
:
node
.
parent
.
data
&&
node
.
parent
.
data
.
serialNumber
||
''
},
{
'fieldName'
:
'sorties'
,
'operator'
:
'EQ'
,
'value'
:
this
.
form
.
sortiesName
||
''
}
],
'operator'
:
'AND'
}
}
],
'items'
:
[],
'operator'
:
'AND'
},
'openProps'
:
[
{
'name'
:
'extRetentionPlanLinks'
}
}
})
],
'sortItem'
:
[
{
'fieldName'
:
'createTime'
,
'sortOrder'
:
'desc'
}
]
}
}
post
(
`/ExtRetention/queryRetention`
,
params
)
.
then
((
res
)
=>
{
const
newChildren
=
res
.
items
&&
res
.
items
.
map
(
item
=>
{
item
.
leaf
=
true
return
item
})
if
(
newChildren
)
{
this
.
$refs
.
tree
.
updateKeyChildren
(
node
.
key
,
newChildren
)
this
.
defaultExpandedKeys
=
[
node
.
key
]
}
}).
catch
(
err
=>
{
console
.
log
(
err
)
}).
finally
(()
=>
{
})
},
},
getCurrentData
(
data
)
{
getCurrentData
(
data
)
{
if
(
data
.
level
===
2
||
data
.
level
===
3
)
{
if
(
data
.
level
===
2
||
data
.
level
===
3
)
{
...
...
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