| | |
| | | <!-- <TableLayout> --> |
| | | <keep-alive><TableLayout v-permissions="['ext:plansext:query']"> |
| | | <!-- 搜索表单 --> |
| | | <el-form slot="search-form" ref="searchForm" :model="searchForm" label-suffix=":" label-width="90px" inline> |
| | | <el-form slot="search-form" ref="searchForm" :model="searchForm" label-suffix=":" label-width="110px" inline> |
| | | <el-form-item label="搜索信息" prop="mixParam"> |
| | | <el-input v-model="searchForm.mixParam" placeholder="请输入物料名称/编码/工序名称" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | |
| | | <el-form-item label="批次号" prop="batch"> |
| | | <el-input v-model="searchForm.batch" placeholder="请输入" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="计划日期" prop="planDate"> |
| | | <el-form-item label="计划结束日期" prop="planDate"> |
| | | <el-date-picker |
| | | value-format="yyyy-MM-dd" |
| | | v-model="time" |
| | |
| | | @row-style="rowStyle" |
| | | > |
| | | <el-table-column type="selection" fixed="left" width="55"></el-table-column> |
| | | <el-table-column prop="id" label="计划序号" fixed="left" min-width="80px"> |
| | | <el-table-column prop="id" label="计划序号" fixed="left" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <span>{{ row.id }}</span><el-tag type="danger" size="mini" v-if="row.hasExpire">延期</el-tag> |
| | | </template> |
| | |
| | | </template> --> |
| | | </el-table-column> |
| | | <el-table-column prop="workPlanEndDate" label="计划结束日期" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | {{ row.workPlanStartDate ? row.workPlanStartDate.substring(0, row.workPlanStartDate.length-9) : '-' }} |
| | | </template> |
| | | <!-- <template slot-scope="{row}"> |
| | | {{ row.workPlanEndDate ? row.workPlanEndDate.substring(0, row.workPlanEndDate.length-9) : '-' }} |
| | | </template> --> |
| | | </el-table-column> |
| | | |
| | | <el-table-column label="计划状态" min-width="80px"> |
| | |
| | | factoryId: null, |
| | | status: null, |
| | | mixParam: null, |
| | | endDate: null, |
| | | startDate: null, |
| | | planDateStartDate: null, |
| | | planDateEndDate: null, |
| | | batch: null, |
| | | type: null, |
| | | workPlanCode: null |
| | |
| | | }, |
| | | methods: { |
| | | selectDate (v) { |
| | | this.searchForm.startDate = v[0] |
| | | this.searchForm.endDate = v[1] |
| | | this.searchForm.planDateStartDate = v[0] |
| | | this.searchForm.planDateEndDate = v[1] |
| | | this.search() |
| | | }, |
| | | selectFactroy (v) { |
| | | this.searchForm.procedureIdList = [] |
| | |
| | | }, |
| | | reset () { |
| | | this.$refs.searchForm.resetFields() |
| | | this.searchForm.startDate = null |
| | | this.searchForm.endDate = null |
| | | this.searchForm.planDateStartDate = null |
| | | this.searchForm.planDateEndDate = null |
| | | this.time = [] |
| | | this.search() |
| | | }, |