| | |
| | | <div> |
| | | <div class="body" :style="{height:mainHeight+'px'}"> |
| | | <div class="bodyTopButtonGroup" style="justify-content: space-between"> |
| | | <el-button type="primary" icon="el-icon-setting" @click="setting('setting')">设置</el-button> |
| | | <el-button v-waves type="primary" icon="el-icon-setting" @click="setting('setting')">设置</el-button> |
| | | </div> |
| | | |
| | | <div class="bodyTopFormGroup"> |
| | |
| | | :model="form" |
| | | label-width="100px" |
| | | inline |
| | | style="display: flex;justify-content: space-between" |
| | | style="display: flex;" |
| | | > |
| | | <div class="elForm"> |
| | | <el-form-item label-width="70px" label="生产车间" style=" display: flex;"> |
| | | <el-form-item label="生产车间" style=" display: flex;"> |
| | | <el-select |
| | | v-model="form.workshop" |
| | | style="width: 200px" |
| | |
| | | </el-form-item> |
| | | |
| | | </div> |
| | | <div class="bodySearchReset" :style="{marginLeft:$store.state.app.sidebar.opened?'5%':'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> |
| | | <div class="bodySearchReset" :style="{marginLeft:$store.state.app.sidebar.opened? $store.state.settings.menuIsHorizontal?'15%':'3%':'10%'}"> |
| | | <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="CaptPlanWorkShift" |
| | | label="默认方案" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | width="240" |
| | | > |
| | |
| | | readonly |
| | | /> |
| | | <el-button |
| | | |
| | | type="primary" |
| | | style="padding: 0 10px;margin-left: 5px" |
| | | class="el-icon-search" |
| | |
| | | <el-table-column |
| | | prop="CaptPlanShopCalendarList" |
| | | label="工作日历" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | min-width="300" |
| | | > |
| | |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.CaptPlanStus==='Y'"> |
| | | <svg-icon icon-class="circleYes" style="margin-right: 2px" /> |
| | | <i class="el-icon-success" :style="{color:$store.state.settings.theme}" style="margin-right: 2px" /> |
| | | 有效 |
| | | </div> |
| | | <div v-else-if="row.CaptPlanStus==='N'"> |
| | | <svg-icon icon-class="circleNo" style="margin-right: 2px" /> |
| | | <i class="el-icon-info" style="margin-right: 2px" /> |
| | | 无效 |
| | | </div> |
| | | <div v-else>/</div> |
| | |
| | | </div> |
| | | |
| | | <el-dialog |
| | | v-el-drag-dialog |
| | | :title="operation==='setting'?'设置':'默认方案'" |
| | | :visible.sync="dialogVisible" |
| | | width="1360px" |
| | |
| | | @closed="handleClose" |
| | | @close="handleClose" |
| | | > |
| | | <el-button v-if="operation==='setting'" type="primary" @click="addRow">新增</el-button> |
| | | <el-button v-if="operation==='setting'" v-waves type="primary" @click="addRow">新增</el-button> |
| | | <div class="elTableDiv"> |
| | | <!-- 选择默认方案的时候是这个table--> |
| | | <el-table |
| | |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div class="operationClass"> |
| | | <el-button v-if="row.isVisible===0" type="text" @click="delRow(row)">删除</el-button> |
| | | <el-button v-if="row.isVisible===1" type="text" @click="saveRow(row)">保存</el-button> |
| | | <el-button v-if="row.isVisible===1" type="text" @click="cancelRow(row)">取消</el-button> |
| | | <el-button v-if="row.isVisible===0" v-waves type="text" @click="delRow(row)">删除</el-button> |
| | | <el-button v-if="row.isVisible===1" v-waves type="text" @click="saveRow(row)">保存</el-button> |
| | | <el-button v-if="row.isVisible===1" v-waves type="text" @click="cancelRow(row)">取消</el-button> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div class="operationClass"> |
| | | <el-button v-if="row.isVisible===0" type="text" @click="delRow(row)">删除</el-button> |
| | | <el-button v-if="row.isVisible===1" type="text" @click="saveRow(row)">保存</el-button> |
| | | <el-button v-if="row.isVisible===1" type="text" @click="cancelRow(row)">取消</el-button> |
| | | <el-button v-if="row.isVisible===0" v-waves type="text" @click="delRow(row)">删除</el-button> |
| | | <el-button v-if="row.isVisible===1" v-waves type="text" @click="saveRow(row)">保存</el-button> |
| | | <el-button v-if="row.isVisible===1" v-waves type="text" @click="cancelRow(row)">取消</el-button> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | </div> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <div class="footerButton"> |
| | | <el-button @click="dialogVisibleCancel">返 回</el-button> |
| | | <el-button v-waves @click="dialogVisibleCancel">返 回</el-button> |
| | | <el-button |
| | | v-if="operation!=='setting'" |
| | | v-waves |
| | | type="primary" |
| | | :loading="$store.state.app.buttonIsDisabled" |
| | | :disabled="$store.state.app.buttonIsDisabled" |
| | |
| | | import { DeviceTypeSelect, WorkShopSelect } from '@/api/sbgl' |
| | | import { handleDatetime3 } from '@/utils/global' |
| | | import { WhkspIsEqpSearch } from '@/api/jcsz' |
| | | import elDragDialog from '@/directive/el-drag-dialog' |
| | | import waves from '@/directive/waves' |
| | | |
| | | export default { |
| | | name: 'Zzjg', |
| | | components: { |
| | | Pagination, DatePicker |
| | | }, |
| | | directives: { elDragDialog, waves }, |
| | | data() { |
| | | return { |
| | | mouseHoverType: 'mouseout', |