spring
2025-04-27 ff65caf1954933924bdb83946ed1b97743005b89
工艺路线详情页面缓存
已修改1个文件
26 ■■■■■ 文件已修改
src/views/technology/routing/routing-form.vue 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/technology/routing/routing-form.vue
@@ -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() {