Commit 352c1cb5 authored by 旭艳's avatar 旭艳

站位计划维护-样式修改

parent 7c2feb6d
...@@ -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
......
...@@ -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()
// })
} }
} }
} }
......
<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;
......
...@@ -80,7 +80,7 @@ export default { ...@@ -80,7 +80,7 @@ export default {
}, },
data() { data() {
return { return {
headerShow: true, headerShow: false,
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
}
})
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment