| | |
| | | </el-form-item> |
| | | </div> |
| | | <div class="bodySearchReset" :style="{marginLeft:$store.state.app.sidebar.opened? $store.state.settings.menuIsHorizontal?'15%':'3%':'10%'}"> |
| | | <el-button type="primary" icon="el-icon-search" @click="search">查询</el-button> |
| | | <el-button type="info" icon="el-icon-refresh" @click="reset">重置</el-button> |
| | | <el-button v-waves type="primary" icon="el-icon-search" @click="search">查询</el-button> |
| | | <el-button v-waves type="info" icon="el-icon-refresh" @click="reset">重置</el-button> |
| | | </div> |
| | | </el-form> |
| | | <div |
| | |
| | | <el-table-column |
| | | prop="AdvaSchePCStartDate" |
| | | label="计划排程时间" |
| | | width="160" |
| | | width="200" |
| | | sortable="custom" |
| | | show-tooltip-when-overflow |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.AdvaSchePCStartDate">{{ row.AdvaSchePCStartDate }}</div> |
| | | <div v-if="row.AdvaSchePCStartDate">{{ row.AdvaSchePCStartDate }} ~ {{ row.AdvaSchePCEndDate }} </div> |
| | | <div v-else>/</div> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | <el-form-item label="排程日期" style=" display: flex;"> |
| | | <el-date-picker |
| | | v-model="formBottom.scheDate" |
| | | :disabled="radioSelectedId===''" |
| | | type="daterange" |
| | | range-separator="~" |
| | | format="yyyy-MM-dd" |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="时间刻度(分钟)" label-width="110" style=" display: flex;"> |
| | | <el-select v-model.number="formBottom.scale" style="width: 120px;"> |
| | | <el-select v-model.number="formBottom.scale" :disabled="radioSelectedId===''" style="width: 120px;"> |
| | | <el-option v-for="item in scaleList" :key="item" :value="item" :label="item" /> |
| | | </el-select> |
| | | |
| | |
| | | <el-input |
| | | id="scale" |
| | | v-model="formBottom.times" |
| | | :disabled="radioSelectedId===''" |
| | | type="number" |
| | | style="display:inline-block;width:80px;" |
| | | @change="no_zero" |
| | |
| | | </div> |
| | | <div class="bodySearchReset" :style="{marginLeft:$store.state.app.sidebar.opened? $store.state.settings.menuIsHorizontal?'15%':'3%':'10%'}"> |
| | | <el-button |
| | | v-waves |
| | | :disabled="radioSelectedId===''" |
| | | type="primary" |
| | | icon="el-icon-document-remove" |
| | | @click="click_schedule" |
| | | >预排 |
| | | </el-button> |
| | | <el-button |
| | | v-waves |
| | | type="primary" |
| | | :disabled="radioSelectedId===''" |
| | | icon="el-icon-document-checked" |
| | | @click="click_yes" |
| | | >提交 |
| | |
| | | </div> |
| | | <div class="speed"> |
| | | <!-- <el-tooltip class="item" effect="dark" content="查看" placement="top">--> |
| | | <!-- <el-button type="text" size="mini" @click="look(data)">--> |
| | | <!-- <el-button v-waves type="text" size="mini" @click="look(data)">--> |
| | | <!-- <i class="el-icon-document size i-color" />--> |
| | | <!-- </el-button>--> |
| | | <!-- </el-tooltip>--> |
| | |
| | | </template> |
| | | <template slot="title"> |
| | | <span class="tc">工位列表</span> |
| | | <el-checkbox v-model="all_status" class="box_style" @change="changeLift()" /> |
| | | <input v-model.number="cellWidth" type="range" min="20" max="100" class="box_styles"> |
| | | <el-checkbox v-model="all_status" class="box_style" :disabled="radioSelectedId===''" @change="changeLift()" /> |
| | | <input v-model.number="cellWidth" type="range" min="20" max="100" class="box_styles" :disabled="radioSelectedId===''"> |
| | | </template> |
| | | </v-gantt-chart> |
| | | </div> |
| | |
| | | import dayjs from 'dayjs' |
| | | import { AdvancedSchedulingSearch, OnclickAdvancedSchedulingDevice, SubmitAlreadyScheduling } from '@/api/scgl' |
| | | import { handleDatetime } from '@/utils/global' |
| | | import waves from '@/directive/waves' |
| | | |
| | | const scaleList = `30,60,240,360`.split(',').map(n => parseInt(n)) |
| | | const timeList = `0,30,60,120,240,480`.split(',').map(n => parseInt(n)) |
| | |
| | | components: { |
| | | Pagination, Test |
| | | }, |
| | | directives: { waves }, |
| | | data() { |
| | | return { |
| | | mouseHoverType: 'mouseout', |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | this.getAdvancedSchedulingSearch() |
| | | const loading = this.$loading({ |
| | | lock: true, |
| | | text: '正在加载数据,请稍等...', |
| | | spinner: 'el-icon-loading', |
| | | customClass: 'osloading', |
| | | background: 'rgba(0, 0, 0, 0.7)' |
| | | }) |
| | | setTimeout(() => { |
| | | if (this.getAdvancedSchedulingSearch()) { |
| | | loading.close() |
| | | } |
| | | }, 3000) |
| | | |
| | | // this.getAdvancedSchedulingSearch() |
| | | }, |
| | | mounted() { |
| | | window.addEventListener('resize', this.getHeight) |
| | | this.getHeight() |
| | | }, |
| | | methods: { |
| | | async getAdvancedSchedulingSearch() { |
| | | async getAdvancedSchedulingSearch() { |
| | | const res = await AdvancedSchedulingSearch(this.formTop) |
| | | this.tableData = res.data |
| | | this.totalTop = res.count |
| | | |
| | | return true |
| | | }, |
| | | // 排序改变时 |
| | | sortChangeTop({ column, prop, order }) { |
| | |
| | | .box_style { |
| | | position: relative; |
| | | top: 40px; |
| | | left: -75px; |
| | | left: -91px; |
| | | } |
| | | |
| | | .box_styles { |