From 8ef827c62d8c7817ad9f9a21b9b4e5bf63a01202 Mon Sep 17 00:00:00 2001
From: lyh <925863403@qq.com>
Date: 星期五, 07 三月 2025 17:42:19 +0800
Subject: [PATCH] 添加刀具信息

---
 src/views/dnc/base/modules/ProductStructure/ProductStructureMainBottom.vue |   81 ++++++++++++++++++++++------------------
 1 files changed, 44 insertions(+), 37 deletions(-)

diff --git a/src/views/dnc/base/modules/ProductStructure/ProductStructureMainBottom.vue b/src/views/dnc/base/modules/ProductStructure/ProductStructureMainBottom.vue
index 661bbb0..3ec0b3e 100644
--- a/src/views/dnc/base/modules/ProductStructure/ProductStructureMainBottom.vue
+++ b/src/views/dnc/base/modules/ProductStructure/ProductStructureMainBottom.vue
@@ -1,50 +1,55 @@
 <template>
-  <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">
-      <ProductInfo :currentLevelDetails="currentLevelInfo.entity" :size="containerSize"/>
-    </a-tab-pane>
-
-    <a-tab-pane :key="1" tab="灞炴�т俊鎭�" v-if="currentLevelInfo.type===2">
-      <ComponentInfo :currentLevelDetails="currentLevelInfo.entity" :size="containerSize"/>
-    </a-tab-pane>
-
-    <a-tab-pane :key="1" tab="闆朵欢灞炴��" v-if="currentLevelInfo.type===3">
-      <PartInfo :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 :key="1" tab="宸ユ灞炴��" v-if="currentLevelInfo.type===6">
-      <ProcessStepInfo :currentLevelDetails="currentLevelInfo.entity" :size="containerSize"/>
-    </a-tab-pane>
-
-    <template v-if="currentLevelInfo.hasOwnProperty('attributionType')">
-      <a-tab-pane :key="1" tab="鏂囨。灞炴��">
-        <DocumentInfo :currentLevelDetails="currentLevelInfo" :size="containerSize"/>
+  <div v-if="currentLevelInfo.type!==4">
+    <a-tabs v-model="activeTabKey" v-if="Object.keys(currentLevelInfo).length>0" @change="handleTabChange">
+      <a-tab-pane :key="1" tab="灞炴�т俊鎭�" v-if="currentLevelInfo.type===1">
+        <ProductInfo :currentLevelDetails="currentLevelInfo.entity" :size="containerSize"/>
       </a-tab-pane>
 
-      <a-tab-pane :key="2" tab="棰勮">
-        <FilePreview ref="filePreviewRef" :currentDocumentInfo="currentLevelInfo"/>
+      <a-tab-pane :key="1" tab="灞炴�т俊鎭�" v-if="currentLevelInfo.type===2">
+        <ComponentInfo :currentLevelDetails="currentLevelInfo.entity" :size="containerSize"/>
       </a-tab-pane>
 
-      <a-tab-pane :key="3" tab="鏂囨。鐗堟湰">
-        <DocumentVersionTableList ref="documentVersionTableRef" :currentDocumentInfo="currentLevelInfo"
-                                  @handleTableContextMenuOpen="handleTableContextMenuOpen"
-                                  @releaseFilePreviewApi="releaseFilePreviewApi"
-                                  :size="containerSize"/>
+      <a-tab-pane :key="1" tab="闆朵欢灞炴��" v-if="currentLevelInfo.type===3">
+        <PartInfo :currentLevelDetails="currentLevelInfo.entity" :size="containerSize"/>
       </a-tab-pane>
 
-      <a-tab-pane :key="4" tab="浣跨敤璁惧" v-if="currentLevelInfo.attributionType===5">
-        <UseDocumentEquipmentTableList ref="useDocumentEquipmentTableRef" :currentDocumentInfo="currentLevelInfo"
-                                       :size="containerSize"/>
+      <a-tab-pane :key="1" tab="宸ュ簭灞炴��" v-if="currentLevelInfo.type===5">
+        <ProcessInfo :currentLevelDetails="currentLevelInfo.entity" :size="containerSize"/>
       </a-tab-pane>
-    </template>
+
+      <a-tab-pane :key="1" tab="宸ユ灞炴��" v-if="currentLevelInfo.type===6">
+        <ProcessStepInfo :currentLevelDetails="currentLevelInfo.entity" :size="containerSize"/>
+      </a-tab-pane>
+
+      <a-tab-pane :key="2" tab="鍒�鍏蜂俊鎭�" v-if="currentLevelInfo.type===5||currentLevelInfo.type===6">
+        <CutterInfo :currentLevelDetails="currentLevelInfo.entity" :size="containerSize"/>
+      </a-tab-pane>
+
+      <template v-if="currentLevelInfo.hasOwnProperty('attributionType')">
+        <a-tab-pane :key="1" tab="鏂囨。灞炴��">
+          <DocumentInfo :currentLevelDetails="currentLevelInfo" :size="containerSize"/>
+        </a-tab-pane>
+
+        <a-tab-pane :key="2" tab="棰勮">
+          <FilePreview ref="filePreviewRef" :currentDocumentInfo="currentLevelInfo"/>
+        </a-tab-pane>
+
+        <a-tab-pane :key="3" tab="鏂囨。鐗堟湰">
+          <DocumentVersionTableList ref="documentVersionTableRef" :currentDocumentInfo="currentLevelInfo"
+                                    @handleTableContextMenuOpen="handleTableContextMenuOpen"
+                                    @releaseFilePreviewApi="releaseFilePreviewApi"
+                                    :size="containerSize"/>
+        </a-tab-pane>
+
+        <a-tab-pane :key="4" tab="浣跨敤璁惧" v-if="currentLevelInfo.attributionType===5">
+          <UseDocumentEquipmentTableList ref="useDocumentEquipmentTableRef" :currentDocumentInfo="currentLevelInfo"
+                                         :size="containerSize"/>
+        </a-tab-pane>
+      </template>
+    </a-tabs>
 
     <TableContextMenu :tableRowInfo="currentRightClickedTableRowInfo" ref="tableContextMenuRef"/>
-  </a-tabs>
+  </div>
 </template>
 
 <script>
@@ -58,10 +63,12 @@
   import ProcessStepInfo from './ProcessStep/ProcessStepInfo'
   import FilePreview from '../../../common/FilePreview'
   import TableContextMenu from '../../../common/TableContextMenu'
+  import CutterInfo from '@views/dnc/base/modules/ProductStructure/Cutter/CutterInfo.vue'
 
   export default {
     name: 'ProductStructureMainBottom',
     components: {
+      CutterInfo,
       TableContextMenu,
       FilePreview,
       ProcessStepInfo,

--
Gitblit v1.9.3