| | |
| | | :model="form" |
| | | label-width="100px" |
| | | inline |
| | | style="display: flex;justify-content: space-between" |
| | | style="display: flex;" |
| | | > |
| | | <div class="elForm" style="justify-content: flex-start"> |
| | | <el-form-item label-width="70px" label="生产车间" style=" display: flex;"> |
| | | <div class="elForm"> |
| | | <el-form-item label="生产车间" style=" display: flex;"> |
| | | <el-select |
| | | v-model="form.workshop" |
| | | style="width: 200px" |
| | | placeholder="请选择" |
| | | @change="getWhkspIsEqpSearch" |
| | | > |
| | | <el-option |
| | | v-for="item in workshopArr" |
| | |
| | | v-model="form.devicetype" |
| | | style="width: 200px" |
| | | placeholder="请选择" |
| | | :disabled="form.workshop===''" |
| | | > |
| | | <el-option |
| | | v-for="item in devicetypeArr" |
| | | :key="item.code" |
| | | :label="item.name" |
| | | :value="item.code" |
| | | :key="item.eqp_code" |
| | | :label="item.eqp_name" |
| | | :value="item.eqp_code" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | </el-form-item> |
| | | |
| | | </div> |
| | | <div class="bodySearchReset" :style="{marginLeft:$store.state.app.sidebar.opened?'5%':'10%'}"> |
| | | <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> |
| | | </div> |
| | |
| | | label="生产车间" |
| | | sortable="custom" |
| | | width="160" |
| | | show-tooltip-when-overflow |
| | | /> |
| | | <el-table-column |
| | | prop="CaptPlanDeviceType" |
| | | label="生产单元" |
| | | width="160" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="CaptPlanWorkShift" |
| | | label="默认方案" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | width="240" |
| | | > |
| | |
| | | <el-table-column |
| | | prop="CaptPlanShopCalendarList" |
| | | label="工作日历" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | min-width="300" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-input v-if="row.CaptPlanWorkShift===null" :disabled="row.CaptPlanWorkShift===null" /> |
| | | <date-picker |
| | | v-else |
| | | v-model="row.CaptPlanShopCalendarList" |
| | | :row-data="row" |
| | | style="width: 100%;" |
| | |
| | | prop="CaptPlanUser" |
| | | label="创建人员" |
| | | sortable="custom" |
| | | show-tooltip-when-overflow |
| | | width="120" |
| | | /> |
| | | <el-table-column |
| | | prop="CaptPlanDate" |
| | | width="160" |
| | | label="创建时间" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | /> |
| | | |
| | |
| | | width="120" |
| | | label="有效状态" |
| | | sortable="custom" |
| | | show-tooltip-when-overflow |
| | | > |
| | | <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> |
| | |
| | | highlight-current-row |
| | | :header-cell-style="this.$headerCellStyle" |
| | | :cell-style="this.$cellStyle" |
| | | @row-click="rowClick" |
| | | > |
| | | |
| | | <el-table-column |
| | |
| | | v-model="radioSelectedCode" |
| | | :label="row.code" |
| | | style="padding-left: 10px;" |
| | | @change.native="getCurrentRowSource(row.code)" |
| | | /> |
| | | <!-- @change.native="getCurrentRowSource(row.code)"--> |
| | | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | } from '@/api/scgl' |
| | | import { DeviceTypeSelect, WorkShopSelect } from '@/api/sbgl' |
| | | import { handleDatetime3 } from '@/utils/global' |
| | | import { WhkspIsEqpSearch } from '@/api/jcsz' |
| | | |
| | | export default { |
| | | name: 'Zzjg', |
| | |
| | | this.getHeight() |
| | | }, |
| | | methods: { |
| | | // 行点击事件 |
| | | rowClick(row, event, column) { |
| | | this.radioSelectedCode = row.code |
| | | }, |
| | | // 子组件失焦时执行 |
| | | over(val) { |
| | | if (val) { |
| | |
| | | this.getCapacityPlanningSearch().then(res => { |
| | | if (res.code === '200') { |
| | | this.getWorkShopSelect() |
| | | this.getDeviceTypeSelect() |
| | | // this.getDeviceTypeSelect() |
| | | } |
| | | }) |
| | | }, |
| | |
| | | const { data: res } = await WorkShopSelect() |
| | | this.workshopArr = res |
| | | }, |
| | | async getDeviceTypeSelect() { |
| | | const { data: res } = await DeviceTypeSelect() |
| | | // async getDeviceTypeSelect() { |
| | | // const { data: res } = await DeviceTypeSelect() |
| | | // this.devicetypeArr = res |
| | | // }, |
| | | async getWhkspIsEqpSearch(val) { |
| | | this.form.devicetype = '' |
| | | const { data: res } = await WhkspIsEqpSearch({ wkshpcode: val }) |
| | | this.devicetypeArr = res |
| | | }, |
| | | mrfaSearch(row, operation) { |