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
a724bf89
Commit
a724bf89
authored
Aug 17, 2023
by
jingnan
👀
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://94.191.100.41/tfmom/tf-mom-web
into dev
parents
72b61d3e
11d14424
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
159 additions
and
10 deletions
+159
-10
config.js
...mes/src/privateComponents/components/MBOMConfig/config.js
+6
-4
unit.vue
...-mes/src/privateComponents/components/MBOMConfig/unit.vue
+0
-1
content.vue
...ssemblyPlanManagement/assemblyPlanMaintenance/content.vue
+29
-0
index.vue
.../assemblyPlanManagement/assemblyPlanMaintenance/index.vue
+51
-0
search.vue
...assemblyPlanManagement/assemblyPlanMaintenance/search.vue
+29
-0
gantt.vue
...s/assemblyPlanManagement/stationPlanMaintenance/gantt.vue
+41
-5
index.vue
...s/assemblyPlanManagement/stationPlanMaintenance/index.vue
+3
-0
No files found.
applications/dee-mes/src/privateComponents/components/MBOMConfig/config.js
View file @
a724bf89
...
@@ -37,7 +37,7 @@ export default {
...
@@ -37,7 +37,7 @@ export default {
.
forEach
(
l
=>
{
.
forEach
(
l
=>
{
if
(
l
.
isCritical
)
{
if
(
l
.
isCritical
)
{
l
.
isCritical
=
false
l
.
isCritical
=
false
this
.
gantt
.
refresh
Link
(
l
.
id
)
this
.
gantt
.
update
Link
(
l
.
id
)
this
.
modifyLink
(
l
,
'MODIFY'
)
this
.
modifyLink
(
l
,
'MODIFY'
)
}
}
})
})
...
@@ -46,10 +46,11 @@ export default {
...
@@ -46,10 +46,11 @@ export default {
.
forEach
(
l
=>
{
.
forEach
(
l
=>
{
if
(
!
l
.
isCritical
)
{
if
(
!
l
.
isCritical
)
{
l
.
isCritical
=
true
l
.
isCritical
=
true
this
.
gantt
.
refresh
Link
(
l
.
id
)
this
.
gantt
.
update
Link
(
l
.
id
)
this
.
modifyLink
(
l
,
'MODIFY'
)
this
.
modifyLink
(
l
,
'MODIFY'
)
}
}
})
})
this
.
gantt
.
parse
(
this
.
params
)
},
},
modifyTask
(
task
,
operator
)
{
modifyTask
(
task
,
operator
)
{
const
_task
=
{
const
_task
=
{
...
@@ -142,7 +143,8 @@ export default {
...
@@ -142,7 +143,8 @@ export default {
return
allGroups
.
filter
(
g
=>
g
.
links
.
find
(
id
=>
str
.
includes
(
id
+
''
)))
return
allGroups
.
filter
(
g
=>
g
.
links
.
find
(
id
=>
str
.
includes
(
id
+
''
)))
},
},
getPeerTasks
(
link
)
{
getPeerTasks
(
link
)
{
const
allTasks
=
this
.
gantt
.
getTableData
().
data
.
data
this
.
params
=
this
.
gantt
.
getTableData
().
data
const
allTasks
=
this
.
params
.
data
const
target
=
Number
(
link
.
target
)
const
target
=
Number
(
link
.
target
)
const
targetTask
=
allTasks
.
find
(
t
=>
t
.
id
===
target
)
const
targetTask
=
allTasks
.
find
(
t
=>
t
.
id
===
target
)
if
(
!
targetTask
)
{
if
(
!
targetTask
)
{
...
@@ -151,7 +153,7 @@ export default {
...
@@ -151,7 +153,7 @@ export default {
return
allTasks
.
filter
(
t
=>
t
.
parenId
===
targetTask
.
parenId
)
return
allTasks
.
filter
(
t
=>
t
.
parenId
===
targetTask
.
parenId
)
},
},
getPeerLinks
(
tasks
)
{
getPeerLinks
(
tasks
)
{
const
allLinks
=
this
.
gantt
.
getTableData
().
data
.
links
const
allLinks
=
this
.
params
.
links
return
allLinks
.
filter
(
l
=>
tasks
.
find
(
t
=>
t
.
id
===
Number
(
l
.
target
)))
return
allLinks
.
filter
(
l
=>
tasks
.
find
(
t
=>
t
.
id
===
Number
(
l
.
target
)))
}
}
...
...
applications/dee-mes/src/privateComponents/components/MBOMConfig/unit.vue
View file @
a724bf89
...
@@ -312,7 +312,6 @@ export default {
...
@@ -312,7 +312,6 @@ export default {
}
}
ganttAss
.
config
.
drag_resize
=
false
ganttAss
.
config
.
drag_resize
=
false
ganttAss
.
config
.
start_on_monday
=
true
ganttAss
.
config
.
start_on_monday
=
true
ganttAss
.
config
.
highlight_critical_path
=
true
ganttAss
.
config
.
columns
=
[
ganttAss
.
config
.
columns
=
[
{
{
name
:
'id'
,
name
:
'id'
,
...
...
applications/dee-mes/src/views/assemblyPlanManagement/assemblyPlanMaintenance/content.vue
0 → 100644
View file @
a724bf89
<
template
>
<div>
content
</div>
</
template
>
<
script
>
export
default
{
name
:
'TfMomWebContent'
,
data
()
{
return
{
}
},
mounted
()
{
},
methods
:
{
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
</
style
>
applications/dee-mes/src/views/assemblyPlanManagement/assemblyPlanMaintenance/index.vue
0 → 100644
View file @
a724bf89
<
template
>
<div
class=
"show-page-com assembly-plan-maintenance-page"
>
<dee-fold-pane
:min-percent=
"minPercent"
:default-percent=
"defaultPercent"
split=
"vertical"
class=
"detail-pane"
>
<template
slot=
"paneL"
>
<search
/>
</
template
>
<
template
slot=
"paneR"
>
<content2
/>
</
template
>
</dee-fold-pane>
</div>
</template>
<
script
>
import
search
from
'./search.vue'
import
content2
from
'./content.vue'
export
default
{
name
:
'TfMomWebIndex'
,
components
:
{
search
,
content2
},
data
()
{
return
{
minPercent
:
15
,
defaultPercent
:
15
}
},
mounted
()
{
},
methods
:
{
}
}
</
script
>
<
style
lang=
"scss"
>
.assembly-plan-maintenance-page
{
margin
:
4px
;
margin-top
:
0px
;
padding
:
8px
;
height
:
calc
(
100%
-
20px
);
width
:
calc
(
100%
-
24px
);
background-color
:
#fff
;
}
</
style
>
applications/dee-mes/src/views/assemblyPlanManagement/assemblyPlanMaintenance/search.vue
0 → 100644
View file @
a724bf89
<
template
>
<div>
search
</div>
</
template
>
<
script
>
export
default
{
name
:
'TfMomWebSearch'
,
data
()
{
return
{
}
},
mounted
()
{
},
methods
:
{
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
</
style
>
applications/dee-mes/src/views/assemblyPlanManagement/stationPlanMaintenance/gantt.vue
View file @
a724bf89
...
@@ -27,6 +27,7 @@ export default {
...
@@ -27,6 +27,7 @@ export default {
tooltipLoading
:
true
,
tooltipLoading
:
true
,
tooltipData
:
{},
tooltipData
:
{},
start_date
:
null
,
start_date
:
null
,
planStateOptions
:
[],
openTree
:
[],
openTree
:
[],
seePdfShow
:
false
,
seePdfShow
:
false
,
onlyUuid
:
'stationPlan-gantt'
,
onlyUuid
:
'stationPlan-gantt'
,
...
@@ -48,6 +49,9 @@ export default {
...
@@ -48,6 +49,9 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
initGantt
()
this
.
initGantt
()
this
.
$utils
.
getDicListByCode
(
'WRProductionState'
).
then
(
res
=>
{
this
.
planStateOptions
=
res
})
},
},
methods
:
{
methods
:
{
...
@@ -246,7 +250,7 @@ export default {
...
@@ -246,7 +250,7 @@ export default {
resize
:
true
,
resize
:
true
,
template
:
function
(
task
)
{
template
:
function
(
task
)
{
if
(
task
.
$level
===
0
)
{
if
(
task
.
$level
===
0
)
{
const
state
=
that
.
s
tateOptions
.
find
(
r
=>
r
.
value
===
task
.
status
)
const
state
=
that
.
planS
tateOptions
.
find
(
r
=>
r
.
value
===
task
.
status
)
return
(
return
(
"<div class='ca color "
+
"<div class='ca color "
+
task
.
status
+
task
.
status
+
...
@@ -255,9 +259,9 @@ export default {
...
@@ -255,9 +259,9 @@ export default {
'</div>'
'</div>'
)
)
}
else
{
}
else
{
const
state
=
that
.
s
tateOptions
.
find
(
r
=>
r
.
value
===
task
.
status
)
const
state
=
that
.
planS
tateOptions
.
find
(
r
=>
r
.
value
===
task
.
status
)
return
(
return
(
"<div class='ao "
+
"<div class='ao
color
"
+
task
.
status
+
task
.
status
+
"'>"
+
"'>"
+
(
state
&&
state
.
label
||
task
.
status
)
+
(
state
&&
state
.
label
||
task
.
status
)
+
...
@@ -367,8 +371,7 @@ export default {
...
@@ -367,8 +371,7 @@ export default {
getData
()
{
getData
()
{
const
params
=
{
const
params
=
{
positionNumber
:
this
.
form
.
positionNumber
,
positionNumber
:
this
.
form
.
positionNumber
,
sorties
:
this
.
form
.
sortiesName
,
sorties
:
this
.
form
.
sortiesName
serialNumber
:
this
.
form
.
AOName
||
''
}
}
if
(
this
.
form
.
state
)
{
if
(
this
.
form
.
state
)
{
params
.
state
=
this
.
form
.
state
params
.
state
=
this
.
form
.
state
...
@@ -397,6 +400,11 @@ export default {
...
@@ -397,6 +400,11 @@ export default {
}
}
data
.
forEach
(
p
=>
{
data
.
forEach
(
p
=>
{
this
.
addwrProduction
(
p
,
params
)
this
.
addwrProduction
(
p
,
params
)
if
(
p
.
aoPlans
)
{
p
.
aoPlans
.
forEach
(
t
=>
{
this
.
addAO
(
p
,
t
,
params
)
})
}
})
})
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
gantt
.
parse
(
params
)
this
.
gantt
.
parse
(
params
)
...
@@ -431,6 +439,34 @@ export default {
...
@@ -431,6 +439,34 @@ export default {
60
60
}
}
},
},
toAO
(
m
,
p
)
{
return
{
id
:
p
.
id
,
start_date
:
p
.
joExecutePlan
[
0
].
scheduledStart
,
status
:
p
.
joExecutePlan
[
0
].
state
,
text
:
p
.
serialNumber
,
parent
:
m
.
id
,
right_text
:
p
.
name
,
// 齐套率
fitRates
:
Math
.
round
(
p
.
fitRates
*
1000
)
/
10
+
'%'
,
// 问题状态
problemStatus
:
p
.
problemStatus
,
tooltipId
:
p
.
joExecutePlan
[
0
].
id
,
progress
:
p
.
joExecutePlan
[
0
].
percentage
,
constPeriod
:
Number
(
p
.
joExecutePlan
[
0
].
workHour
)
||
0
,
open
:
this
.
openTree
.
includes
(
p
.
id
),
duration
:
(
new
Date
(
p
.
joExecutePlan
[
0
].
scheduledEnd
)
-
new
Date
(
p
.
joExecutePlan
[
0
].
scheduledStart
))
/
1000
/
60
}
},
addAO
(
m
,
p
,
params
)
{
if
(
p
.
joExecutePlan
&&
p
.
joExecutePlan
[
0
])
{
params
.
data
.
push
(
this
.
toAO
(
m
,
p
))
}
},
addwrProduction
(
p
,
params
)
{
addwrProduction
(
p
,
params
)
{
if
(
p
.
wrProduction
&&
p
.
wrProduction
[
0
])
{
if
(
p
.
wrProduction
&&
p
.
wrProduction
[
0
])
{
params
.
data
.
push
(
this
.
toWrProduction
(
p
))
params
.
data
.
push
(
this
.
toWrProduction
(
p
))
...
...
applications/dee-mes/src/views/assemblyPlanManagement/stationPlanMaintenance/index.vue
View file @
a724bf89
...
@@ -85,6 +85,9 @@ export default {
...
@@ -85,6 +85,9 @@ export default {
&
.TF_ZF
{
&
.TF_ZF
{
background-color
:
#666
;
background-color
:
#666
;
}
}
&
.New
{
background-color
:
#97b552
;
}
}
}
.gantt-bar
{
.gantt-bar
{
height
:
calc
(
100%
-
208px
);
height
:
calc
(
100%
-
208px
);
...
...
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