From 6ecce65da54f4dbc1e13a3c8f94deff2e51e97c0 Mon Sep 17 00:00:00 2001 From: zhangherong <571457620@qq.com> Date: 星期四, 15 五月 2025 15:41:10 +0800 Subject: [PATCH] art: 设备管理-设备处置 报废 基础代码修改 --- src/views/dnc/base/modules/ProductStructure/ProductStructureMainBottom.vue | 23 ++++++++++++++++++++--- 1 files changed, 20 insertions(+), 3 deletions(-) diff --git a/src/views/dnc/base/modules/ProductStructure/ProductStructureMainBottom.vue b/src/views/dnc/base/modules/ProductStructure/ProductStructureMainBottom.vue index 899d586..1c1145a 100644 --- a/src/views/dnc/base/modules/ProductStructure/ProductStructureMainBottom.vue +++ b/src/views/dnc/base/modules/ProductStructure/ProductStructureMainBottom.vue @@ -1,5 +1,5 @@ <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"> @@ -14,6 +14,10 @@ <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> @@ -23,8 +27,8 @@ </a-tab-pane> <a-tab-pane :key="1" tab="璁惧鍒楄〃" v-if="currentLevelInfo.hasOwnProperty('deviceManagementId')"> -<!-- <ProcessStepInfo :currentLevelDetails="currentLevelInfo" :size="containerSize"/>--> - 璁惧鍒楄〃 + <UseDeviceCustomTypeEquipmentTableList ref="useTypeEquipmentTableListRef" + :currentLevelDetails="currentLevelInfo" :size="containerSize"/> </a-tab-pane> <!--绯荤粺鍙傛暟閰嶇疆涓嫢鍙傛暟涓�1鏃舵墠灞曠ず瀵瑰簲灞傜骇鐨勫垁鍏峰垪琛�--> @@ -72,11 +76,17 @@ 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' export default { name: 'ProductStructureMainBottom', components: { + ProcessSpecVersionInfo, + UseDeviceCustomTypeEquipmentTableList, CutterTableList, TableContextMenu, FilePreview, @@ -129,6 +139,13 @@ 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 = [] }, -- Gitblit v1.9.3