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