| | |
| | | |
| | | <div class="elTableDiv"> |
| | | <el-table |
| | | ref="tableDataRef2" |
| | | :data="tableDataDetail" |
| | | border |
| | | height="210px" |
| | |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="销售订单" prop=""> |
| | | <el-input |
| | | v-model="dialogForm.saleordercode" |
| | | style="width: 200px" |
| | | :disabled="!(dialogForm.mesorderstus==='NEW'&&dialogForm.data_sources==='MES')" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="预计交付日期" prop="deliverydate"> |
| | | <el-date-picker |
| | | v-model="dialogForm.deliverydate" |
| | |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="销售订单" prop=""> |
| | | <el-input |
| | | v-model="i.saleordercode" |
| | | style="width: 200px" |
| | | :disabled="!(i.mesorderstus==='NEW'&&i.data_sources==='MES')" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="预计交付日期" prop="deliverydate"> |
| | | <el-date-picker |
| | | v-model="i.deliverydate" |
| | |
| | | // createdate: '', // 创建时间 |
| | | datatype: 'ED', // 日期类型(计划开工(PS)、计划完工(PE)、预计交付(ED)、创建日期(CT)) |
| | | timeValue: [], // 查询日期 |
| | | prop: 'lm_date', // 排序字段 |
| | | prop: 'partspec', // 排序字段 lm_date |
| | | order: 'desc', // 排序字段 |
| | | page: 1, // 第几页 |
| | | rows: 20 // 每页多少条 |
| | |
| | | ordertype: 'PO', // 工单类型 |
| | | sourceorderid: '', // 源单id |
| | | sourceorder: '', // 源单单号 |
| | | |
| | | saleordercode: '', // 销售订单号 |
| | | |
| | | partcode: '', // 产品编码 |
| | | partname: '', // 产品名称 |
| | |
| | | |
| | | routecodeArr: [], // |
| | | |
| | | sourceType: false, // 工序的数据来源 |
| | | sourceType: true, // 工序的数据来源 |
| | | |
| | | mesSetting: JSON.parse(localStorage.getItem('mesSetting')), |
| | | |
| | |
| | | ordertype: i.wotype, // 工单类型 |
| | | sourceorderid: i.sourceid, // 源单id |
| | | sourceorder: i.m_po, // 源单单号 |
| | | saleordercode: i.saleOrderCode, |
| | | partcode: i.partcode, // 产品编码 |
| | | partname: i.partname, // 产品名称 |
| | | partspec: i.partspec, // 产品规格 |
| | |
| | | sourceid: i.sourceorderid, // 源单id |
| | | sourcewo: i.sourceorder, // 源单单号 |
| | | partcode: i.partcode, // 产品编号 |
| | | saleordercode: i.saleordercode, // 销售单号 |
| | | wkshopcode: i.wkshopcode, |
| | | woqty: i.mesqty, // 工单数量 |
| | | deliverydate: i.deliverydate, // 交付时间 |
| | |
| | | this.form.ordertype = '' |
| | | // this.form.createdate = '' |
| | | |
| | | this.form.saleordercode = '' |
| | | |
| | | this.form.timeValue = [] |
| | | this.cycleTime = null |
| | | this.$refs.DateTypeRef.clearValue() |
| | |
| | | this.dialogForm.ordertype = row.wotype |
| | | this.dialogForm.sourceorderid = row.sourceid |
| | | this.dialogForm.sourceorder = row.m_po |
| | | this.dialogForm.saleordercode = row.saleOrderCode |
| | | this.dialogForm.partcode = row.partcode |
| | | this.dialogForm.partname = row.partname |
| | | this.dialogForm.partspec = row.partspec |
| | |
| | | |
| | | this.stepSelectedValue = this.stepTableData.map(i => i.stepcode) |
| | | } else { |
| | | await this.getBasicProcessData() |
| | | // await this.getBasicProcessData() |
| | | console.log('执行') |
| | | this.sourceTypeChange(this.sourceType) |
| | | } |
| | | } |
| | | |
| | |
| | | ordertype: 'PO', // 工单类型 |
| | | sourceorderid: '', // 源单id |
| | | sourceorder: '', // 源单单号 |
| | | |
| | | saleordercode: '', // 销售订单号 |
| | | partcode: '', // 产品编码 |
| | | partname: '', // 产品名称 |
| | | partspec: '', // 产品规格 |
| | |
| | | |
| | | this.dialogForm.routecode = '' |
| | | |
| | | this.sourceType = false |
| | | this.sourceType = true |
| | | |
| | | this.stepSelectedValue = [] |
| | | this.stepTableData = [] |
| | | this.$refs.dialogForm.clearValidate() |
| | | this.$refs.tableDataRef.doLayout() |
| | | this.$refs.tableDataRef2.doLayout() |
| | | }, |
| | | // 对话框取消 |
| | | dialogVisibleCancel() { |
| | |
| | | wotype: this.dialogForm.ordertype, // 工单类型 |
| | | sourceid: this.dialogForm.sourceorderid, // 源单id |
| | | sourcewo: this.dialogForm.sourceorder, // 源单单号 |
| | | saleordercode: this.dialogForm.saleordercode, // 销售订单号 |
| | | partcode: this.dialogForm.partcode, // 产品编号 |
| | | wkshopcode: this.dialogForm.wkshopcode, |
| | | woqty: this.dialogForm.mesqty, // 工单数量 |