| | |
| | | } else { |
| | | this.bomList = [] |
| | | } |
| | | } |
| | | }, |
| | | '$route.query.id': { |
| | | immediate: true, |
| | | handler(newVal, oldVal) { |
| | | this.dataForm.id = this.$route.query.id |
| | | this.getParamType() |
| | | this.init() |
| | | this.itemKey = Math.random() |
| | | this.getBomTypeDbOptions() |
| | | this.getWorkCenterOptions() |
| | | this.getRunTimeCodeDbOptions() |
| | | this.getLaborClassNo() |
| | | }, |
| | | }, |
| | | }, |
| | | |
| | | created() { |
| | | // this.dataForm.id = this.$route.query.id |
| | | // this.getParamType() |
| | | // this.init() |
| | | // this.itemKey = Math.random() |
| | | // this.getBomTypeDbOptions() |
| | | // this.getWorkCenterOptions() |
| | | // this.getRunTimeCodeDbOptions() |
| | | // this.getLaborClassNo() |
| | | }, |
| | | activated() { |
| | | this.dataForm.id = this.$route.query.id |
| | | this.getParamType() |
| | | this.init() |
| | |
| | | this.getRunTimeCodeDbOptions() |
| | | this.getLaborClassNo() |
| | | }, |
| | | |
| | | methods: { |
| | | // 查询结构类型字典 |
| | | getBomTypeDbOptions() { |