| | |
| | | <template> |
| | | <div style="height: 100%"> |
| | | <div style="height: 100%" :key="itemKey"> |
| | | <div class="page-header"> |
| | | <div class="header-left"> |
| | | <a @click="$router.go(-1)"><i class="icon-btn-back"></i></a> |
| | |
| | | '$route.query.id': { |
| | | immediate: true, |
| | | handler(newVal, oldVal) { |
| | | if (newVal) { |
| | | this.dataForm.id = this.$route.query.id |
| | | this.getParamType() |
| | | this.init() |
| | | this.itemKey = Math.random() |
| | | this.getBomTypeDbOptions() |
| | | this.getWorkCenterOptions() |
| | | this.getRunTimeCodeDbOptions() |
| | | this.getLaborClassNo() |
| | | } else { |
| | | this.dataForm.id = null |
| | | this.getParamType() |
| | | this.init() |
| | | this.dataForm = { |
| | | id: null, |
| | | routingNo: null, |
| | | name: null, |
| | | partId: null, |
| | | partNo: null, |
| | | partName: null, |
| | | description: null, |
| | | state: null, |
| | | master: false, |
| | | bomId: null, |
| | | operations: [], |
| | | refs: [], |
| | | bomTypeDb: 'M', |
| | | alternativeNo: '*', |
| | | alternativeDesc: null, |
| | | ifsSync: false, |
| | | phaseInDate: null, |
| | | phaseOutDate: null, |
| | | version: null, |
| | | wireCore: null |
| | | if (this.$route.name == '工艺路线详情') { |
| | | if (newVal) { |
| | | this.dataForm.id = this.$route.query.id |
| | | this.getParamType() |
| | | this.init() |
| | | this.itemKey = Math.random() |
| | | this.getBomTypeDbOptions() |
| | | this.getWorkCenterOptions() |
| | | this.getRunTimeCodeDbOptions() |
| | | this.getLaborClassNo() |
| | | } else { |
| | | this.dataForm.id = null |
| | | this.getParamType() |
| | | this.init() |
| | | this.dataForm = { |
| | | id: null, |
| | | routingNo: null, |
| | | name: null, |
| | | partId: null, |
| | | partNo: null, |
| | | partName: null, |
| | | description: null, |
| | | state: null, |
| | | master: false, |
| | | bomId: null, |
| | | operations: [], |
| | | refs: [], |
| | | bomTypeDb: 'M', |
| | | alternativeNo: '*', |
| | | alternativeDesc: null, |
| | | ifsSync: false, |
| | | phaseInDate: null, |
| | | phaseOutDate: null, |
| | | version: null, |
| | | wireCore: null |
| | | } |
| | | this.operationPart = {} |
| | | this.itemKey = Math.random() |
| | | this.getBomTypeDbOptions() |
| | | this.getWorkCenterOptions() |
| | | this.getRunTimeCodeDbOptions() |
| | | this.getLaborClassNo() |
| | | } |
| | | this.operationPart = {} |
| | | this.itemKey = Math.random() |
| | | this.getBomTypeDbOptions() |
| | | this.getWorkCenterOptions() |
| | | this.getRunTimeCodeDbOptions() |
| | | this.getLaborClassNo() |
| | | } |
| | | }, |
| | | }, |
| | |
| | | this.getWorkCenterOptions() |
| | | this.getRunTimeCodeDbOptions() |
| | | this.getLaborClassNo() |
| | | console.log(4444) |
| | | }, |
| | | methods: { |
| | | // 查询结构类型字典 |