Commit 56d3c42f224262d25dae0a59414cc85a564ad1d6
1 parent
16fa8c44
1.文版生产工单单据合版信息翻译
Showing
2 changed files
with
28 additions
and
7 deletions
src/components/Common/CommonComponent/index.js
| ... | ... | @@ -3501,6 +3501,10 @@ export default class CommonComponent extends Component { |
| 3501 | 3501 | commonUtils.isNotEmptyObject(this.props) && commonUtils.isNotEmptyObject(this.props.app) |
| 3502 | 3502 | ? commonFunc.showMessage(this.props.app.commonConst, "CombinedInfo") |
| 3503 | 3503 | : "合版信息"; |
| 3504 | + const arrange = commonFunc.showLocalMessage(this.props, 'arrange', '排'); | |
| 3505 | + const bEnglish = this.props?.app?.userinfo?.sLanguage !== 'sChinese'; | |
| 3506 | + const an = commonFunc.showLocalMessage(this.props, 'an', ''); | |
| 3507 | + | |
| 3504 | 3508 | let bParamColor = false; |
| 3505 | 3509 | if (this.props && sName === "sParamValue" && this.props.dataValue) { |
| 3506 | 3510 | if (this.props.dataValue === "选择色序" || this.props.record.sParamKey === "sParam1001") { |
| ... | ... | @@ -3532,10 +3536,14 @@ export default class CommonComponent extends Component { |
| 3532 | 3536 | } |
| 3533 | 3537 | } |
| 3534 | 3538 | if (commonUtils.isNotEmptyArr(JsonData)) { |
| 3535 | - JsonData.forEach(item => { | |
| 3536 | - sValue += `${item.sProductNo}:排${item.dCombineQty}个,`; | |
| 3539 | + JsonData.forEach((item) => { | |
| 3540 | + if (bEnglish) { | |
| 3541 | + sValue += `${item.sProductNo}:${item.dCombineQty}${arrange},`; | |
| 3542 | + } else { | |
| 3543 | + sValue += `${item.sProductNo}:${arrange}${item.dCombineQty}${an},`; | |
| 3544 | + } | |
| 3537 | 3545 | }); |
| 3538 | - sValue = commonUtils.isNotEmptyObject(sValue) ? sValue.substr(0, sValue.length - 1) : ""; | |
| 3546 | + sValue = commonUtils.isNotEmptyObject(sValue) ? sValue.substr(0, sValue.length - 1) : ''; | |
| 3539 | 3547 | } |
| 3540 | 3548 | } else if (sName === "sColorSerialMemo" || bSColorSerialMemo || sName === "sPositiveColor" || sName === "sOppositeColor" || bParamColor) { |
| 3541 | 3549 | let JsonData = []; | ... | ... |
src/components/Common/CommonTable/index.js
| ... | ... | @@ -5914,9 +5914,18 @@ class CommonTableRc extends React.Component { |
| 5914 | 5914 | let clickEvent = ''; |
| 5915 | 5915 | /* 选择合版产品弹窗 */ |
| 5916 | 5916 | const sModelsType = commonUtils.isNotEmptyObject(props) && commonUtils.isNotEmptyObject(props.app) ? props.app.currentPane.sModelsType : ''; |
| 5917 | - const combinedInfo = commonUtils.isNotEmptyObject(props) && commonUtils.isNotEmptyObject(props.app) ? commonFunc.showMessage(props.app.commonConst, 'CombinedInfo') : '合版信息'; | |
| 5918 | - | |
| 5919 | - const pleaseSelect = commonUtils.isNotEmptyObject(props) && commonUtils.isNotEmptyObject(props.app) ? commonFunc.showMessage(this.props.app.commonConst, 'pleaseSelect') : '请选择'; | |
| 5917 | + const pleaseSelect = | |
| 5918 | + commonUtils.isNotEmptyObject(this.props) && commonUtils.isNotEmptyObject(this.props.app) | |
| 5919 | + ? commonFunc.showMessage(this.props.app.commonConst, "pleaseSelect") | |
| 5920 | + : "请选择"; | |
| 5921 | + const combinedInfo = | |
| 5922 | + commonUtils.isNotEmptyObject(this.props) && commonUtils.isNotEmptyObject(this.props.app) | |
| 5923 | + ? commonFunc.showMessage(this.props.app.commonConst, "CombinedInfo") | |
| 5924 | + : "合版信息"; | |
| 5925 | + | |
| 5926 | + const arrange = commonFunc.showLocalMessage(props, 'arrange', '排'); | |
| 5927 | + const an = commonFunc.showLocalMessage(props, 'an', ''); | |
| 5928 | + const bEnglish = props.app.userinfo?.sLanguage !== 'sChinese'; | |
| 5920 | 5929 | |
| 5921 | 5930 | if (commonUtils.isNotEmptyObject(sName) && (sName === 'sCombinedMemo' || sName === 'sCombineProductNameNew' || sName === 'sColorSerialMemo' || sName === 'sPositiveColor' || sName === 'sOppositeColor' || sName === 'sParams' || sName === 'sParamsNew' || sName === 'sQuoParams' || (commonUtils.isNotEmptyObject(sModelsType) && !sModelsType.includes('Set') && sName === 'sCombinePartsNameNew'))) { |
| 5922 | 5931 | linkStyle = 'linksActiveIdStyle'; |
| ... | ... | @@ -5934,7 +5943,11 @@ class CommonTableRc extends React.Component { |
| 5934 | 5943 | let sCombinedMemo = ''; |
| 5935 | 5944 | if (commonUtils.isNotEmptyArr(JsonData)) { |
| 5936 | 5945 | JsonData.forEach((item) => { |
| 5937 | - sCombinedMemo += `${item.sProductNo}:排${item.dCombineQty}个,`; | |
| 5946 | + if (bEnglish) { | |
| 5947 | + sCombinedMemo += `${item.sProductNo}:${item.dCombineQty}${arrange},`; | |
| 5948 | + }else { | |
| 5949 | + sCombinedMemo += `${item.sProductNo}:${arrange}${item.dCombineQty}${an},`; | |
| 5950 | + } | |
| 5938 | 5951 | }); |
| 5939 | 5952 | sCombinedMemo = commonUtils.isNotEmptyObject(sCombinedMemo) ? sCombinedMemo.substr(0, sCombinedMemo.length - 1) : ''; |
| 5940 | 5953 | sValue = sCombinedMemo; | ... | ... |