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
352c1cb5
Commit
352c1cb5
authored
Aug 25, 2023
by
旭艳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
站位计划维护-样式修改
parent
7c2feb6d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
76 additions
and
45 deletions
+76
-45
content.vue
...ssemblyPlanManagement/assemblyPlanMaintenance/content.vue
+8
-7
gantt.vue
...s/assemblyPlanManagement/stationPlanMaintenance/gantt.vue
+29
-32
index.vue
...s/assemblyPlanManagement/stationPlanMaintenance/index.vue
+30
-4
searchBar.vue
...semblyPlanManagement/stationPlanMaintenance/searchBar.vue
+9
-2
No files found.
applications/dee-mes/src/views/assemblyPlanManagement/assemblyPlanMaintenance/content.vue
View file @
352c1cb5
...
@@ -182,13 +182,13 @@ export default {
...
@@ -182,13 +182,13 @@ export default {
ganttStm
.
attachEvent
(
'onLinkDblClick'
,
function
(
id
,
e
)
{
ganttStm
.
attachEvent
(
'onLinkDblClick'
,
function
(
id
,
e
)
{
return
false
return
false
})
})
ganttStm
.
attachEvent
(
'onAfterTaskUpdate'
,
function
(
id
,
item
)
{
//
ganttStm.attachEvent('onAfterTaskUpdate', function(id, item) {
// var data = {
// var data = {
// id: item.tooltipId,
// id: item.tooltipId,
// scheduledStart: that.formatDate(item.start_date)
// scheduledStart: that.formatDate(item.start_date)
// }
// }
// that.updatePlanTime(data)
// that.updatePlanTime(data)
})
//
})
// 当分支被打开时触发
// 当分支被打开时触发
ganttStm
.
attachEvent
(
'onTaskOpened'
,
function
(
id
)
{
ganttStm
.
attachEvent
(
'onTaskOpened'
,
function
(
id
)
{
that
.
openTree
.
push
(
Number
(
id
))
that
.
openTree
.
push
(
Number
(
id
))
...
@@ -355,6 +355,7 @@ export default {
...
@@ -355,6 +355,7 @@ export default {
ganttStm.config.drag_links = false
ganttStm.config.drag_links = false
ganttStm.config.details_on_dblclick = false
ganttStm.config.details_on_dblclick = false
ganttStm.config.show_task_cells = true
ganttStm.config.show_task_cells = true
ganttStm.config.readonly = true
// ganttStm.config.auto_scheduling = true
// ganttStm.config.auto_scheduling = true
// ganttStm.config.auto_scheduling_initial = false
// ganttStm.config.auto_scheduling_initial = false
ganttStm.config.open_split_tasks = true
ganttStm.config.open_split_tasks = true
...
...
applications/dee-mes/src/views/assemblyPlanManagement/stationPlanMaintenance/gantt.vue
View file @
352c1cb5
...
@@ -184,7 +184,7 @@ export default {
...
@@ -184,7 +184,7 @@ export default {
id
:
item
.
tooltipId
,
id
:
item
.
tooltipId
,
scheduledStart
:
that
.
formatDate
(
item
.
start_date
)
scheduledStart
:
that
.
formatDate
(
item
.
start_date
)
}
}
that
.
updatePlanTime
(
data
)
that
.
updatePlanTime
(
data
,
item
)
})
})
// 当分支被打开时触发
// 当分支被打开时触发
ganttStm
.
attachEvent
(
'onTaskOpened'
,
function
(
id
)
{
ganttStm
.
attachEvent
(
'onTaskOpened'
,
function
(
id
)
{
...
@@ -568,37 +568,34 @@ export default {
...
@@ -568,37 +568,34 @@ export default {
/**
/**
* 修改工期及开工时间
* 修改工期及开工时间
*/
*/
updatePlanTime
(
item
)
{
updatePlanTime
(
data
,
item
)
{
// const that = this
const
that
=
this
// that.loading = true
that
.
loading
=
true
// const param = {
const
params
=
{
// // maxTime: that.getLongTime(),
scheduledStart
:
data
.
scheduledStart
,
// // minTime: _min_date,
wrProductionId
:
item
.
$rendered_parent
,
// minTime: that.start_date,
joId
:
data
.
id
// parentId: that.$parent.platformId,
}
// wrProduction: [item]
post
(
`/JoExecutePlan/updatePlanTime`
,
params
)
// }
.
then
((
res
)
=>
{
// // return tooltipData
if
(
res
.
message
.
includes
(
'成功'
))
{
// this.HttpRequest(`/WrProduction/updatePlanTime`, param, 'post', true)
this
.
$message
({
// .then((res) => {
showClose
:
true
,
// if (res.message.includes('成功')) {
message
:
'修改成功!'
,
// this.$message({
type
:
'success'
// showClose: true,
})
// message: '修改成功!',
}
else
{
// type: 'success'
this
.
$message
({
// })
showClose
:
true
,
// } else {
message
:
res
.
message
,
// this.$message({
type
:
'error'
// showClose: true,
})
// message: res.message,
}
// type: 'error'
})
// })
.
catch
((
err
)
=>
console
.
error
(
err
))
// }
.
finally
(()
=>
{
// })
that
.
getData
()
// .catch((err) => console.error(err))
})
// .finally(() => {
// that.getGanttData()
// })
}
}
}
}
}
}
...
...
applications/dee-mes/src/views/assemblyPlanManagement/stationPlanMaintenance/index.vue
View file @
352c1cb5
<
template
>
<
template
>
<div
class=
"show-page-com stationPlan-maintenance-page"
>
<div
class=
"show-page-com stationPlan-maintenance-page"
>
<dee-tab
:tabs=
"tabItems"
:show-swipe=
"false"
:is-detail=
"false"
>
<div
slot=
"0"
style=
"height:100%;box-sizing:border-box"
>
列表
</div>
<div
slot=
"1"
style=
"height:100%;box-sizing:border-box"
>
<searchBar
:state-options=
"stateOptions"
@
showStation=
"showStation"
@
search=
"search"
/>
<searchBar
:state-options=
"stateOptions"
@
showStation=
"showStation"
@
search=
"search"
/>
<station
v-show=
"headerShow"
:state-options=
"stateOptions"
:sorties-id=
"sortiesId"
:form=
"form"
@
change=
"change"
/>
<station
v-show=
"headerShow"
:state-options=
"stateOptions"
:sorties-id=
"sortiesId"
:form=
"form"
@
change=
"change"
/>
<gantt
:form=
"form"
:state-options=
"stateOptions"
:class=
"[headerShow?'gantt-bar':'gantt-bar no-header']"
/>
<gantt
:form=
"form"
:state-options=
"stateOptions"
:class=
"[headerShow?'gantt-bar':'gantt-bar no-header']"
/>
</div>
</div>
</dee-tab>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -22,7 +29,20 @@ export default {
...
@@ -22,7 +29,20 @@ export default {
headerShow
:
true
headerShow
:
true
}
}
},
},
computed
:
{
tabItems
()
{
return
[
{
name
:
'列表'
,
id
:
'0'
},
{
name
:
'甘特图'
,
id
:
'1'
}
]
}
},
mounted
()
{
mounted
()
{
this
.
getStateOptions
()
this
.
getStateOptions
()
},
},
...
@@ -57,6 +77,12 @@ export default {
...
@@ -57,6 +77,12 @@ export default {
height
:
calc
(
100%
-
20px
);
height
:
calc
(
100%
-
20px
);
width
:
calc
(
100%
-
24px
);
width
:
calc
(
100%
-
24px
);
background-color
:
#fff
;
background-color
:
#fff
;
.dee-panel
{
height
:
100%
;
}
.el-tab-pane
{
height
:
calc
(
100%
-
10px
);
}
.color
{
.color
{
&
.Not
{
&
.Not
{
background-color
:
#cccccc
;
background-color
:
#cccccc
;
...
...
applications/dee-mes/src/views/assemblyPlanManagement/stationPlanMaintenance/searchBar.vue
View file @
352c1cb5
...
@@ -80,7 +80,7 @@ export default {
...
@@ -80,7 +80,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
headerShow
:
tru
e
,
headerShow
:
fals
e
,
modelData
:
[],
modelData
:
[],
sortiesData
:
[],
sortiesData
:
[],
SoriteTypeOptions
:
[],
SoriteTypeOptions
:
[],
...
@@ -123,6 +123,7 @@ export default {
...
@@ -123,6 +123,7 @@ export default {
}
}
},
},
created
()
{
// SoriteType
created
()
{
// SoriteType
this
.
$emit
(
'showStation'
,
this
.
headerShow
)
this
.
$utils
.
getDicListByCode
(
'SoriteType'
).
then
(
res
=>
{
this
.
$utils
.
getDicListByCode
(
'SoriteType'
).
then
(
res
=>
{
this
.
SoriteTypeOptions
=
res
this
.
SoriteTypeOptions
=
res
this
.
getModelData
()
this
.
getModelData
()
...
@@ -183,7 +184,13 @@ export default {
...
@@ -183,7 +184,13 @@ export default {
},
500
)
},
500
)
},
},
goto
()
{
goto
()
{
this
.
$router
.
push
({
path
:
'/dee-mes/assembly-plan-maintenance'
,
query
:
{
title
:
'装配计划维护'
,
menuRootAppId
:
1626782294437
}
})
}
}
}
}
}
}
...
...
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