| | |
| | | style="display: flex;" |
| | | > |
| | | <div class="elForm"> |
| | | <el-form-item label="车间名称" style=" display: flex;"> |
| | | <el-select |
| | | v-model="form.wkshopcode" |
| | | filterable |
| | | :popper-append-to-body="false" |
| | | style="width: 200px" |
| | | placeholder="请选择" |
| | | > |
| | | <el-option |
| | | v-for="item in wkshopcodeArr" |
| | | :key="item.torg_code" |
| | | :label="item.torg_name" |
| | | :value="item.torg_code" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="工单编码" style=" display: flex;"> |
| | | <el-input v-model="form.wo_code" placeholder="请输入" style="width: 200px" /> |
| | | </el-form-item> |
| | |
| | | <el-form-item label="产品名称" style=" display: flex;"> |
| | | <el-input v-model="form.partname" placeholder="请输入" style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item label="产品规格" style=" display: flex;"> |
| | | <el-form-item v-show="isExpandForm" label="产品规格" style=" display: flex;"> |
| | | <el-input v-model="form.partspec" placeholder="请输入" style="width: 200px" /> |
| | | </el-form-item> |
| | | |
| | |
| | | <el-table-column |
| | | prop="partname" |
| | | label="产品名称" |
| | | sortable="custom" |
| | | show-overflow-tooltip |
| | | min-width="110" |
| | | /> |
| | | <el-table-column |
| | | prop="wkshp_name" |
| | | label="车间名称" |
| | | sortable="custom" |
| | | show-overflow-tooltip |
| | | min-width="110" |
| | |
| | | import { handleDatetime } from '@/utils/global' |
| | | import elDragDialog from '@/directive/el-drag-dialog' |
| | | import waves from '@/directive/waves' |
| | | import { DefectPermissions } from '@/api/GeneralBasicData' |
| | | import { DefectPermissions, PrentOrganizationNoCompany } from '@/api/GeneralBasicData' |
| | | import { MesOrderStepModelSearch, MesOrderStepUpdateSeave, MesOrderStepVerifySearch } from '@/api/WorkOrder' |
| | | |
| | | export default { |
| | |
| | | mainHeight: 0, |
| | | tableHeight: 0, |
| | | form: { |
| | | wkshopcode: '', |
| | | wo_code: '', // 工单编码 |
| | | partnumber: '', // 产品编码 |
| | | partname: '', // 产品名称 |
| | |
| | | }, |
| | | total: 10, |
| | | tableData: [], |
| | | |
| | | wkshopcodeArr: [], |
| | | dialogVisible: false, |
| | | dialogForm: { |
| | | 'id': '', |
| | |
| | | |
| | | this.getMesOrderStepVerifySearch() |
| | | this.getDefectPermissions() |
| | | this.getPrentOrganizationNoCompany() |
| | | }, |
| | | methods: { |
| | | async getPrentOrganizationNoCompany() { |
| | | const { data: res } = await PrentOrganizationNoCompany() |
| | | this.wkshopcodeArr = res |
| | | }, |
| | | async getDefectPermissions() { |
| | | const { data: res3 } = await DefectPermissions() // 缺陷 |
| | | this.defectArr = res3 |
| | |
| | | tempDate = handleDatetime(tempDate[0]) + '~' + handleDatetime(tempDate[1]) |
| | | } |
| | | const data = { |
| | | wkshopcode: this.form.wkshopcode, |
| | | wo_code: this.form.wo_code, |
| | | partnumber: this.form.partnumber, |
| | | partname: this.form.partname, |
| | |
| | | }, |
| | | // 重置 |
| | | reset() { |
| | | this.form.wkshopcode = '' |
| | | this.form.wo_code = '' |
| | | this.form.partnumber = '' |
| | | this.form.partname = '' |