Commit 2460b90e99c43f4de3d7eedc5b4196dc96800b21
1 parent
324b4b38
1.修改确认取消多语言翻译
Showing
7 changed files
with
23 additions
and
15 deletions
src/components/Common/CommonBillEvent.js
| ... | ... | @@ -2116,6 +2116,7 @@ export default (ChildComponent) => { |
| 2116 | 2116 | const { |
| 2117 | 2117 | sModelsId, masterData, app, masterConfig, slaveConfig, checkConfig, token, sModelsType, controlConfig, materialsConfig, processConfig, colorConfig, packConfig, slaveData, orderDetailConfig, |
| 2118 | 2118 | } = this.props; |
| 2119 | + const FriendlyReminder = commonFunc.showLocalMessage(this.props, 'FriendlyReminder', '温馨提示'); | |
| 2119 | 2120 | const sSlaveIdArray = []; |
| 2120 | 2121 | if (commonUtils.isNotEmptyArr(slaveData)) { |
| 2121 | 2122 | slaveData.forEach((item) => { |
| ... | ... | @@ -2240,13 +2241,12 @@ export default (ChildComponent) => { |
| 2240 | 2241 | } |
| 2241 | 2242 | } else if(returnData.code === -8){ |
| 2242 | 2243 | Modal.info({ |
| 2243 | - title: '温馨提示:', | |
| 2244 | + title: FriendlyReminder, | |
| 2244 | 2245 | content: ( |
| 2245 | 2246 | <div> |
| 2246 | 2247 | {this.handleGetMsg(returnData.msg)} |
| 2247 | 2248 | </div> |
| 2248 | 2249 | ), |
| 2249 | - okText: '确认', | |
| 2250 | 2250 | onOk() {}, |
| 2251 | 2251 | }); |
| 2252 | 2252 | this.props.onSaveState({ |
| ... | ... | @@ -6071,6 +6071,9 @@ export default (ChildComponent) => { |
| 6071 | 6071 | |
| 6072 | 6072 | /** 按钮操作事件 */ |
| 6073 | 6073 | handleButtonClick = async (name) => { |
| 6074 | + | |
| 6075 | + const FriendlyReminder = commonFunc.showLocalMessage(this.props, 'FriendlyReminder', '温馨提示'); | |
| 6076 | + | |
| 6074 | 6077 | if (name === 'BtnOut') { |
| 6075 | 6078 | this.handleOut(); |
| 6076 | 6079 | } else if (name === 'BtnDesignFunction') { |
| ... | ... | @@ -6329,13 +6332,12 @@ export default (ChildComponent) => { |
| 6329 | 6332 | this.props.onSaveState({ ...allReturnMap, pageLoading:false, }); |
| 6330 | 6333 | }else if (dataReturn.code === -8 || dataReturn.code === 2) { |
| 6331 | 6334 | Modal.info({ |
| 6332 | - title: '温馨提示:', | |
| 6335 | + title: FriendlyReminder, | |
| 6333 | 6336 | content: ( |
| 6334 | 6337 | <div> |
| 6335 | 6338 | {this.handleGetMsg(dataReturn.msg)} |
| 6336 | 6339 | </div> |
| 6337 | 6340 | ), |
| 6338 | - okText: '确认', | |
| 6339 | 6341 | onOk() {}, |
| 6340 | 6342 | }); |
| 6341 | 6343 | this.props.onSaveState({ ...allReturnMap, pageLoading:false, }); | ... | ... |
src/components/Common/CommonListSelect/index.js
| ... | ... | @@ -854,6 +854,9 @@ const CommonListComponent = Form.create({ |
| 854 | 854 | }, |
| 855 | 855 | }; |
| 856 | 856 | const upInvoiceName = commonUtils.isNotEmptyArr(btnUploadApi) ? btnUploadApi[0].showName : '发票上传(金税)'; |
| 857 | + | |
| 858 | + const BtnSure = commonFunc.showLocalMessage(this.props, 'BtnSure', '确定'); | |
| 859 | + const BtnCancel = commonFunc.showLocalMessage(this.props, 'BtnCancel', '取消'); | |
| 857 | 860 | |
| 858 | 861 | return ( |
| 859 | 862 | <Form > |
| ... | ... | @@ -953,8 +956,8 @@ const CommonListComponent = Form.create({ |
| 953 | 956 | </Button> |
| 954 | 957 | )) : |
| 955 | 958 | <div> |
| 956 | - <Button key="back" style={{ marginRight: '8px' }} onClick={props.onCancel}>取消</Button> | |
| 957 | - <Button type="primary" onClick={props.onSelect}>确认</Button> | |
| 959 | + <Button key="back" style={{ marginRight: '8px' }} onClick={props.onCancel}>{BtnCancel}</Button> | |
| 960 | + <Button type="primary" onClick={props.onSelect}>{BtnSure}</Button> | |
| 958 | 961 | </div> |
| 959 | 962 | } |
| 960 | 963 | ... | ... |
src/components/Common/CommonListSelectFlex/index.js
| ... | ... | @@ -500,6 +500,9 @@ const CommonListComponent = Form.create({ |
| 500 | 500 | const tableBelone = commonUtils.isNotEmptyObject(app.currentPane) && commonUtils.isNotEmptyObject(app.currentPane.name) && app.currentPane.bEdit ? 'none' : 'list'; |
| 501 | 501 | const sProcessParams = commonFunc.showMessage(app.commonConst, 'sProcessParams');/* 选择工艺参数标题 */ |
| 502 | 502 | const displayLeft = (sModelsType !== 'search/sisColor' && sModelsType !== 'search/commonPopup'); |
| 503 | + | |
| 504 | + const BtnSure = commonFunc.showLocalMessage(this.props, 'BtnSure', '确定'); | |
| 505 | + const BtnCancel = commonFunc.showLocalMessage(this.props, 'BtnCancel', '取消'); | |
| 503 | 506 | return ( |
| 504 | 507 | <div className="modalChooseProcessContent"> |
| 505 | 508 | <Form > |
| ... | ... | @@ -533,8 +536,8 @@ const CommonListComponent = Form.create({ |
| 533 | 536 | </div> |
| 534 | 537 | </Layout> |
| 535 | 538 | <div style={{ textAlign: 'right', marginRight: '9px', marginBottom: '9px' }}> |
| 536 | - <Button key="back" style={{ marginRight: '8px' }} onClick={props.onCancel}>取消</Button> | |
| 537 | - <Button type="primary" onClick={props.onSelect}>确认</Button> | |
| 539 | + <Button key="back" style={{ marginRight: '8px' }} onClick={props.onCancel}>{BtnCancel}</Button> | |
| 540 | + <Button type="primary" onClick={props.onSelect}>{BtnSure}</Button> | |
| 538 | 541 | </div> |
| 539 | 542 | </Layout> |
| 540 | 543 | { | ... | ... |
src/components/Common/CommonNewBillEvent.js
| ... | ... | @@ -4167,6 +4167,7 @@ export default (ChildComponent) => { |
| 4167 | 4167 | }; |
| 4168 | 4168 | /** 按钮操作事件 */ |
| 4169 | 4169 | handleButtonClick = async (name, bBtncalcComfim) => { |
| 4170 | + const FriendlyReminder = commonFunc.showLocalMessage(this.props, 'FriendlyReminder', '温馨提示'); | |
| 4170 | 4171 | if (name === 'BtnOut') { |
| 4171 | 4172 | this.handleOut(); |
| 4172 | 4173 | } else if (name === 'BtnDesignFunction') { |
| ... | ... | @@ -4426,14 +4427,12 @@ export default (ChildComponent) => { |
| 4426 | 4427 | } else if (dataReturn.code === -7) { |
| 4427 | 4428 | const _this = this; |
| 4428 | 4429 | Modal.confirm({ |
| 4429 | - title: "温馨提示:", | |
| 4430 | + title: FriendlyReminder, | |
| 4430 | 4431 | content: ( |
| 4431 | 4432 | <div> |
| 4432 | 4433 | {this.handleGetMsg(dataReturn.msg)} |
| 4433 | 4434 | </div> |
| 4434 | 4435 | ), |
| 4435 | - okText: "确认", | |
| 4436 | - cancelText: "取消", | |
| 4437 | 4436 | onOk() { |
| 4438 | 4437 | _this.handleButtonClick(name, true); |
| 4439 | 4438 | }, | ... | ... |
src/components/Common/CommonSubBillEvent.js
| ... | ... | @@ -1912,6 +1912,8 @@ export default (ChildComponent) => { |
| 1912 | 1912 | sModelsId, masterData, app, masterConfig, slaveConfig, checkConfig, token, sModelsType, controlConfig, materialsConfig, processConfig, colorConfig, packConfig, slaveData, |
| 1913 | 1913 | orderDetailConfig, slaveChildConfig, formRoute, slave0Config, |
| 1914 | 1914 | } = this.props; |
| 1915 | + const FriendlyReminder = commonFunc.showLocalMessage(this.props, 'FriendlyReminder', '温馨提示'); | |
| 1916 | + | |
| 1915 | 1917 | const sSlaveIdArray = []; |
| 1916 | 1918 | if (commonUtils.isNotEmptyArr(slaveData)) { |
| 1917 | 1919 | slaveData.forEach((item) => { |
| ... | ... | @@ -2041,13 +2043,12 @@ export default (ChildComponent) => { |
| 2041 | 2043 | } |
| 2042 | 2044 | }else if(returnData.code === -8){ |
| 2043 | 2045 | Modal.info({ |
| 2044 | - title: '温馨提示:', | |
| 2046 | + title: FriendlyReminder, | |
| 2045 | 2047 | content: ( |
| 2046 | 2048 | <div> |
| 2047 | 2049 | {this.handleGetMsg(returnData.msg)} |
| 2048 | 2050 | </div> |
| 2049 | 2051 | ), |
| 2050 | - okText: '确认', | |
| 2051 | 2052 | onOk() {}, |
| 2052 | 2053 | }); |
| 2053 | 2054 | this.props.onSaveState({ | ... | ... |
src/components/Manufacture/WorkOrderPack/WorkOrderPackTableTree.js
| ... | ... | @@ -8768,6 +8768,7 @@ const WorkOrderComponent = Form.create({ |
| 8768 | 8768 | } |
| 8769 | 8769 | } |
| 8770 | 8770 | const autoHeight = `calc( 100vh - 92px )`; |
| 8771 | + const chooseCombinePartsName = commonFunc.showLocalMessage(props, 'chooseCombinePartsName', '选择合版部件名称'); | |
| 8771 | 8772 | |
| 8772 | 8773 | return ( |
| 8773 | 8774 | <Form> |
| ... | ... | @@ -9104,7 +9105,7 @@ const WorkOrderComponent = Form.create({ |
| 9104 | 9105 | combinePartsChooseVisible ? |
| 9105 | 9106 | <AntdDraggableModal |
| 9106 | 9107 | width={1150} |
| 9107 | - title="选择合版部件名称" | |
| 9108 | + title={chooseCombinePartsName} | |
| 9108 | 9109 | visible={combinePartsChooseVisible === undefined ? false : combinePartsChooseVisible} |
| 9109 | 9110 | onCancel={props.onCancelModal.bind(this, 'combinePartsChooseVisible')} |
| 9110 | 9111 | // onOk={props.onSelectCombinePartsChoose} | ... | ... |