From 59f470d82a6a6bff3bad915ed1816a5ea83e490f Mon Sep 17 00:00:00 2001 From: pengm <674192343@qq.com> Date: Fri, 20 Jun 2025 11:52:28 +0800 Subject: [PATCH] 1.处理上查,下查 2.完善翻译 --- src/components/Common/CommonBillEvent.js | 5 +++-- src/components/Common/CommonComponent/index.js | 4 +++- src/components/Common/CommonCostomTabBill.js | 8 +++++--- src/components/Common/CommonListSelectFlex/index.js | 4 ++-- src/components/Common/CommonListSelectMulti/index.js | 623 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ src/components/Common/CommonNewBillEvent.js | 4 ++-- src/components/Common/CommonSubBillEvent.js | 4 ++-- src/components/Common/ToolBar/ToolBarNew.js | 6 ++++-- src/components/CommonElementEvent/SftLoginInfo.js | 3 ++- src/components/Manufacture/WorkOrderPackTableTreeNew/index.js | 21 ++++++++++++++------- src/utils/config.js | 4 ++-- 11 files changed, 386 insertions(+), 300 deletions(-) diff --git a/src/components/Common/CommonBillEvent.js b/src/components/Common/CommonBillEvent.js index 3fc2fd8..e4d6bdb 100644 --- a/src/components/Common/CommonBillEvent.js +++ b/src/components/Common/CommonBillEvent.js @@ -2829,7 +2829,8 @@ export default (ChildComponent) => { /* 上一条、下一条、首条、末条 */ handleSearchData = async (handleType) => { const { - sModelsId, app, currentIndexFlag, currentPageNo, masterData, masterConfig, slaveConfig, checkConfig + sModelsId, app, currentIndexFlag, currentPageNo, masterData, masterConfig, slaveConfig, checkConfig, + sSrcModelsId, } = this.props; let { sBillIdsArray = []} = this.props; let { currentId } = this.props; @@ -2888,7 +2889,7 @@ export default (ChildComponent) => { if(!bExist) { const value = { sClientType: '1', sFilterOrderBy, bFilter, sListFormmasterId, currentPosition, handleType, iCountSum: pages.total, - sUpId: masterData?.sId, + sUpId: masterData?.sId, sParentModelId :sSrcModelsId, }; const url = `${commonConfig.server_host}business/getBusinessDataByIndex?sModelsId=${sModelsId}`; /* 接收返回值 */ diff --git a/src/components/Common/CommonComponent/index.js b/src/components/Common/CommonComponent/index.js index 356ca1b..c270fe7 100644 --- a/src/components/Common/CommonComponent/index.js +++ b/src/components/Common/CommonComponent/index.js @@ -2758,15 +2758,17 @@ export default class CommonComponent extends Component { */ floatNumberCheck = (num) => { const dNetPrice = this.props.app?.decimals?.dNetPrice; + const Maximum = commonFunc.showLocalMessage(this.props, 'Maximum', '最多输入${digit}位小数'); const { showConfig } = this.props; const { sName, showName } = showConfig; const digit = sName.includes('Price') && dNetPrice ? dNetPrice : 6; + const Maximun = Maximum.replace('${digit}', digit); if (typeof num === 'string') { num = num.replace('*', ''); } const checkRule = new RegExp(`^(-?\\d+)(\\.?)(\\d{1,${digit}})?$`); if (!checkRule.test(num) && num && num !== '-' && num !== '.') { - message.warning(`【${showName}】【${sName}】最多输入${digit}位小数!`); + message.warning(`【${showName}】【${sName}】${Maximun}`); return undefined; } else { return num; diff --git a/src/components/Common/CommonCostomTabBill.js b/src/components/Common/CommonCostomTabBill.js index 57db879..4ff6c97 100644 --- a/src/components/Common/CommonCostomTabBill.js +++ b/src/components/Common/CommonCostomTabBill.js @@ -2371,6 +2371,8 @@ class CommonNewBill extends Component { slave6Child1Config, slave6Child1InfoConfig, } = this.props; + const confirmSetting = commonFunc.showLocalMessage(this.props, 'confirmSetting', '请配置按钮的存储过程'); + const confirmSettingParam = commonFunc.showLocalMessage(this.props, 'confirmSettingParam', '请先操作参数运算'); const iIndex = commonUtils.isNotEmptyObject(tableSelectedRowKeys) && commonUtils.isNotEmptyArr(tableData) @@ -2388,7 +2390,7 @@ class CommonNewBill extends Component { showConfig.sControlName.includes("BtnCustom.dSplitworkQty") ) { if (masterData.bFirstCalc !== 1) { - message.error("请先操作参数运算!"); + message.error(confirmSettingParam); return; } this.props.onSaveState({ pageLoading: true }); @@ -2435,7 +2437,7 @@ class CommonNewBill extends Component { }); } } else { - message.error("请正确配置存储过程名称!"); + message.error(confirmSetting); } } else if ( commonUtils.isNotEmptyObject(showConfig) && @@ -2523,7 +2525,7 @@ class CommonNewBill extends Component { }); } } else { - message.error("请正确配置存储过程名称!"); + message.error(confirmSetting); } } }; diff --git a/src/components/Common/CommonListSelectFlex/index.js b/src/components/Common/CommonListSelectFlex/index.js index 1d544ab..3c37748 100644 --- a/src/components/Common/CommonListSelectFlex/index.js +++ b/src/components/Common/CommonListSelectFlex/index.js @@ -501,8 +501,8 @@ const CommonListComponent = Form.create({ const sProcessParams = commonFunc.showMessage(app.commonConst, 'sProcessParams');/* 选择工艺参数标题 */ const displayLeft = (sModelsType !== 'search/sisColor' && sModelsType !== 'search/commonPopup'); - const BtnSure = commonFunc.showLocalMessage(this.props, 'BtnSure', '确定'); - const BtnCancel = commonFunc.showLocalMessage(this.props, 'BtnCancel', '取消'); + const BtnSure = commonFunc.showLocalMessage(props, 'BtnSure', '确定'); + const BtnCancel = commonFunc.showLocalMessage(props, 'BtnCancel', '取消'); return (