From a514f1d621c8ff4e2c54feb855e78ebae7243af7 Mon Sep 17 00:00:00 2001 From: chenxt <10125295+chen-xintao97@user.noreply.gitee.com> Date: Wed, 4 Feb 2026 16:41:22 +0800 Subject: [PATCH] 扫码上料 --- src/mes/common/commonOperationBarComponent/index.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/mes/common/commonOperationBarComponent/index.js b/src/mes/common/commonOperationBarComponent/index.js index 4230acf..e440d36 100644 --- a/src/mes/common/commonOperationBarComponent/index.js +++ b/src/mes/common/commonOperationBarComponent/index.js @@ -1336,6 +1336,7 @@ const CommonOperationBarComponent = basProps => { document.body.removeEventListener("keypress", keypressEvent); }; }, []); + return (
@@ -1505,11 +1506,21 @@ const BarcodeComponent = props => { props.onExecInstructSet({ btnConfig, nextProps: { scanCodeData: [{ value: valueNew }] }, - callback: () => { + // callback: () => { + // if (commonUtils.isNotEmptyArr(searchProductConfig)) { + // props.onSaveState({ + // refreshMachineDataFlag: new Date().getTime(), + // productionTableList: [sName] + // }); + // } + // }, + inscallback: nextProps => { if (commonUtils.isNotEmptyArr(searchProductConfig)) { props.onSaveState({ refreshMachineDataFlag: new Date().getTime(), productionTableList: [sName] + }, ()=>{ + props.onRefresh && props.onRefresh(); }); } } -- libgit2 0.22.2