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 +++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 43 insertions(+), 2 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 鏄惁闇�瑕佸睍寮�涓嬬骇 -- Gitblit v1.9.3