From 552be0f3f2b1b1ffc62a1d888e4c7b825fedb9dd Mon Sep 17 00:00:00 2001
From: zhaowei <zhaowei>
Date: 星期二, 13 五月 2025 10:31:14 +0800
Subject: [PATCH] 产品结构树工序和工步层级新增导入其他文档功能

---
 src/views/dnc/base/modules/ProductStructure/ProductStructureTreeContextMenu.vue |   50 +++++++++++++++++++++++++-------------------------
 1 files changed, 25 insertions(+), 25 deletions(-)

diff --git a/src/views/dnc/base/modules/ProductStructure/ProductStructureTreeContextMenu.vue b/src/views/dnc/base/modules/ProductStructure/ProductStructureTreeContextMenu.vue
index d494690..a6f2026 100644
--- a/src/views/dnc/base/modules/ProductStructure/ProductStructureTreeContextMenu.vue
+++ b/src/views/dnc/base/modules/ProductStructure/ProductStructureTreeContextMenu.vue
@@ -39,7 +39,7 @@
           { label: '娣诲姞閮ㄤ欢', code: 'product_add_child', icon: 'plus', isCommonMethod: false },
           { label: '缂栬緫浜у搧淇℃伅', code: 'product_edit', icon: 'edit', isCommonMethod: false },
           // {  label: '瀵煎嚭鏂囨。', code: 'product_export', icon: 'export', isCommonMethod: true },
-          { label: '瀵煎叆鍏朵粬鏂囨。', code: 'product_import', icon: 'import', isCommonMethod: true },
+          { label: '瀵煎叆鍏朵粬鏂囨。', code: 'product_other_import', icon: 'import', isCommonMethod: true },
           { label: '妫�绱㈢數瀛愭牱鏉�', code: 'product_search', icon: 'search', isCommonMethod: true },
           { label: '鍒犻櫎', code: 'product_delete', icon: 'delete', isCommonMethod: true },
           { label: '鏉冮檺閰嶇疆', code: 'public_assign_permission', icon: 'idcard', isCommonMethod: true }
@@ -51,7 +51,7 @@
           { label: '鍒涘缓宸ュ簭', code: 'component_add_relative', icon: 'plus', isCommonMethod: false },
           { label: '缂栬緫閮ㄤ欢淇℃伅', code: 'component_edit', icon: 'edit', isCommonMethod: false },
           // {  label: '瀵煎嚭鏂囨。', code: 'component_export', icon: 'export', isCommonMethod: true },
-          { label: '瀵煎叆鍏朵粬鏂囨。', code: 'component_import', icon: 'import', isCommonMethod: true },
+          { label: '瀵煎叆鍏朵粬鏂囨。', code: 'component_other_import', icon: 'import', isCommonMethod: true },
           { label: '妫�绱㈢數瀛愭牱鏉�', code: 'component_search', icon: 'search', isCommonMethod: true },
           { label: '寮曠敤閮ㄤ欢',code: 'component_borrow',icon: 'plus',isCommonMethod: false},
           { label: '鍒犻櫎', code: 'component_delete', icon: 'delete', isCommonMethod: true },
@@ -64,7 +64,7 @@
           // { label: '鍒涘缓宸ュ簭', code: 'parts_add_relative', icon: 'plus', isCommonMethod: false },
           { label: '缂栬緫闆朵欢淇℃伅', code: 'parts_edit', icon: 'edit', isCommonMethod: false },
           // {  label: '瀵煎嚭鏂囨。', code: 'parts_export', icon: 'export', isCommonMethod: true },
-          { label: '瀵煎叆鍏朵粬鏂囨。', code: 'parts_import', icon: 'import', isCommonMethod: true },
+          { label: '瀵煎叆鍏朵粬鏂囨。', code: 'parts_other_import', icon: 'import', isCommonMethod: true },
           { label: '妫�绱㈢數瀛愭牱鏉�', code: 'parts_search', icon: 'search', isCommonMethod: true },
           { label: '鍒犻櫎', code: 'parts_delete', icon: 'delete', isCommonMethod: true },
           { label: '鏉冮檺閰嶇疆', code: 'public_assign_permission', icon: 'idcard', isCommonMethod: true }
