From a30c3563222d70ed5b867bae1a98d73c0c3bfa69 Mon Sep 17 00:00:00 2001 From: pengm <674192343@qq.com> Date: Fri, 5 Sep 2025 12:04:51 +0800 Subject: [PATCH] 1.处理首签样点击模块 ,不出来首签样通知模块的bug --- src/mes/common/buttonComponent/index.js | 2 +- src/mes/productionExec/index.js | 2 +- src/mes/productionExec/noticeModal/index.js | 7 ++++--- src/mes/productionExec/productionExecMain/index.js | 7 ++++--- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/mes/common/buttonComponent/index.js b/src/mes/common/buttonComponent/index.js index 3ba3970..8f6c6c1 100644 --- a/src/mes/common/buttonComponent/index.js +++ b/src/mes/common/buttonComponent/index.js @@ -284,7 +284,7 @@ const ButtonComponent = props => { const { id, disabled, sName } = e; if (id == sModelsId || disabled) return; - if (e.name !== "首签样通知" || e.name !== "First Approval Sample Notice") { + if (e.name !== "首签样通知" && e.name?.trim() !== "First Approval Sample Notice") { props.onChangeRouter({ routerPath: [currentContent], sModelsId: id, diff --git a/src/mes/productionExec/index.js b/src/mes/productionExec/index.js index 7d13b4a..24b6fc7 100644 --- a/src/mes/productionExec/index.js +++ b/src/mes/productionExec/index.js @@ -31,7 +31,7 @@ const ProductionExec = props => { let obj = { ...props, openFirstNotice: ({ id, sName, name }) => { - if (name == "首签样通知") { + if (name == "首签样通知" || name?.trim() === 'First Approval Sample Notice') { setModal(true); } }, diff --git a/src/mes/productionExec/noticeModal/index.js b/src/mes/productionExec/noticeModal/index.js index 62769ef..8d1734f 100644 --- a/src/mes/productionExec/noticeModal/index.js +++ b/src/mes/productionExec/noticeModal/index.js @@ -266,10 +266,11 @@ const firstNoticeModal = _props => { viewRow, tableName: viewName }; - + const firstNotice = commonFunc.showLocalMessage(props, 'firstNotice', '首签样通知'); + const firstNoticeList = commonFunc.showLocalMessage(props, 'firstNoticeList', '版材消耗登记'); return ( {
-

首签样通知列表

+

{firstNoticeList}

diff --git a/src/mes/productionExec/productionExecMain/index.js b/src/mes/productionExec/productionExecMain/index.js index 60b3624..5c0c693 100644 --- a/src/mes/productionExec/productionExecMain/index.js +++ b/src/mes/productionExec/productionExecMain/index.js @@ -1332,7 +1332,8 @@ const ProductionExecContent1 = props => { if (!oNavList) return; oNavList.childNodes[index].click(); }; - + const MCR = commonFunc.showLocalMessage(props, 'MCR', '物料消耗登记'); + const PMCR = commonFunc.showLocalMessage(props, 'PMCR', '版材消耗登记'); return (
@@ -1393,14 +1394,14 @@ const ProductionExecContent1 = props => { size="large" onClick={changeTab.bind(this, 0)} > - 物料消耗登记 + {MCR}
-- libgit2 0.22.2