lyh
8 天以前 76f83ad33466ea704eec9a121d2e0a22c1828a84
src/views/dnc/base/modules/ProductStructure/ProductStructureMainBottom.vue
@@ -47,12 +47,12 @@
                                    :size="containerSize"/>
        </a-tab-pane>
        <a-tab-pane :key="4" tab="使用设备" v-if="+currentLevelInfo.attributionType===5">
        <a-tab-pane :key="4" tab="使用设备" v-if="currentLevelInfo.classificationId_dictText==='nc'">
          <UseDocumentEquipmentTableList ref="useDocumentEquipmentTableRef" :currentDocumentInfo="currentLevelInfo"
                                         :size="containerSize"/>
        </a-tab-pane>
        <a-tab-pane :key="5" tab="刀具列表">
        <a-tab-pane :key="5" tab="刀具列表" v-if="currentLevelInfo.classificationId_dictText==='nc'">
          <CutterTableList ref="cutterTableListRef" :currentLevelInfo="currentLevelInfo" :size="containerSize"/>
        </a-tab-pane>
@@ -60,7 +60,7 @@
          <DocumentInfoFlow ref="flowTableListRef" :currentLevelDetails="currentLevelInfo" :size="containerSize"/>
        </a-tab-pane>
        <a-tab-pane :key="7" tab="批次列表">
        <a-tab-pane :key="7" tab="批次列表" v-if="currentLevelInfo.classificationId_dictText==='nc'">
          <GuideCardBatchList ref="guideCardBatchInfoRef" :guideCardBatchInfo="currentLevelInfo" :size="containerSize"/>
        </a-tab-pane>
@@ -129,7 +129,14 @@
    this.$bus.$on('reloadMainBottomTableData', this.reloadMainBottomTableData)
    this.getCutterListDisplayPermission('dnc_cutter_process', 'isProcessHasCutterList')
    this.getCutterListDisplayPermission('dnc_cutter_step', 'isProcessStepHasCutterList')
    this.$bus.$on('reloadCutterList', this.reloadCutterList)
  },
  // 在beforeDestroy钩子中移除
  beforeDestroy() {
    this.$bus.$off('reloadCutterList', this.reloadCutterList)
  },
  methods: {
    /**
     * 获取刀具列表在工序和工步层级的展示权限
@@ -144,6 +151,12 @@
      })
    },
    reloadCutterList() {
      if (this.$refs.cutterTableListRef) {
        this.$refs.cutterTableListRef.searchQuery(1)
      }
    },
    /**
     * 接收树组件以及表格传来的当前选中或点击的项信息
     * @param levelInfo 当前层级信息