From 2460b90e99c43f4de3d7eedc5b4196dc96800b21 Mon Sep 17 00:00:00 2001
From: pengm <674192343@qq.com>
Date: Thu, 19 Jun 2025 13:33:59 +0800
Subject: [PATCH] 1.修改确认取消多语言翻译
---
src/components/Common/CommonBillEvent.js | 10 ++++++----
src/components/Common/CommonListSelect/index.js | 7 +++++--
src/components/Common/CommonListSelectFlex/index.js | 7 +++++--
src/components/Common/CommonNewBillEvent.js | 5 ++---
src/components/Common/CommonSubBillEvent.js | 5 +++--
src/components/Manufacture/WorkOrderPack/WorkOrderPackTableTree.js | 3 ++-
src/mobile/common/CommobileToolBar.js | 1 -
7 files changed, 23 insertions(+), 15 deletions(-)
diff --git a/src/components/Common/CommonBillEvent.js b/src/components/Common/CommonBillEvent.js
index 35fcdd6..e9b9ce6 100644
--- a/src/components/Common/CommonBillEvent.js
+++ b/src/components/Common/CommonBillEvent.js
@@ -2116,6 +2116,7 @@ export default (ChildComponent) => {
const {
sModelsId, masterData, app, masterConfig, slaveConfig, checkConfig, token, sModelsType, controlConfig, materialsConfig, processConfig, colorConfig, packConfig, slaveData, orderDetailConfig,
} = this.props;
+ const FriendlyReminder = commonFunc.showLocalMessage(this.props, 'FriendlyReminder', '温馨提示');
const sSlaveIdArray = [];
if (commonUtils.isNotEmptyArr(slaveData)) {
slaveData.forEach((item) => {
@@ -2240,13 +2241,12 @@ export default (ChildComponent) => {
}
} else if(returnData.code === -8){
Modal.info({
- title: '温馨提示:',
+ title: FriendlyReminder,
content: (
{this.handleGetMsg(returnData.msg)}
),
- okText: '确认',
onOk() {},
});
this.props.onSaveState({
@@ -6071,6 +6071,9 @@ export default (ChildComponent) => {
/** 按钮操作事件 */
handleButtonClick = async (name) => {
+
+ const FriendlyReminder = commonFunc.showLocalMessage(this.props, 'FriendlyReminder', '温馨提示');
+
if (name === 'BtnOut') {
this.handleOut();
} else if (name === 'BtnDesignFunction') {
@@ -6329,13 +6332,12 @@ export default (ChildComponent) => {
this.props.onSaveState({ ...allReturnMap, pageLoading:false, });
}else if (dataReturn.code === -8 || dataReturn.code === 2) {
Modal.info({
- title: '温馨提示:',
+ title: FriendlyReminder,
content: (
{this.handleGetMsg(dataReturn.msg)}
),
- okText: '确认',
onOk() {},
});
this.props.onSaveState({ ...allReturnMap, pageLoading:false, });
diff --git a/src/components/Common/CommonListSelect/index.js b/src/components/Common/CommonListSelect/index.js
index 57dad09..79ec03f 100644
--- a/src/components/Common/CommonListSelect/index.js
+++ b/src/components/Common/CommonListSelect/index.js
@@ -854,6 +854,9 @@ const CommonListComponent = Form.create({
},
};
const upInvoiceName = commonUtils.isNotEmptyArr(btnUploadApi) ? btnUploadApi[0].showName : '发票上传(金税)';
+
+ const BtnSure = commonFunc.showLocalMessage(this.props, 'BtnSure', '确定');
+ const BtnCancel = commonFunc.showLocalMessage(this.props, 'BtnCancel', '取消');
return (