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
79b36c58
Commit
79b36c58
authored
Dec 06, 2023
by
“lixuyan”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改装配计划的接口
parent
ee71c89d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
20 deletions
+65
-20
content.vue
...ssemblyPlanManagement/assemblyPlanMaintenance/content.vue
+11
-6
search.vue
...assemblyPlanManagement/assemblyPlanMaintenance/search.vue
+52
-14
index.vue
.../views/taskReception/components/taskReceiveCard/index.vue
+2
-0
No files found.
applications/dee-mes/src/views/assemblyPlanManagement/assemblyPlanMaintenance/content.vue
View file @
79b36c58
...
@@ -61,11 +61,11 @@ export default {
...
@@ -61,11 +61,11 @@ export default {
mounted
()
{
mounted
()
{
this
.
initGantt
()
this
.
initGantt
()
this
.
getPlanStatus
()
this
.
getPlanStatus
()
this
.
$bus
.
$on
(
'getGantData'
,
(
data
,
planData
)
=>
{
this
.
$bus
.
$on
(
'getGantData'
,
(
data
,
planData
,
selectData
)
=>
{
this
.
project
=
planData
[
0
]
this
.
project
=
planData
[
0
]
this
.
disabledGenerateUpdates
=
false
this
.
disabledGenerateUpdates
=
false
this
.
searchData
=
d
ata
this
.
searchData
=
selectD
ata
this
.
getAllData
(
d
ata
)
this
.
getAllData
(
selectD
ata
)
})
})
},
},
...
@@ -382,10 +382,10 @@ export default {
...
@@ -382,10 +382,10 @@ export default {
},
},
// 获取甘特图数据
// 获取甘特图数据
getAllData(val) {
getAllData(val) {
const sortiesId = val.sorties
//
const sortiesId = val.sorties
// const sortiesTypeId = val.sorties.split(':').slice(-1)[0]
// const sortiesTypeId = val.sorties.split(':').slice(-1)[0]
const params = {
const params = {
'searchItems': { 'items': [{ 'fieldName': '
aircraftSortiesId', 'operator': 'EQ', 'value': sortiesI
d }] },
'searchItems': { 'items': [{ 'fieldName': '
extPositionPlans.oRProductionId', 'operator': 'EQ', 'value': val.i
d }] },
'openProps': [
'openProps': [
{
{
'name': 'extProcessExecutorRoutes'
'name': 'extProcessExecutorRoutes'
...
@@ -423,6 +423,11 @@ export default {
...
@@ -423,6 +423,11 @@ export default {
},
},
refrehGantt(data) {
refrehGantt(data) {
if (!data.length) {
if (!data.length) {
this.gantt.clearAll()
this.gantt.parse({
links: [],
data: []
})
return
return
}
}
const params = {
const params = {
...
@@ -545,7 +550,7 @@ export default {
...
@@ -545,7 +550,7 @@ export default {
},
},
generateProject() {
generateProject() {
const that = this
const that = this
post(`/ExtPositionPlan/generateOrUpdate?id=${that.
project
.id}`, {},)
post(`/ExtPositionPlan/generateOrUpdate?id=${that.
searchData
.id}`, {},)
// post(`/ExtPositionPlan/generateOrUpdate?id=220731108341000`, {},)
// post(`/ExtPositionPlan/generateOrUpdate?id=220731108341000`, {},)
.then((res) => {
.then((res) => {
if (res) {
if (res) {
...
...
applications/dee-mes/src/views/assemblyPlanManagement/assemblyPlanMaintenance/search.vue
View file @
79b36c58
...
@@ -80,6 +80,13 @@
...
@@ -80,6 +80,13 @@
width=
"50"
width=
"50"
align=
"center"
align=
"center"
/>
/>
<el-table-column
prop=
"soritesType"
label=
"类型"
min-width=
"70"
align=
"center"
:formatter=
"formatterSoritesType"
/>
<el-table-column
<el-table-column
prop=
"assemblyEndTime"
prop=
"assemblyEndTime"
label=
"交付时间"
label=
"交付时间"
...
@@ -105,20 +112,20 @@
...
@@ -105,20 +112,20 @@
align=
"center"
align=
"center"
>
>
<el-table-column
<el-table-column
prop=
"serialNumber"
prop=
"
extPosition.
serialNumber"
label=
"站位"
label=
"站位"
width=
"60"
width=
"60"
align=
"center"
align=
"center"
/>
/>
<el-table-column
<el-table-column
prop=
"
extPositionPlans[0].
scheduledStart"
prop=
"scheduledStart"
label=
"计划开工"
label=
"计划开工"
min-width=
"50"
min-width=
"50"
align=
"center"
align=
"center"
:formatter=
"formatterDate"
:formatter=
"formatterDate"
/>
/>
<el-table-column
<el-table-column
prop=
"
extPositionPlans[0].
scheduledEnd"
prop=
"scheduledEnd"
label=
"计划完工"
label=
"计划完工"
min-width=
"50"
min-width=
"50"
align=
"center"
align=
"center"
...
@@ -180,6 +187,14 @@ export default {
...
@@ -180,6 +187,14 @@ export default {
}
}
return
''
return
''
},
},
formatterSoritesType
(
row
,
column
,
cellValue
,
index
)
{
const
status
=
this
.
SoriteTypeOptions
.
filter
((
p
)
=>
p
.
value
===
cellValue
)[
0
]
||
''
if
(
status
)
{
return
status
.
label
}
return
''
},
/**
/**
* 获取新增机型
* 获取新增机型
*/
*/
...
@@ -326,7 +341,7 @@ export default {
...
@@ -326,7 +341,7 @@ export default {
items
:
[],
items
:
[],
operator
:
'AND'
operator
:
'AND'
},
},
openProps
:
[{
name
:
'aircraftSorties'
},
{
name
:
'aircraftType'
},
{
name
:
'extPositionPlans'
,
openProps
:
[{
name
:
'extPosition'
}]
}],
openProps
:
[{
name
:
'
soritesType'
},
{
name
:
'
aircraftSorties'
},
{
name
:
'aircraftType'
},
{
name
:
'extPositionPlans'
,
openProps
:
[{
name
:
'extPosition'
}]
}],
sortItem
:
[
sortItem
:
[
{
{
fieldName
:
'modifyTime'
,
fieldName
:
'modifyTime'
,
...
@@ -353,7 +368,9 @@ export default {
...
@@ -353,7 +368,9 @@ export default {
serialNo
:
p
.
aircraftSorties
.
defName
,
serialNo
:
p
.
aircraftSorties
.
defName
,
assemblyEndTime
:
p
.
assemblyEndTime
,
assemblyEndTime
:
p
.
assemblyEndTime
,
statusCode
:
p
.
state
,
statusCode
:
p
.
state
,
standData
:
p
.
extPositionPlans
standData
:
p
.
extPositionPlans
,
soritesType
:
p
.
soritesType
?
p
.
soritesType
.
type
:
''
}
}
})
})
}
}
...
@@ -362,7 +379,7 @@ export default {
...
@@ -362,7 +379,7 @@ export default {
// }
// }
this
.
$refs
.
projectPlanTable
.
setCurrentRow
(
this
.
projectPlanData
[
0
])
this
.
$refs
.
projectPlanTable
.
setCurrentRow
(
this
.
projectPlanData
[
0
])
this
.
getStation
()
this
.
getStation
(
this
.
projectPlanData
[
0
]
)
}
else
{
}
else
{
this
.
$message
({
this
.
$message
({
showClose
:
true
,
showClose
:
true
,
...
@@ -377,23 +394,44 @@ export default {
...
@@ -377,23 +394,44 @@ export default {
/**
/**
* 获取站位
* 获取站位
*/
*/
getStation
()
{
getStation
(
data
)
{
const
sortiesId
=
this
.
form
.
sorties
// const sortiesId = this.form.sorties
// const sortiesTypeId = this.form.sorties.split(':').slice(-1)[0]
// const params = {
// 'searchItems': { 'items': [{ 'fieldName': 'aircraftSortiesId', 'operator': 'EQ', 'value': sortiesId }] },
// 'openProps': [{ name: 'extPositionPlans' }],
// 'sortItem': [{ 'fieldName': 'serialNumber', 'sortOrder': 'asc' }]
// }
const
params
=
{
const
params
=
{
'searchItems'
:
{
'items'
:
[{
'fieldName'
:
'aircraftSortiesId'
,
'operator'
:
'EQ'
,
'value'
:
sortiesId
}]
},
'searchItems'
:
{
'openProps'
:
[{
name
:
'extPositionPlans'
}],
'items'
:
[
'sortItem'
:
[{
'fieldName'
:
'serialNumber'
,
'sortOrder'
:
'asc'
}]
{
'fieldName'
:
'oRProductionId'
,
'operator'
:
'EQ'
,
'value'
:
data
.
id
}
]
},
'openProps'
:
[
{
'name'
:
'extPosition'
}
],
'sortItem'
:
[
{
'fieldName'
:
'extPosition.serialNumber'
,
'sortOrder'
:
'asc'
}
]
}
}
this
.
standLoading
=
true
this
.
standLoading
=
true
this
.
$api
.
searchApi
(
'
ExtPositio
n'
,
params
).
then
(
res
=>
{
this
.
$api
.
searchApi
(
'
MilestonePla
n'
,
params
).
then
(
res
=>
{
if
(
res
.
items
)
{
if
(
res
.
items
)
{
this
.
standData
=
res
.
items
.
content
this
.
standData
=
res
.
items
.
content
}
else
{
}
else
{
this
.
standData
=
[]
this
.
standData
=
[]
}
}
this
.
standLoading
=
false
this
.
standLoading
=
false
this
.
$bus
.
$emit
(
'getGantData'
,
this
.
form
,
this
.
projectPlanData
)
this
.
$bus
.
$emit
(
'getGantData'
,
this
.
form
,
this
.
projectPlanData
,
data
)
}).
catch
(()
=>
{
}).
catch
(()
=>
{
this
.
standData
=
[]
this
.
standData
=
[]
this
.
standLoading
=
false
this
.
standLoading
=
false
...
...
applications/dee-mes/src/views/taskReception/components/taskReceiveCard/index.vue
View file @
79b36c58
...
@@ -324,6 +324,8 @@ export default {
...
@@ -324,6 +324,8 @@ export default {
'operator'
:
'EQ'
,
'operator'
:
'EQ'
,
'value'
:
this
.
$route
.
query
.
title
===
'装配任务'
?
'FitOut'
:
'CheckOut'
'value'
:
this
.
$route
.
query
.
title
===
'装配任务'
?
'FitOut'
:
'CheckOut'
})
})
}
else
{
param
.
dmir
=
'DMIR'
}
}
that
.
processLoading
=
true
that
.
processLoading
=
true
post
(
'/JoExecutePlan/getTaskAcceptance'
,
param
)
post
(
'/JoExecutePlan/getTaskAcceptance'
,
param
)
...
...
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