Commit 3d07d1282c9e2170ccc3445750e530fc3f496e83
Merge branch 'release/customer/2025/五彩' of http://git.xlyprint.cn/qiangmj/ebc-Me…
…s into release/customer/2025/五彩
Showing
1 changed file
with
56 additions
and
51 deletions
src/mes/common/commonOperationBarComponent/index.js
| ... | ... | @@ -1570,58 +1570,63 @@ const BarcodeComponent = props => { |
| 1570 | 1570 | item => item.sName === "sSearchProductName" |
| 1571 | 1571 | ); |
| 1572 | 1572 | |
| 1573 | - props.onExecInstructSet({ | |
| 1574 | - btnConfig, | |
| 1575 | - nextProps: { scanCodeData: [{ value: valueNew }] }, | |
| 1576 | - // callback: () => { | |
| 1577 | - // if (commonUtils.isNotEmptyArr(searchProductConfig)) { | |
| 1578 | - // props.onSaveState({ | |
| 1579 | - // refreshMachineDataFlag: new Date().getTime(), | |
| 1580 | - // productionTableList: [sName] | |
| 1581 | - // }); | |
| 1582 | - // } | |
| 1583 | - // }, | |
| 1584 | - inscallback: nextProps => { | |
| 1585 | - if (commonUtils.isNotEmptyArr(searchProductConfig)) { | |
| 1586 | - props.onSaveState({ | |
| 1587 | - refreshMachineDataFlag: new Date().getTime(), | |
| 1588 | - productionTableList: [sName] | |
| 1589 | - }, () => { | |
| 1590 | - props.onRefresh && props.onRefresh(); | |
| 1591 | - }); | |
| 1573 | + try { | |
| 1574 | + props.onExecInstructSet({ | |
| 1575 | + btnConfig, | |
| 1576 | + nextProps: {scanCodeData: [{value: valueNew}]}, | |
| 1577 | + // callback: () => { | |
| 1578 | + // if (commonUtils.isNotEmptyArr(searchProductConfig)) { | |
| 1579 | + // props.onSaveState({ | |
| 1580 | + // refreshMachineDataFlag: new Date().getTime(), | |
| 1581 | + // productionTableList: [sName] | |
| 1582 | + // }); | |
| 1583 | + // } | |
| 1584 | + // }, | |
| 1585 | + inscallback: nextProps => { | |
| 1586 | + if (commonUtils.isNotEmptyArr(searchProductConfig)) { | |
| 1587 | + props.onSaveState({ | |
| 1588 | + refreshMachineDataFlag: new Date().getTime(), | |
| 1589 | + productionTableList: [sName] | |
| 1590 | + }, () => { | |
| 1591 | + // props.onRefresh && props.onRefresh(); | |
| 1592 | + }); | |
| 1593 | + } | |
| 1592 | 1594 | } |
| 1593 | - } | |
| 1594 | - // inscallback: nextProps => { | |
| 1595 | - // if (commonUtils.isNotEmptyArr(searchProductConfig)) { | |
| 1596 | - // const { machinedataData } = nextProps; | |
| 1597 | - // if (commonUtils.isNotEmptyArr(machinedataData)) { | |
| 1598 | - // const { | |
| 1599 | - // sProductId, | |
| 1600 | - // sProductNo, | |
| 1601 | - // sSearchProductId = sProductId, | |
| 1602 | - // sSearchProductNo = sProductNo | |
| 1603 | - // } = machinedataData[0]; | |
| 1604 | - // nextProps.onSaveState( | |
| 1605 | - // { | |
| 1606 | - // workOrderInfoData: machinedataData, | |
| 1607 | - // sSearchProductId: sSearchProductId | |
| 1608 | - // }, | |
| 1609 | - // nextPropsNew => { | |
| 1610 | - // props.onSearchProductNameChange( | |
| 1611 | - // "", | |
| 1612 | - // "", | |
| 1613 | - // { | |
| 1614 | - // sSearchProductId, | |
| 1615 | - // sSearchProductNo | |
| 1616 | - // }, | |
| 1617 | - // true | |
| 1618 | - // ); | |
| 1619 | - // } | |
| 1620 | - // ); | |
| 1621 | - // } | |
| 1622 | - // } | |
| 1623 | - // } | |
| 1624 | - }); | |
| 1595 | + // inscallback: nextProps => { | |
| 1596 | + // if (commonUtils.isNotEmptyArr(searchProductConfig)) { | |
| 1597 | + // const { machinedataData } = nextProps; | |
| 1598 | + // if (commonUtils.isNotEmptyArr(machinedataData)) { | |
| 1599 | + // const { | |
| 1600 | + // sProductId, | |
| 1601 | + // sProductNo, | |
| 1602 | + // sSearchProductId = sProductId, | |
| 1603 | + // sSearchProductNo = sProductNo | |
| 1604 | + // } = machinedataData[0]; | |
| 1605 | + // nextProps.onSaveState( | |
| 1606 | + // { | |
| 1607 | + // workOrderInfoData: machinedataData, | |
| 1608 | + // sSearchProductId: sSearchProductId | |
| 1609 | + // }, | |
| 1610 | + // nextPropsNew => { | |
| 1611 | + // props.onSearchProductNameChange( | |
| 1612 | + // "", | |
| 1613 | + // "", | |
| 1614 | + // { | |
| 1615 | + // sSearchProductId, | |
| 1616 | + // sSearchProductNo | |
| 1617 | + // }, | |
| 1618 | + // true | |
| 1619 | + // ); | |
| 1620 | + // } | |
| 1621 | + // ); | |
| 1622 | + // } | |
| 1623 | + // } | |
| 1624 | + // } | |
| 1625 | + }); | |
| 1626 | + } finally { | |
| 1627 | + console.log('finily-上料执行界面刷新:'); | |
| 1628 | + props.onRefresh && props.onRefresh(); | |
| 1629 | + } | |
| 1625 | 1630 | }; |
| 1626 | 1631 | |
| 1627 | 1632 | // 判断是否扫码枪输入 | ... | ... |