@@ -74,7 +74,7 @@
           { label: '鍒涘缓宸ヨ壓瑙勭▼鐗堟湰', code: 'version_add', icon: 'plus', isCommonMethod: false },
           { label: '鍒涘缓宸ュ簭', code: 'version_add_child', icon: 'plus', isCommonMethod: false },
           { label: '缂栬緫宸ヨ壓瑙勭▼鐗堟湰淇℃伅', code: 'version_edit', icon: 'edit', isCommonMethod: false },
-          { label: '瀵煎叆鍏朵粬鏂囨。', code: 'version_import', icon: 'import', isCommonMethod: true },
+          { label: '瀵煎叆鍏朵粬鏂囨。', code: 'version_other_import', icon: 'import', isCommonMethod: true },
           { label: '妫�绱㈢數瀛愭牱鏉�', code: 'version_search', icon: 'search', isCommonMethod: true },
           { label: '鍒犻櫎', code: 'version_delete', icon: 'delete', isCommonMethod: true },
           { label: '鏉冮檺閰嶇疆', code: 'public_assign_permission', icon: 'idcard', isCommonMethod: true }
@@ -87,7 +87,8 @@
           { label: '缂栬緫宸ュ簭淇℃伅', code: 'process_edit', icon: 'edit', isCommonMethod: false },
           { label: '鍒犻櫎', code: 'process_delete', icon: 'delete', isCommonMethod: true },
           // {  label: '瀵煎嚭NC绋嬪簭', code: 'process_export', icon: 'export', isCommonMethod: true },
-          { label: '瀵煎叆NC绋嬪簭', code: 'process_import', icon: 'import', isCommonMethod: true },
+          { label: '瀵煎叆NC绋嬪簭', code: 'process_nc_import', icon: 'import', isCommonMethod: true },
+          { label: '瀵煎叆鍏朵粬鏂囨。', code: 'process_other_import', icon: 'import', isCommonMethod: true },
           { label: '鏉冮檺閰嶇疆', code: 'public_assign_permission', icon: 'idcard', isCommonMethod: true }
         ],
         //宸ユ
@@ -97,7 +98,8 @@
           { label: '娣诲姞璁惧绫�', code: 'processStep_add_type', icon: 'plus', isCommonMethod: true },
           { label: '鍒犻櫎', code: 'processStep_delete', icon: 'delete', isCommonMethod: true },
           // {  label: '瀵煎嚭NC绋嬪簭', code: 'processStep_export', icon: 'import', isCommonMethod: true },
-          { label: '瀵煎叆NC绋嬪簭', code: 'processStep_import', icon: 'import', isCommonMethod: true },
+          { label: '瀵煎叆NC绋嬪簭', code: 'processStep_nc_import', icon: 'import', isCommonMethod: true },
+          { label: '瀵煎叆鍏朵粬鏂囨。', code: 'processStep_other_import', icon: 'import', isCommonMethod: true },
           { label: '鏉冮檺閰嶇疆', code: 'public_assign_permission', icon: 'idcard', isCommonMethod: true }
         ]
       }
@@ -120,30 +122,28 @@
           return 'processStep'
       }
     },
-    getCurrentDocClassCode() {
-      switch (+this.treeParams.type) {
-        case 1:
-          return 'OTHER'
-        case 2:
-          return 'OTHER'
-        case 3:
-          return 'OTHER'
-        case 4:
-          return 'OTHER'
-        case 5:
-          return 'NC'
-        case 6:
-          return 'NC'
-      }
-    }
+    // getCurrentDocClassCode() {
+    //   switch (+this.treeParams.type) {
+    //     case 1:
+    //       return 'OTHER'
+    //     case 2:
+    //       return 'OTHER'
+    //     case 3:
+    //       return 'OTHER'
+    //     case 4:
+    //       return 'OTHER'
+    //     case 5:
+    //       return 'NC'
+    //     case 6:
+    //       return 'NC'
+    //   }
+    // }
   },
   methods: {
     onContextMenuClick(treeKey, menuKey) {
       const level = this.getCurrentMenuLevel
-      const param = this.getCurrentDocClassCode
       console.log('level---------------------', level)
-      console.log('param---------------------', param)
-      const treeNodeInfo = Object.assign({}, this.treeParams, { param })
+      const treeNodeInfo = Object.assign({}, this.treeParams)
       console.log('treeNodeInfo******************', treeNodeInfo)
       const menuKeyArray = menuKey.split('_')
       const isCommonMethod = this.defaultContextMenuList[level].find(item => item.code === menuKey).isCommonMethod

--
Gitblit v1.9.3