From d170b9973bd216c1cd5c49ec32086e0fd7bac092 Mon Sep 17 00:00:00 2001
From: pengm <674192343@qq.com>
Date: Fri, 29 Aug 2025 13:23:43 +0800
Subject: [PATCH] 1.处理MES生产执行英文版界面展示
---
src/components/Common/CommonHooks/useCommonBase.js | 10 ++++++----
src/components/Common/CommonTable/index.js | 15 ++++++++++-----
src/mes/common/buttonComponent/index.js | 50 ++++++++++++++++++++++++++++++++------------------
src/mes/common/commonOperationBarComponent/index.js | 4 ++--
src/mes/common/inputMultiModalComponent/index.js | 6 ++++--
src/mes/login/index.js | 3 +++
src/mes/operationGuide/index.less | 6 +++---
src/mes/productionExec/productionExecMain/index.js | 50 ++++++++++++++++++++++++++++++++------------------
src/mes/scheduledTasks/machineTasks/index.js | 2 +-
src/mes/teamInfo/index.js | 4 ++--
10 files changed, 95 insertions(+), 55 deletions(-)
diff --git a/src/components/Common/CommonHooks/useCommonBase.js b/src/components/Common/CommonHooks/useCommonBase.js
index 248a827..569d8cf 100644
--- a/src/components/Common/CommonHooks/useCommonBase.js
+++ b/src/components/Common/CommonHooks/useCommonBase.js
@@ -1950,7 +1950,9 @@ const useCommonBase = props => {
} = params;
const currentState = nextProps || state;
-
+ const FriendlyReminder = commonFunc.showLocalMessage(props, 'FriendlyReminder', '温馨提示');
+ const BtnSure = commonFunc.showLocalMessage(props, 'BtnSure', '确认');
+ const BtnCancel = commonFunc.showLocalMessage(props, 'BtnCancel', '确认');
// 加入mes通用参数
const { app } = props;
const { tableNameCompareJson = {} } = currentState;
@@ -2129,10 +2131,10 @@ const useCommonBase = props => {
onSuccess && onSuccess(true);
} else if (code === -7) {
Modal.confirm({
- title: "温馨提示:",
+ title: FriendlyReminder,
content:
{
if (value && scanEventTime.current === -1) {
diff --git a/src/mes/common/inputMultiModalComponent/index.js b/src/mes/common/inputMultiModalComponent/index.js
index d79b771..5e8ed3e 100644
--- a/src/mes/common/inputMultiModalComponent/index.js
+++ b/src/mes/common/inputMultiModalComponent/index.js
@@ -13,12 +13,14 @@ const InputMultiModalComponent = props => {
sId: commonUtils.createSid(),
sMemo: value.replace(/;/g, ",")
});
+ const dpSelect = commonFunc.showLocalMessage(props, 'dpSelect', '下拉选择');
+ const content = commonFunc.showLocalMessage(props, 'content', '内容');
const viewConfigs = [
{
sId: showConfig.sId + "1",
sName: "sMemo",
- showName: "内容",
+ showName: content,
sControlName: "",
iRowValue: 6,
iColValue: 24
@@ -26,7 +28,7 @@ const InputMultiModalComponent = props => {
{
...showConfig,
sName: "sSelect",
- showName: "下拉选择",
+ showName: dpSelect,
bCanInput: true,
iColValue: 24
}
diff --git a/src/mes/login/index.js b/src/mes/login/index.js
index 7a86485..6c0e79b 100644
--- a/src/mes/login/index.js
+++ b/src/mes/login/index.js
@@ -261,6 +261,9 @@ const useLoginEvent = props => {
bDelayedOvertime
} = dataReturn.dataset.rows[0];
+
+ console.log('vvvv', managementData);
+
gdslogininfo.bDelayedOvertime = bDelayedOvertime;
const userinfo = { ...teamInfo, ...gdslogininfo };
const {
diff --git a/src/mes/operationGuide/index.less b/src/mes/operationGuide/index.less
index 4784fea..d4d9c08 100644
--- a/src/mes/operationGuide/index.less
+++ b/src/mes/operationGuide/index.less
@@ -55,7 +55,7 @@
}
.cellBox {
- height: 40px;
+ height: 52px;
}
.colExpire {
@@ -75,7 +75,7 @@
text-align: center;
// color: #fff;
font-size: 16px;
- line-height: 1.4;
+ line-height: 1;
}
&.front .hasShow {
@@ -245,4 +245,4 @@
}
}
}
-}
\ No newline at end of file
+}
diff --git a/src/mes/productionExec/productionExecMain/index.js b/src/mes/productionExec/productionExecMain/index.js
index bd5c893..60b3624 100644
--- a/src/mes/productionExec/productionExecMain/index.js
+++ b/src/mes/productionExec/productionExecMain/index.js
@@ -536,7 +536,8 @@ const ProductionExecContentByType = props => {
setPagesLoading,
refreshCount = 0
} = props;
-
+ const PRrevisionEnd = commonFunc.showLocalMessage(props, 'Proofreading/revisionEnd', '装校版结束');
+ const PRrevisionStart = commonFunc.showLocalMessage(props, 'Proofreading/revisionStart', '装校版开始');
/**
* 设备状态值
*/
@@ -556,7 +557,7 @@ const ProductionExecContentByType = props => {
const showValue = {
stop: {
- showName: "装校版结束",
+ showName: PRrevisionEnd,
onClick: config =>
operationFetch(props, config, undefined, () => {
props.onSaveState({
@@ -566,7 +567,7 @@ const ProductionExecContentByType = props => {
})
},
again: {
- showName: "装校版开始",
+ showName: PRrevisionStart,
onClick: config =>
operationFetch(props, config, "again", () => {
props.onSaveState({
@@ -758,7 +759,13 @@ const ProductionExecContent = props => {
if (!oNavList) return;
oNavList.childNodes[index].click();
};
-
+ const MCR = commonFunc.showLocalMessage(props, 'MCR', '物料消耗登记');
+ const PMCR = commonFunc.showLocalMessage(props, 'PMCR', '版材消耗登记');
+ const Blanking = commonFunc.showLocalMessage(props, 'finishConstruction', '下料');
+ const product1 = commonFunc.showLocalMessage(props, 'product1', '产量①');
+ const product2 = commonFunc.showLocalMessage(props, 'product2', '产品②');
+ const revoke = commonFunc.showLocalMessage(props, 'revoke', '撤销');
+ const abnormal3 = commonFunc.showLocalMessage(props, 'abnormal3', '异常③');
return (
@@ -775,7 +782,7 @@ const ProductionExecContent = props => {
{...btnProps}
{...getBtnConfigByControlName("BtnEventBlanking")}
>
- 下料
+ {Blanking}
@@ -783,13 +790,13 @@ const ProductionExecContent = props => {
{...btnProps}
{...getBtnConfigByControlName("BtnPrint1")}
>
- 产量①
+ {product1}
{/* */}
@@ -802,7 +809,7 @@ const ProductionExecContent = props => {
{...btnProps}
{...getBtnConfigByControlName("BtnCancel")}
>
- 撤销
+ {revoke}
@@ -810,7 +817,7 @@ const ProductionExecContent = props => {
{...btnProps}
{...getBtnConfigByControlName("BtnPrint3")}
>
- 异常③
+ {abnormal3}
{/* */}
@@ -862,14 +869,14 @@ const ProductionExecContent = props => {
size="large"
onClick={changeTab.bind(this, 0)}
>
- 物料消耗登记
+ {MCR}
@@ -1014,6 +1021,13 @@ const ProductionExecContent0 = props => {
},
noGetData: !selectedRowKeys.length
};
+ const Blanking = commonFunc.showLocalMessage(props, 'finishConstruction', '下料');
+ const product1 = commonFunc.showLocalMessage(props, 'product1', '产量①');
+ const product2 = commonFunc.showLocalMessage(props, 'product2', '产品②');
+ const Revoke = commonFunc.showLocalMessage(props, 'revoke', ' 撤销');
+ const abnormal3 = commonFunc.showLocalMessage(props, 'abnormal3', '异常③');
+ const MCR = commonFunc.showLocalMessage(props, 'MCR', '物料消耗登记');
+ const PMCR = commonFunc.showLocalMessage(props, 'PMCR', '版材消耗登记');
const tabRef = useRef();
const changeTab = index => {
@@ -1039,7 +1053,7 @@ const ProductionExecContent0 = props => {
{...btnProps}
{...getBtnConfigByControlName("BtnEventBlanking")}
>
- 下料
+ {Blanking}
@@ -1047,13 +1061,13 @@ const ProductionExecContent0 = props => {
{...btnProps}
{...getBtnConfigByControlName("BtnPrint1")}
>
- 产量①
+ {product1}
{/* */}
@@ -1066,7 +1080,7 @@ const ProductionExecContent0 = props => {
{...btnProps}
{...getBtnConfigByControlName("BtnCancel")}
>
- 撤销
+ {Revoke}
@@ -1074,7 +1088,7 @@ const ProductionExecContent0 = props => {
{...btnProps}
{...getBtnConfigByControlName("BtnPrint3")}
>
- 异常③
+ {abnormal3}
{/* */}
@@ -1126,14 +1140,14 @@ const ProductionExecContent0 = props => {
size="large"
onClick={changeTab.bind(this, 0)}
>
- 物料消耗登记
+ {MCR}
diff --git a/src/mes/scheduledTasks/machineTasks/index.js b/src/mes/scheduledTasks/machineTasks/index.js
index 011353a..462c390 100644
--- a/src/mes/scheduledTasks/machineTasks/index.js
+++ b/src/mes/scheduledTasks/machineTasks/index.js
@@ -560,7 +560,7 @@
return [
{ showName, btnBgColor, sDefault, startWorkConfig, pauseWorkConfig },
- { showName: "完工", btnBgColor: "#1890FF", sDefault }
+ { showName: finishConstruction, btnBgColor: "#1890FF", sDefault }
];
// return [
diff --git a/src/mes/teamInfo/index.js b/src/mes/teamInfo/index.js
index 5e8deaf..9338024 100644
--- a/src/mes/teamInfo/index.js
+++ b/src/mes/teamInfo/index.js
@@ -555,8 +555,8 @@ const TeamInfo = baseProps => {
const classGroup = commonFunc.showLocalMessage(props, 'classGroup', '班组');
const foreman = commonFunc.showLocalMessage(props, 'foreman', '领班');
- console.log('2222', teamInformation);
+ const ClearOut = commonFunc.showLocalMessage(props, 'ClearOut', '清空');
return (
@@ -622,7 +622,7 @@ const TeamInfo = baseProps => {
-
+ {/**/}
--
libgit2 0.22.2