From d9aab92fa25860c6682debe50e10770dc7db42a0 Mon Sep 17 00:00:00 2001 From: cuikaidong <ckd2942379034@163.com> Date: 星期四, 14 八月 2025 12:44:33 +0800 Subject: [PATCH] 组合刀模块增加 --- 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