Commit bfbb573906429fb24841f1b86b1685f48d06ac31

Authored by Min
1 parent 3c6023bd

1.处理工单自动计算 ,审核后依然亮的bug

src/components/Manufacture/WorkOrderPackTableTreeNew/index.js
... ... @@ -263,6 +263,14 @@ const WorkOrderPackTableTreeNewEvent = props => {
263 263 return props[funcName](...args);
264 264 };
265 265  
  266 + // 按钮状态处理
  267 + const getMenuStatus = (menu) => {
  268 + if (menu.sControlName === 'BtnCalculation' || menu.sControlName === 'BtnCombine' || menu.sControlName === 'BtnChooseProcess' ||
  269 + menu.sControlName === 'BtnChooseMaterials' || menu.sControlName === 'BtnBsOperation.BtnDraft') {
  270 + return !props.enabled;
  271 + }
  272 + };
  273 +
266 274 // 新增
267 275 const handleAdd = async (config, copyTo, isWait) => {
268 276 if (commonUtils.isEmptyObject(config)) {
... ... @@ -1606,6 +1614,7 @@ const WorkOrderPackTableTreeNewEvent = props => {
1606 1614 }
1607 1615 };
1608 1616 returnProps.onButtonClick = handleButtonClick;
  1617 + returnProps.getMenuStatus = getMenuStatus;
1609 1618  
1610 1619 // 复制到
1611 1620 const handleCopyTo = async (name, sActiveId) => {
... ...