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
d5436d4c
Commit
d5436d4c
authored
Aug 21, 2023
by
arvin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
23d36a3f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
12 deletions
+28
-12
searchBar.vue
...semblyPlanManagement/stationPlanMaintenance/searchBar.vue
+25
-11
station.vue
...assemblyPlanManagement/stationPlanMaintenance/station.vue
+3
-1
No files found.
applications/dee-mes/src/views/assemblyPlanManagement/stationPlanMaintenance/searchBar.vue
View file @
d5436d4c
...
...
@@ -17,12 +17,12 @@
</el-select>
</el-form-item>
<el-form-item
label=
"架次:"
>
<el-select
v-model=
"form.sorties"
:style=
"
{'width':'
8
0px'}" size="mini" placeholder="架次">
<el-select
v-model=
"form.sorties"
:style=
"
{'width':'
10
0px'}" size="mini" placeholder="架次">
<el-option
v-for=
"
item
in sortiesData"
:key=
"item.
id
"
:label=
"item.
defName
"
:value=
"item.
id
"
v-for=
"
(item, i)
in sortiesData"
:key=
"item.
value + i
"
:label=
"item.
label
"
:value=
"item.
value
"
/>
</el-select>
</el-form-item>
...
...
@@ -47,7 +47,7 @@
<el-button
type=
""
size=
"mini"
@
click=
"goto"
>
站位计划调整
</el-button>
</el-form-item>
<el-form-item
style=
"width: calc(100% - 8
5
0px);
style=
"width: calc(100% - 8
7
0px);
text-align: right;"
>
<div
class=
"legnd"
>
...
...
@@ -83,6 +83,7 @@ export default {
headerShow
:
true
,
modelData
:
[],
sortiesData
:
[],
SoriteTypeOptions
:
[],
curColorStatus
:
''
,
timeoutId
:
null
,
form
:
{}
...
...
@@ -121,8 +122,11 @@ export default {
}
}
},
created
()
{
this
.
getModelData
()
created
()
{
// SoriteType
this
.
$utils
.
getDicListByCode
(
'SoriteType'
).
then
(
res
=>
{
this
.
SoriteTypeOptions
=
res
this
.
getModelData
()
})
},
mounted
()
{
...
...
@@ -131,13 +135,23 @@ export default {
getSortiesList
()
{
this
.
sortiesData
=
[]
const
params
=
{
'searchItems'
:
{
'items'
:
[{
'fieldName'
:
'id'
,
'operator'
:
'NEQ'
,
'value'
:
0
}]
},
'sortItem'
:
[{
'fieldName'
:
'modifyTime'
,
'sortOrder'
:
'asc'
}]
}
this
.
$api
.
searchApi
(
'AircraftSorties'
,
params
).
then
(
res
=>
{
params
.
openProps
=
[{
name
:
'target'
},
{
name
:
'source'
}]
this
.
$api
.
searchApi
(
'SoritesLink'
,
params
).
then
(
res
=>
{
if
(
res
.
items
&&
res
.
items
.
content
)
{
this
.
sortiesData
=
res
.
items
.
content
this
.
$set
(
this
.
form
,
'sorties'
,
this
.
sortiesData
[
0
].
id
)
this
.
sortiesData
=
res
.
items
.
content
.
map
(
row
=>
{
return
{
value
:
`
${
row
.
sourceId
}
:
${
row
.
targetId
}
`
,
label
:
this
.
getSoritesLabel
(
row
)
}
})
this
.
$set
(
this
.
form
,
'sorties'
,
this
.
sortiesData
[
0
].
value
)
}
})
},
getSoritesLabel
(
row
)
{
const
type
=
(
row
.
target
&&
row
.
target
.
type
)
?
this
.
SoriteTypeOptions
.
find
(
r
=>
r
.
value
===
row
.
target
.
type
)
:
''
return
`
${
row
.
source
.
defName
}
${
type
&&
type
.
label
||
''
}
`
},
getModelData
()
{
this
.
modelData
=
[]
const
params
=
{
'searchItems'
:
{
'items'
:
[{
'fieldName'
:
'id'
,
'operator'
:
'NEQ'
,
'value'
:
0
}]
},
'sortItem'
:
[{
'fieldName'
:
'modifyTime'
,
'sortOrder'
:
'asc'
}]
}
...
...
applications/dee-mes/src/views/assemblyPlanManagement/stationPlanMaintenance/station.vue
View file @
d5436d4c
...
...
@@ -100,8 +100,10 @@ export default {
methods
:
{
getStation
()
{
const
sortiesId
=
this
.
sortiesId
.
split
(
':'
)[
0
]
const
sortiesTypeId
=
this
.
sortiesId
.
split
(
':'
).
slice
(
-
1
)[
0
]
const
params
=
{
'searchItems'
:
{
'items'
:
[{
'fieldName'
:
'aircraftSortiesId'
,
'operator'
:
'EQ'
,
'value'
:
this
.
sorties
Id
}]
},
'searchItems'
:
{
'items'
:
[{
'fieldName'
:
'aircraftSortiesId'
,
'operator'
:
'EQ'
,
'value'
:
sortiesId
},
{
'fieldName'
:
'soritesTypeId'
,
'operator'
:
'EQ'
,
'value'
:
sortiesType
Id
}]
},
'openProps'
:
[{
name
:
'aircraftSorties'
}],
'sortItem'
:
[{
'fieldName'
:
'serialNumber'
,
'sortOrder'
:
'asc'
}]
}
...
...
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