| | |
| | | if(ele.name.indexOf(opName)>-1){ |
| | | workId = ele.id |
| | | } |
| | | }) |
| | | return workId |
| | | }) |
| | | return workId |
| | | }, |
| | | getManufactureAttrs(type) { |
| | | remote(type).then((response) => { |
| | |
| | | const resData = response.data |
| | | if (resData.code === 0) { |
| | | const autoTaskList = resData.data |
| | | console.log("autoTaskList-----",autoTaskList); |
| | | autoTaskList.forEach((item) => { |
| | | this.operationData.push({ |
| | | operationName: item.operationName, |
| | | workCenter: item.workCenter, |
| | | workstationId: item.workstationId ? item.workstationId : this.initWorkStation(item.operationName,item.workstations), |
| | | workstationId: item.workstationId ? item.workstationId : this.initWorkStation(item.operationName,item.workstations||[]), |
| | | locationId: item.locationId, |
| | | partNo: item.partNo, |
| | | partName: item.partName, |