spring
2025-04-27 41c9b2fa8cef5f45c23d00d33680764b48dfc3cc
src/views/technology/routing/routing-form.vue
@@ -543,9 +543,9 @@
  },
  watch: {
    'dataForm.partId'(newValue, oldValue) {
      if (oldValue) {
        this.dataForm.bomId = null
      }
      // if (oldValue) {
      //   this.dataForm.bomId = null
      // }
      if (newValue) {
        getBomList(
          Object.assign({
@@ -580,10 +580,33 @@
      } 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()
@@ -593,7 +616,6 @@
    this.getRunTimeCodeDbOptions()
    this.getLaborClassNo()
  },
  methods: {
    // 查询结构类型字典
    getBomTypeDbOptions() {