From bfbb573906429fb24841f1b86b1685f48d06ac31 Mon Sep 17 00:00:00 2001 From: pengm <674192343@qq.com> Date: Wed, 22 Apr 2026 13:20:42 +0800 Subject: [PATCH] 1.处理工单自动计算 ,审核后依然亮的bug --- src/components/Manufacture/WorkOrderPackTableTreeNew/index.js | 9 +++++++++ 1 file changed, 9 insertions(+), 0 deletions(-) diff --git a/src/components/Manufacture/WorkOrderPackTableTreeNew/index.js b/src/components/Manufacture/WorkOrderPackTableTreeNew/index.js index 3d0c365..23ee7be 100644 --- a/src/components/Manufacture/WorkOrderPackTableTreeNew/index.js +++ b/src/components/Manufacture/WorkOrderPackTableTreeNew/index.js @@ -263,6 +263,14 @@ const WorkOrderPackTableTreeNewEvent = props => { return props[funcName](...args); }; + // 按钮状态处理 + const getMenuStatus = (menu) => { + if (menu.sControlName === 'BtnCalculation' || menu.sControlName === 'BtnCombine' || menu.sControlName === 'BtnChooseProcess' || + menu.sControlName === 'BtnChooseMaterials' || menu.sControlName === 'BtnBsOperation.BtnDraft') { + return !props.enabled; + } + }; + // 新增 const handleAdd = async (config, copyTo, isWait) => { if (commonUtils.isEmptyObject(config)) { @@ -1606,6 +1614,7 @@ const WorkOrderPackTableTreeNewEvent = props => { } }; returnProps.onButtonClick = handleButtonClick; + returnProps.getMenuStatus = getMenuStatus; // 复制到 const handleCopyTo = async (name, sActiveId) => { -- libgit2 0.22.2