Commit bfbb573906429fb24841f1b86b1685f48d06ac31
1 parent
3c6023bd
1.处理工单自动计算 ,审核后依然亮的bug
Showing
1 changed file
with
9 additions
and
0 deletions
src/components/Manufacture/WorkOrderPackTableTreeNew/index.js
| @@ -263,6 +263,14 @@ const WorkOrderPackTableTreeNewEvent = props => { | @@ -263,6 +263,14 @@ const WorkOrderPackTableTreeNewEvent = props => { | ||
| 263 | return props[funcName](...args); | 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 | const handleAdd = async (config, copyTo, isWait) => { | 275 | const handleAdd = async (config, copyTo, isWait) => { |
| 268 | if (commonUtils.isEmptyObject(config)) { | 276 | if (commonUtils.isEmptyObject(config)) { |
| @@ -1606,6 +1614,7 @@ const WorkOrderPackTableTreeNewEvent = props => { | @@ -1606,6 +1614,7 @@ const WorkOrderPackTableTreeNewEvent = props => { | ||
| 1606 | } | 1614 | } |
| 1607 | }; | 1615 | }; |
| 1608 | returnProps.onButtonClick = handleButtonClick; | 1616 | returnProps.onButtonClick = handleButtonClick; |
| 1617 | + returnProps.getMenuStatus = getMenuStatus; | ||
| 1609 | 1618 | ||
| 1610 | // 复制到 | 1619 | // 复制到 |
| 1611 | const handleCopyTo = async (name, sActiveId) => { | 1620 | const handleCopyTo = async (name, sActiveId) => { |