From 1129abf78f3de8074ab8f526ccd50068644f6229 Mon Sep 17 00:00:00 2001
From: hyingbo <1363390067@qq.com>
Date: 星期二, 12 八月 2025 15:20:21 +0800
Subject: [PATCH] 设备采购计划页面列表空白列修改,产品结构树工序/工步添加发送nc程序到三维工艺按钮

---
 src/views/dnc/base/modules/ProductStructure/ProductStructureTree.vue            |   45 +++++++++++++++++++++++++++++++++++++++++++--
 src/views/dnc/base/modules/ProductStructure/ProductStructureTreeContextMenu.vue |    6 ++++--
 src/views/eam/purchase/EamEquipmentPurchasePlanList.vue                         |    3 +++
 3 files changed, 50 insertions(+), 4 deletions(-)

diff --git a/src/views/dnc/base/modules/ProductStructure/ProductStructureTree.vue b/src/views/dnc/base/modules/ProductStructure/ProductStructureTree.vue
index 7ca8dcb..2c72304 100644
--- a/src/views/dnc/base/modules/ProductStructure/ProductStructureTree.vue
+++ b/src/views/dnc/base/modules/ProductStructure/ProductStructureTree.vue
@@ -79,7 +79,7 @@
 
 <script>
   import dncApi from '@/api/dnc'
-  import { deleteAction } from '@/api/manage'
+  import { deleteAction, getAction } from '@/api/manage'
   import ProductStructureTreeContextMenu from './ProductStructureTreeContextMenu'
   import ProductModal from './Product/ProductModal'
   import ComponentModal from './Component/ComponentModal'
@@ -130,7 +130,8 @@
         rightClickSelected: {},
         fullScreenSpinning: false,
         url: {
-          delete: '/nc/product/delete'
+          delete: '/nc/product/delete',
+          webServiceDNCToPlm: '/dnc/guideCardBatch/webServiceDNCToPlm'
         }
       }
     },
@@ -271,6 +272,46 @@
         })
       },
 
+      // 鏍戣妭鐐瑰彸閿崟鍑昏彍鍗曚腑鍒犻櫎鎸夐挳鏃惰Е鍙�
+      handleSendNcToPlm() {
+        const that = this
+        const { rightClickSelected: { id, type }, $confirm, url, $notification } = that
+        $confirm({
+          title: '鎻愮ず',
+          content: '纭鍙戦�佽nc绋嬪簭锛�',
+          okText: '纭',
+          okType: 'danger',
+          cancelText: '鍙栨秷',
+          onOk: () => {
+            if (!url.webServiceDNCToPlm) {
+              this.$message.error('璇疯缃畊rl.webServiceDNCToPlm!')
+              return
+            }
+            getAction(url.webServiceDNCToPlm, {id: id})
+              .then((res) => {
+                if (res.success) {
+                  that.getTreeDataByApi()
+                  $notification.success({
+                    message: '娑堟伅',
+                    description: res.message
+                  })
+                } else {
+                  $notification.warning({
+                    message: '娑堟伅',
+                    description: res.message
+                  })
+                }
+              })
+              .finally(() => {
+                that.$destroyAll()
+              })
+          },
+          onCancel: () => {
+            that.$destroyAll()
+          }
+        })
+      },
+
       /**
        * 鑷姩灞曞紑娣诲姞涓嬬骇鑺傜偣鐨勭埗鑺傜偣
        * @param isAddNextLevel 鏄惁闇�瑕佸睍寮�涓嬬骇
diff --git a/src/views/dnc/base/modules/ProductStructure/ProductStructureTreeContextMenu.vue b/src/views/dnc/base/modules/ProductStructure/ProductStructureTreeContextMenu.vue
index a57934e..283f48b 100644
--- a/src/views/dnc/base/modules/ProductStructure/ProductStructureTreeContextMenu.vue
+++ b/src/views/dnc/base/modules/ProductStructure/ProductStructureTreeContextMenu.vue
@@ -95,7 +95,8 @@
           { label: '瀵煎叆鍏朵粬鏂囨。', code: 'process_other_import', icon: 'import', isCommonMethod: true },
           { label: '妫�绱㈢數瀛愭牱鏉�', code: 'process_search', icon: 'search', isCommonMethod: true },
           { label: '妫�绱C鏂囦欢', code: 'process_search_nc', icon: 'search', isCommonMethod: true },
-          { label: '鏉冮檺閰嶇疆', code: 'public_assign_permission', icon: 'idcard', isCommonMethod: true }
+          { label: '鏉冮檺閰嶇疆', code: 'public_assign_permission', icon: 'idcard', isCommonMethod: true },
+          { label: '鍙戦�乶c绋嬪簭鑷充笁缁村伐鑹�', code: 'process_send_nc_to_plm', icon: 'import', isCommonMethod: true }
         ],
         //宸ユ
         processStep: [
@@ -108,7 +109,8 @@
           { label: '瀵煎叆鍏朵粬鏂囨。', code: 'processStep_other_import', icon: 'import', isCommonMethod: true },
           { label: '妫�绱㈢數瀛愭牱鏉�', code: 'processStep_search', icon: 'search', isCommonMethod: true },
           { label: '妫�绱C鏂囦欢', code: 'processStep_search_nc', icon: 'search', isCommonMethod: true },
-          { label: '鏉冮檺閰嶇疆', code: 'public_assign_permission', icon: 'idcard', isCommonMethod: true }
+          { label: '鏉冮檺閰嶇疆', code: 'public_assign_permission', icon: 'idcard', isCommonMethod: true },
+          { label: '鍙戦�乶c绋嬪簭鑷充笁缁村伐鑹�', code: 'processStep_send_nc_to_plm', icon: 'import', isCommonMethod: true }
         ]
       }
     }
diff --git a/src/views/eam/purchase/EamEquipmentPurchasePlanList.vue b/src/views/eam/purchase/EamEquipmentPurchasePlanList.vue
index 0e6d69d..3c1e2bf 100644
--- a/src/views/eam/purchase/EamEquipmentPurchasePlanList.vue
+++ b/src/views/eam/purchase/EamEquipmentPurchasePlanList.vue
@@ -185,17 +185,20 @@
             title:'閲囪喘璁″垝缂栫爜',
             align:"center",
             dataIndex: 'planCode',
+            width: 100,
             fixed: 'left'
           },
           {
             title:'閲囪喘璁″垝鍚嶇О',
             align:"center",
             dataIndex: 'planName',
+            width: 100,
             fixed: 'left'
           },
           {
             title:'璁″垝鐘舵��',
             align:"center",
+            width: 100,
             dataIndex: 'planStatus_dictText'
           },
           {

--
Gitblit v1.9.3