| | |
| | | <!-- </el-table>--> |
| | | <!-- </el-card>--> |
| | | <!-- </el-tab-pane>--> |
| | | <el-tab-pane label="工单供应表" v-if="this.dataForm.id"> |
| | | <!-- <el-tab-pane label="工单供应表" v-if="this.dataForm.id"> |
| | | <manufacturing-order :operationId="this.dataForm.id" ref="manufacturing"></manufacturing-order> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="工单所需物料" v-if="this.dataForm.id"> |
| | | </el-tab-pane> --> |
| | | <!-- <el-tab-pane label="工单所需物料" v-if="this.dataForm.id"> |
| | | <operation-supply :operationId="this.dataForm.id" :routingOperationId="this.dataForm.moRoutingOperationId" |
| | | ref="manufacturing"></operation-supply> |
| | | </el-tab-pane> |
| | | </el-tab-pane> --> |
| | | </el-tabs> |
| | | |
| | | <span slot="footer" class="dialog-footer"> |
| | |
| | | } |
| | | }) |
| | | }, |
| | | changeWorkCenter() { |
| | | changeWorkCenter(opName) { |
| | | this.workstations = [] |
| | | this.dataForm.workstationId = null |
| | | this.locationOptions = [] |
| | |
| | | this.$refs.ganttIndex.init(this.workCenter) |
| | | }) |
| | | |
| | | this.changeWorkCenterAction() |
| | | this.changeWorkCenterAction(opName) |
| | | }, |
| | | changeWorkCenterAction() { |
| | | changeWorkCenterAction(opName) { |
| | | if (this.dataForm.workCenter) { |
| | | const queryParamStation = Object.assign({ |
| | | workCenter: this.dataForm.workCenter |
| | | }) |
| | | |
| | | |
| | | getAllWorkstationList(queryParamStation).then((response) => { |
| | | const resData = response.data.data |
| | | if (resData && resData.length > 0) { |
| | | let obj = null |
| | | resData.forEach((ele)=>{ |
| | | if(ele.name.indexOf(opName)>-1){ |
| | | obj = ele |
| | | } |
| | | }) |
| | | if(obj){ |
| | | this.dataForm.workstationId = obj.id |
| | | } |
| | | this.workstations = resData |
| | | } |
| | | }) |
| | |
| | | |
| | | this.dataForm.operationName = routingOperation.operationName |
| | | this.dataForm.workCenter = routingOperation.workCenter |
| | | this.changeWorkCenter() |
| | | this.changeWorkCenter(routingOperation.operationName) |
| | | this.dataForm.routingOperationId = |
| | | routingOperation.technologyRoutingOperationId |
| | | }, |
| | | |
| | | // 根据工作站切换库位 |
| | | selectLocationByWorkstation() { |
| | | this.locationOptions = [] |