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
d16f0b5d
Commit
d16f0b5d
authored
May 11, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
指令下发增加转移工作包
parent
4065adec
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
82 additions
and
3 deletions
+82
-3
stationPlanList.vue
...agement/instructionsIssued/components/stationPlanList.vue
+82
-3
No files found.
applications/dee-mes/src/views/assemblyPlanManagement/instructionsIssued/components/stationPlanList.vue
View file @
d16f0b5d
...
...
@@ -58,8 +58,9 @@
<img
v-else-if=
"data.workingStatus === 'Run'"
class=
"img-container"
title=
"已开工"
:src=
"wordImgUrl2"
@
click=
"startWorking(data)"
>
<img
v-else
class=
"img-container"
title=
"已完工"
:src=
"wordImgUrl2"
@
click=
"startWorking(data)"
>
</span>
<span
v-if=
"node.level === 3 && data.type !=='cooperate'"
:class=
"[data.isOk ?'Delivery':'Finish']"
>
{{
data
.
serialNumber
+
','
+
data
.
name
}}
</span>
<span
v-if=
"node.level === 3 && data.type ==='cooperate'"
>
{{
data
.
name
}}
</span>
<span
v-if=
"node.level === 3 && data.type !=='cooperate'&& data.type !=='transfer'"
:class=
"[data.isOk ?'Delivery':'Finish']"
>
{{
data
.
serialNumber
+
','
+
data
.
name
}}
</span>
<span
v-if=
"node.level === 3 && (data.type ==='cooperate'||data.type ==='transfer')"
:class=
"[data.type ==='transfer' ?'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>
</el-tree>
...
...
@@ -72,6 +73,7 @@
v-show=
"!isCooperate"
ref=
"detailCom"
:key=
"layConfig.layKey"
:basic-data=
"
{requestUrl}"
table-height="calc(100vh - 100px)"
:lay-config="layConfig"
:form="searchFormData"
...
...
@@ -130,7 +132,8 @@ export default {
skillType
:
''
,
isCooperate
:
false
,
currentNodekey
:
''
,
filterText
:
''
filterText
:
''
,
requestUrl
:
''
}
},
watch
:
{
...
...
@@ -373,6 +376,7 @@ export default {
}
},
loadNode
(
node
,
resolve
)
{
this
.
requestUrl
=
''
if
(
node
.
level
===
1
)
{
return
resolve
(
node
.
data
.
children
)
}
else
if
(
node
.
level
===
2
)
{
...
...
@@ -428,6 +432,14 @@ export default {
element
.
level
=
3
element
.
leaf
=
true
})
res
.
items
.
push
({
positionId
:
node
.
data
.
id
,
type
:
'transfer'
,
serialNumber
:
node
.
data
.
serialNumber
,
name
:
'转移工作包'
,
id
:
'transfer_'
+
parseInt
(
Math
.
random
()
*
100000000000000
,
10
),
leaf
:
false
})
return
resolve
(
res
.
items
)
})
.
catch
((
err
)
=>
{
...
...
@@ -436,6 +448,8 @@ export default {
})
.
finally
(()
=>
{})
}
}
else
if
(
node
.
level
===
3
&&
node
.
data
&&
node
.
data
.
type
===
'transfer'
)
{
this
.
getQueryRetention
(
node
,
resolve
)
}
else
if
(
node
.
level
===
3
)
{
if
(
node
.
type
===
'cooperate'
)
{
this
.
isCooperate
=
true
...
...
@@ -460,7 +474,69 @@ export default {
const
pNode
=
this
.
$refs
.
tree
.
getNode
(
node
).
parent
.
data
this
.
$bus
.
$emit
(
'getMissData'
,
pNode
)
})
}
else
if
(
node
.
level
===
4
)
{
this
.
requestUrl
=
`/JoExecutePlan/issuedSearch?sorties=
${
this
.
form
.
sortiesName
}
&position=
${
node
.
parentPosition
}
&assemblyUnit=
${
node
.
serialNumber
}
`
this
.
$nextTick
(()
=>
{
if
(
this
.
$refs
.
detailCom
.
$refs
.
asCom
&&
this
.
$refs
.
detailCom
.
$refs
.
asCom
.
getData
)
{
this
.
$refs
.
detailCom
.
$refs
.
asCom
.
getData
()
}
const
pNode
=
this
.
$refs
.
tree
.
getNode
(
node
).
parent
.
data
this
.
$bus
.
$emit
(
'getMissData'
,
pNode
)
})
}
},
getQueryRetention
(
node
,
resolve
)
{
const
params
=
{
'searchItems'
:
{
'children'
:
[
{
'items'
:
[
{
'fieldName'
:
'state'
,
'operator'
:
'EQ'
,
'value'
:
'Approved'
},
{
'fieldName'
:
'enterPosition'
,
'operator'
:
'EQ'
,
'value'
:
node
.
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
item
.
level
=
4
item
.
parentPosition
=
node
.
data
.
serialNumber
||
''
return
item
})
return
resolve
(
newChildren
)
}).
catch
(()
=>
{
return
resolve
([])
})
},
formatTime
()
{
const
d
=
new
Date
()
...
...
@@ -661,6 +737,9 @@ export default {
.Delivery
{
color
:
#0000ff
;
}
.Reserved
{
color
:
#ff0000
;
}
.Finish
{
color
:
#008000
;
}
...
...
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