| | |
| | | <el-form-item v-show="isExpandForm" label="创建人员" style=" display: flex;"> |
| | | <el-input v-model="form.creatuser" style="width: 200px" placeholder="请输入" /> |
| | | </el-form-item> |
| | | <el-form-item v-show="isExpandForm" label="创建时间" style=" display: flex;"> |
| | | <!-- <el-date-picker--> |
| | | <!-- v-model="form.createdate"--> |
| | | <!-- type="daterange"--> |
| | | <!-- :clearable="false"--> |
| | | <!-- range-separator="~"--> |
| | | <!-- start-placeholder="开始日期"--> |
| | | <!-- end-placeholder="结束日期"--> |
| | | <!-- size="mini"--> |
| | | <!-- />--> |
| | | <el-date-picker |
| | | v-model="form.createdate" |
| | | type="date" |
| | | size="mini" |
| | | :clearable="false" |
| | | class="dateMini" |
| | | format="yyyy-MM-dd" |
| | | placeholder="选择日期" |
| | | /> |
| | | </el-form-item> |
| | | <DateType |
| | | ref="DateTypeRef" |
| | | :is-expand-form="isExpandForm" |
| | | style="display:flex;justify-content: center;align-items: center;position: relative" |
| | | :datatype-list="datatypeList" |
| | | @DateTypeChange="DateTypeChange" |
| | | @cycleTimeChange="cycleTimeChange" |
| | | /> |
| | | </div> |
| | | |
| | | <div |
| | |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.wkshp_name">{{ row.wkshp_name }}</div> |
| | | <div v-else>/</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="plan_startdate" |
| | | label="预计开工日期" |
| | | sortable="custom" |
| | | width="130" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.plan_startdate">{{ row.plan_startdate.substring(0, 11) }}</div> |
| | | <div v-else>/</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="plan_enddate" |
| | | label="预计完工日期" |
| | | sortable="custom" |
| | | width="130" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.plan_enddate">{{ row.plan_enddate.substring(0, 11) }}</div> |
| | | <div v-else>/</div> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | import Sortable from 'sortablejs' |
| | | import ElDragSelect from '@/components/DragSelect' |
| | | import { MesOrderPrintSearch } from '@/api/GridReport' // base on element-ui |
| | | |
| | | import DateType from '@/components/DateType' |
| | | export default { |
| | | name: 'WorkOrderList', |
| | | components: { |
| | | Pagination, ElDragSelect |
| | | Pagination, ElDragSelect, DateType |
| | | }, |
| | | directives: { elDragDialog, waves }, |
| | | data() { |
| | |
| | | partname: '', // 产品名称 |
| | | partspec: '', // 产品规格 |
| | | creatuser: '', // 创建人员 |
| | | createdate: '', // 创建时间 |
| | | // createdate: '', // 创建时间 |
| | | datatype: 'ED', // 日期类型(计划开工(PS)、计划完工(PE)、预计交付(ED)、创建日期(CT)) |
| | | timeValue: [], // 查询日期 |
| | | prop: 'lm_date', // 排序字段 |
| | | order: 'desc', // 排序字段 |
| | | page: 1, // 第几页 |
| | |
| | | stepSelectArr: [], // 工序下拉数据 |
| | | stepSelectedValue: [], // 下拉选中值 |
| | | |
| | | multipleSelection: [] |
| | | multipleSelection: [], |
| | | |
| | | datatypeList: [ |
| | | { code: 'PS', name: '预计开工日期' }, |
| | | { code: 'PE', name: '预计完工日期' }, |
| | | { code: 'ED', name: '预计交付日期' }, |
| | | { code: 'CT', name: '工单创建日期' } |
| | | ] |
| | | } |
| | | }, |
| | | watch: { |
| | |
| | | // }) |
| | | }, |
| | | methods: { |
| | | DateTypeChange(value) { |
| | | this.form.datatype = value |
| | | }, |
| | | cycleTimeChange(val) { |
| | | this.form.timeValue = val |
| | | }, |
| | | setSort() { |
| | | const el = this.$refs.stepTableDataRef.$el.querySelectorAll('.el-table__body-wrapper > table > tbody')[0] |
| | | this.sortable = Sortable.create(el, { |
| | |
| | | sourceorder: this.form.sourceorder, // 源单单号 |
| | | saleordercode: this.form.saleordercode, // 销售订单 |
| | | ordertype: this.form.ordertype, // 单据类型 |
| | | createdate: this.form.createdate.toString().length > 0 ? handleDatetime(this.form.createdate) : '', // 创建时间 |
| | | datatype: this.form.datatype, |
| | | searchdate: this.form.timeValue.join('~'), |
| | | // createdate: this.form.createdate.toString().length > 0 ? handleDatetime(this.form.createdate) : '', // 创建时间 |
| | | prop: this.form.prop, // 排序字段 |
| | | order: this.form.order, // 排序字段 |
| | | page: this.form.page, // 第几页 |
| | |
| | | this.form.creatuser = '' |
| | | this.form.sourceorder = '' |
| | | this.form.ordertype = '' |
| | | this.form.createdate = '' |
| | | // this.form.createdate = '' |
| | | |
| | | this.form.timeValue = [] |
| | | this.cycleTime = null |
| | | this.$refs.DateTypeRef.clearValue() |
| | | |
| | | this.getMesOrderSearch() |
| | | }, |
| | | // 新增按钮 |