| | |
| | | <template> |
| | | <div v-if="+currentLevelInfo.type!==4" style="height: 100%"> |
| | | <div style="height: 100%"> |
| | | <a-tabs style="height: 100%" v-model="activeTabKey" v-if="Object.keys(currentLevelInfo).length>0" |
| | | @change="handleTabChange"> |
| | | <a-tab-pane :key="1" tab="属性信息" v-if="+currentLevelInfo.type===1"> |
| | |
| | | <PartInfo :currentLevelDetails="currentLevelInfo.entity" :size="containerSize"/> |
| | | </a-tab-pane> |
| | | |
| | | <a-tab-pane :key="1" tab="属性信息" v-if="+currentLevelInfo.type===4"> |
| | | <ProcessSpecVersionInfo :currentLevelDetails="currentLevelInfo.entity" :size="containerSize"/> |
| | | </a-tab-pane> |
| | | |
| | | <a-tab-pane :key="1" tab="工序属性" v-if="+currentLevelInfo.type===5"> |
| | | <ProcessInfo :currentLevelDetails="currentLevelInfo.entity" :size="containerSize"/> |
| | | </a-tab-pane> |
| | |
| | | </a-tab-pane> |
| | | |
| | | <a-tab-pane :key="1" tab="设备列表" v-if="currentLevelInfo.hasOwnProperty('deviceManagementId')"> |
| | | <!-- <ProcessStepInfo :currentLevelDetails="currentLevelInfo" :size="containerSize"/>--> |
| | | 设备列表 |
| | | </a-tab-pane> |
| | | |
| | | <!--系统参数配置中若参数为1时才展示对应层级的刀具列表--> |
| | | <a-tab-pane :key="2" tab="刀具列表" |
| | | v-if="+currentLevelInfo.type===5&&isProcessHasCutterList||+currentLevelInfo.type===6&&isProcessStepHasCutterList"> |
| | | <CutterTableList ref="cutterTableListRef" :currentLevelInfo="currentLevelInfo" :size="containerSize"/> |
| | | <UseDeviceCustomTypeEquipmentTableList ref="useTypeEquipmentTableListRef" |
| | | :currentLevelDetails="currentLevelInfo" :size="containerSize"/> |
| | | </a-tab-pane> |
| | | |
| | | <template v-if="currentLevelInfo.hasOwnProperty('docId')"> |
| | |
| | | :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="刀具列表" v-if="currentLevelInfo.classificationId_dictText==='nc'"> |
| | | <CutterTableList ref="cutterTableListRef" :currentLevelInfo="currentLevelInfo" :size="containerSize"/> |
| | | </a-tab-pane> |
| | | |
| | | <a-tab-pane :key="6" tab="审签详情"> |
| | | <DocumentInfoFlow ref="flowTableListRef" :currentLevelDetails="currentLevelInfo" :size="containerSize"/> |
| | | </a-tab-pane> |
| | | |
| | | <a-tab-pane :key="7" tab="批次列表" v-if="currentLevelInfo.classificationId_dictText==='nc'"> |
| | | <GuideCardBatchList ref="guideCardBatchInfoRef" :guideCardBatchInfo="currentLevelInfo" :size="containerSize"/> |
| | | </a-tab-pane> |
| | | |
| | | |
| | | </template> |
| | | </a-tabs> |
| | | |
| | |
| | | import ProcessStepInfo from './ProcessStep/ProcessStepInfo' |
| | | import CutterTableList from './Cutter/CutterTableList' |
| | | import DocumentInfo from '../../../common/DocumentInfo' |
| | | import DocumentInfoFlow from '../../../common/DocumentInfoFlow.vue' |
| | | import DocumentVersionTableList from '../../../common/DocumentVersionTableList' |
| | | import UseDocumentEquipmentTableList from './Document/UseNcDocumentEquipmentTableList' |
| | | import FilePreview from '../../../common/FilePreview' |
| | | import TableContextMenu from '../../../common/TableContextMenu' |
| | | import UseDeviceCustomTypeEquipmentTableList |
| | | from '@views/dnc/base/modules/ProductStructure/DeviceCustomType/UseDeviceCustomTypeEquipmentTableList.vue' |
| | | import ProcessSpecVersionInfo |
| | | from '@views/dnc/base/modules/ProductStructure/ProcessSpecVersion/ProcessSpecVersionInfo.vue' |
| | | import { getAction } from '@/api/manage' |
| | | import GuideCardBatchList from '@views/dnc/base/modules/ProductStructure/GuideCardBatch/GuideCardBatchList.vue' |
| | | |
| | | export default { |
| | | name: 'ProductStructureMainBottom', |
| | | components: { |
| | | GuideCardBatchList, |
| | | ProcessSpecVersionInfo, |
| | | UseDeviceCustomTypeEquipmentTableList, |
| | | CutterTableList, |
| | | TableContextMenu, |
| | | FilePreview, |
| | |
| | | UseDocumentEquipmentTableList, |
| | | DocumentVersionTableList, |
| | | DocumentInfo, |
| | | DocumentInfoFlow, |
| | | ProcessInfo, |
| | | PartInfo, |
| | | ProductInfo, |
| | |
| | | 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: { |
| | | /** |
| | | * 获取刀具列表在工序和工步层级的展示权限 |
| | |
| | | }) |
| | | }, |
| | | |
| | | reloadCutterList() { |
| | | if (this.$refs.cutterTableListRef) { |
| | | this.$refs.cutterTableListRef.searchQuery(1) |
| | | } |
| | | }, |
| | | |
| | | /** |
| | | * 接收树组件以及表格传来的当前选中或点击的项信息 |
| | | * @param levelInfo 当前层级信息 |
| | |
| | | receiveCurrentLevelInfo(levelInfo) { |
| | | this.currentLevelInfo = levelInfo |
| | | this.activeTabKey = 1 |
| | | this.$nextTick(() => { |
| | | if (this.$refs.useTypeEquipmentTableListRef) { |
| | | this.$refs.useTypeEquipmentTableListRef.setQueryParamAndLoadData() |
| | | this.hasLoadedDataTabKeyArray.push(this.activeTabKey) |
| | | return |
| | | } |
| | | }) |
| | | this.hasLoadedDataTabKeyArray = [] |
| | | }, |
| | | |
| | |
| | | case 4: |
| | | this.$nextTick(() => this.$refs.useDocumentEquipmentTableRef.loadData()) |
| | | break |
| | | case 5: |
| | | this.$nextTick(() => this.$refs.cutterTableListRef.setQueryParamAndLoadData(1)) |
| | | break |
| | | case 6: |
| | | this.$nextTick(() => this.$refs.flowTableListRef.getAllApproveData()) |
| | | break |
| | | case 7: |
| | | this.$nextTick(() => this.$refs.guideCardBatchInfoRef.getGuideCardBatchList()) |
| | | default: |
| | | } |
| | | // 阻止接口在同一文档一次点击内多次触发 |