Commit ddf7148378c3dec21978d8014f104579f9cd6e94
Merge branch 'main' of http://git.xlyprint.cn/zhangz/xlyUmi into main
Showing
13 changed files
with
42 additions
and
23 deletions
src/components/Common/CommonBill/index.js
| ... | ... | @@ -1708,7 +1708,8 @@ class CommonBill extends Component { |
| 1708 | 1708 | if (Type === 'formSlave') { /* 根据从表勾选数据 生成从表数据 */ |
| 1709 | 1709 | const { slaveSelectedRowKeys } = this.props; |
| 1710 | 1710 | if (commonUtils.isEmptyObject(slaveSelectedRowKeys)) { |
| 1711 | - message.warn('请选择数据'); | |
| 1711 | + message.error(commonFunc.showMessage(this.props.app.commonConst, 'pleaseChooseData'));/* 请选择一条数据 */ | |
| 1712 | + | |
| 1712 | 1713 | return; |
| 1713 | 1714 | } |
| 1714 | 1715 | sId = slaveSelectedRowKeys; | ... | ... |
src/components/Common/CommonListEditEvent.js
| ... | ... | @@ -430,8 +430,10 @@ export default (ChildComponent) => { |
| 430 | 430 | // const masterConfig = formData.filter(item => !item.bGrd && item.sTbName === 'elemachine')[0]; |
| 431 | 431 | // const masterColumn = commonFunc.getHeaderConfig(masterConfig); masterColumn, |
| 432 | 432 | const importConfigTypes = []; |
| 433 | - importConfigTypes.push({ ...commonFunc.getImitateGdsconfigTypes('计算时间', 'tCurrTime', 'tCurrTime', false, '', '', false), sDateFormat: 'YYYY-MM-DD' }); | |
| 434 | - importConfigTypes.push(commonFunc.getImitateGdsconfigTypes('计算', 'BtnCalculation', '', false, '', '', true)); | |
| 433 | + const CalculateTime= commonFunc.showMessage(this.props.app.commonConst, 'CalculateTime') || '计算时间' ; | |
| 434 | + const BtnCalculate= commonFunc.showMessage(this.props.app.commonConst, 'Calculate') || '计算' ; | |
| 435 | + importConfigTypes.push({ ...commonFunc.getImitateGdsconfigTypes(CalculateTime, 'tCurrTime', 'tCurrTime', false, '', '', false), sDateFormat: 'YYYY-MM-DD' }); | |
| 436 | + importConfigTypes.push(commonFunc.getImitateGdsconfigTypes(BtnCalculate, 'BtnCalculation', '', false, '', '', true)); | |
| 435 | 437 | |
| 436 | 438 | const currConfig = {}; |
| 437 | 439 | currConfig.rowGdsconfig = [{ gdsconfigformslave: importConfigTypes }]; | ... | ... |
src/components/Common/CommonListEvent.js
| ... | ... | @@ -313,8 +313,10 @@ export default (ChildComponent) => { |
| 313 | 313 | // const masterConfig = formData.filter(item => !item.bGrd && item.sTbName === 'elemachine')[0]; |
| 314 | 314 | // const masterColumn = commonFunc.getHeaderConfig(masterConfig); masterColumn, |
| 315 | 315 | const importConfigTypes = []; |
| 316 | - importConfigTypes.push({ ...commonFunc.getImitateGdsconfigTypes('计算时间', 'tCurrTime', 'tCurrTime', false, '', '', false), sDateFormat: 'YYYY-MM-DD', bReadonly: true }); | |
| 317 | - importConfigTypes.push(commonFunc.getImitateGdsconfigTypes('计算', 'BtnCalculation', '', false, '', '', true)); | |
| 316 | + const CalculateTime= commonFunc.showMessage(this.props.app.commonConst, 'CalculateTime') || '计算时间' ; | |
| 317 | + const BtnCalculate= commonFunc.showMessage(this.props.app.commonConst, 'Calculate') || '计算' ; | |
| 318 | + importConfigTypes.push({ ...commonFunc.getImitateGdsconfigTypes(CalculateTime, 'tCurrTime', 'tCurrTime', false, '', '', false), sDateFormat: 'YYYY-MM-DD' }); | |
| 319 | + importConfigTypes.push(commonFunc.getImitateGdsconfigTypes(BtnCalculate, 'BtnCalculation', '', false, '', '', true)); | |
| 318 | 320 | |
| 319 | 321 | const currConfig = {}; |
| 320 | 322 | currConfig.rowGdsconfig = [{ gdsconfigformslave: importConfigTypes }]; | ... | ... |
src/components/Common/CommonTable/colorInfo.jsx
| ... | ... | @@ -5,7 +5,7 @@ import styles from "./index.less"; |
| 5 | 5 | export default class ColorInfo extends PureComponent { |
| 6 | 6 | colorContentItem = (item,language) => { |
| 7 | 7 | |
| 8 | - const title = item?.sName; | |
| 8 | + const title =language ==='sEnglish'? item?.sEnglishName : language === 'sBig5'? item?.sBig5Name: item?.sName; | |
| 9 | 9 | const info = Array.isArray(item?.sColor) ? item.sColor.filter(Boolean) : []; |
| 10 | 10 | return ( |
| 11 | 11 | <> | ... | ... |
src/components/Common/CommonTable/index.js
| ... | ... | @@ -4877,17 +4877,20 @@ class CommonTableRc extends React.Component { |
| 4877 | 4877 | }; |
| 4878 | 4878 | handleTreeDel = (index, record) => { |
| 4879 | 4879 | if(this.props.name === 'control') { |
| 4880 | + const sureDel = commonUtils.isNotEmptyObject(this.props.app) ? commonFunc.showMessage(this.props.app.commonConst, 'SureDel') : '确认要删除吗?' ; | |
| 4881 | + const BtnSure = commonUtils.isNotEmptyObject(this.props.app) ? commonFunc.showMessage(this.props.app.commonConst, 'BtnSure') : '确定?' ; | |
| 4882 | + const BtnCancel = commonUtils.isNotEmptyObject(this.props.app) ? commonFunc.showMessage(this.props.app.commonConst, 'BtnCancel') : '确定?' ; | |
| 4880 | 4883 | const _this = this; |
| 4881 | 4884 | confirm({ |
| 4882 | - title: '确认要删除吗?', | |
| 4885 | + title: sureDel, | |
| 4883 | 4886 | onOk() { |
| 4884 | 4887 | _this.handleTreeDelOk(index, record); |
| 4885 | 4888 | }, |
| 4886 | 4889 | onCancel() { |
| 4887 | 4890 | return false; |
| 4888 | 4891 | }, |
| 4889 | - okText: '确定', | |
| 4890 | - cancelText: '取消' | |
| 4892 | + okText: BtnSure, | |
| 4893 | + cancelText: BtnCancel | |
| 4891 | 4894 | }); |
| 4892 | 4895 | } else { |
| 4893 | 4896 | this.handleTreeDelOk(index, record); | ... | ... |
src/components/Common/PersonCenter/MenuSearchPopovor.js
| ... | ... | @@ -6,6 +6,7 @@ import { Modal, message } from 'antd-v4'; |
| 6 | 6 | import { AutoComplete, Input } from "antd-v4"; |
| 7 | 7 | import * as commonUtils from "@/utils/utils"; /* 通用方法 */ |
| 8 | 8 | import config from '@/utils/config'; |
| 9 | +import * as commonFunc from "@/components/Common/commonFunc"; | |
| 9 | 10 | const MenuSearchPopovor = props => { |
| 10 | 11 | |
| 11 | 12 | const { menuPanel, onSetMenuSearchPopoverVisible, onAddPane, app, dispatch, updateMenuPanel } = useMemo( |
| ... | ... | @@ -141,6 +142,8 @@ const MenuSearchPopovor = props => { |
| 141 | 142 | return [...commonlyUsedOption, ...options]; |
| 142 | 143 | }, [menuPanel.panelMenus]); |
| 143 | 144 | |
| 145 | + const searchTitle = commonFunc.showMessage(app.commonConst, 'btnSearch') || '搜索122'; | |
| 146 | + | |
| 144 | 147 | return ( |
| 145 | 148 | <div ref={popovorRef}> |
| 146 | 149 | <AutoComplete |
| ... | ... | @@ -177,7 +180,7 @@ const MenuSearchPopovor = props => { |
| 177 | 180 | onSetMenuSearchPopoverVisible(false); |
| 178 | 181 | }} |
| 179 | 182 | > |
| 180 | - <Input.Search size="large" placeholder="搜索" /> | |
| 183 | + <Input.Search size="large" placeholder={searchTitle} /> | |
| 181 | 184 | </AutoComplete> |
| 182 | 185 | </div> |
| 183 | 186 | ); | ... | ... |
src/components/Common/PersonCenter/PersonCenter.js
| ... | ... | @@ -63,7 +63,9 @@ class PersonCenter extends Component { |
| 63 | 63 | } |
| 64 | 64 | componentDidMount() { |
| 65 | 65 | if (this.changePwd) { |
| 66 | - message.warn('系统判断密码为初始密码,请修改密码后再操作!', 10); | |
| 66 | + const changePwd = commonFunc.showLocalMessage(this.props, 'changePwd', '系统判断密码为初始密码,2请修改密码后再操作!'); | |
| 67 | + | |
| 68 | + message.warn(changePwd, 10); | |
| 67 | 69 | } |
| 68 | 70 | } |
| 69 | 71 | ... | ... |
src/components/CommonElementEvent/SftLoginInfo.js
| ... | ... | @@ -59,7 +59,7 @@ const SftLoginComponent = Form.create({ |
| 59 | 59 | const tabDrivergroup = commonFunc.showMessage(app.commonConst, 'tabDrivergroup');/* 司机查看权限 */ |
| 60 | 60 | const tabDepartgroup = commonFunc.showMessage(app.commonConst, 'tabDepartgroup');/* 部门查看权限 */ |
| 61 | 61 | const tabApproveGroup = commonFunc.showMessage(app.commonConst, 'sftlogininfoCheck');/* 审核组权限 */ |
| 62 | - const tabCompanyAuthority = commonFunc.showLocalMessage(this.props, 'tabCompanyAuthority', '分管公司权限'); | |
| 62 | + const tabCompanyAuthority = commonFunc.showLocalMessage(props, 'tabCompanyAuthority', '分管公司权限'); | |
| 63 | 63 | const tabBrandgroup = tabCompanyAuthority; |
| 64 | 64 | |
| 65 | 65 | return ( | ... | ... |
src/components/Manufacture/CommonPackEvent.js
| ... | ... | @@ -1182,10 +1182,13 @@ const PartsInfoModal = props => { |
| 1182 | 1182 | }; |
| 1183 | 1183 | |
| 1184 | 1184 | const handleFooter = () => { |
| 1185 | + const BtnSure = commonFunc.showLocalMessage(props, "BtnSure", "确定"); | |
| 1186 | + const BtnSave = commonFunc.showLocalMessage(props, "BtnSave", "确定"); | |
| 1187 | + const BtnUpd= commonFunc.showLocalMessage(props, "BtnUpd", "修改"); | |
| 1185 | 1188 | if (props.enabled || props.masterData?.partsInfoLock) { |
| 1186 | 1189 | return [ |
| 1187 | 1190 | <Button type="primary" onClick={onCancel}> |
| 1188 | - 确定 | |
| 1191 | + {BtnSure} | |
| 1189 | 1192 | </Button>, |
| 1190 | 1193 | ]; |
| 1191 | 1194 | } |
| ... | ... | @@ -1196,7 +1199,7 @@ const PartsInfoModal = props => { |
| 1196 | 1199 | setEnabledNew(true); |
| 1197 | 1200 | }} |
| 1198 | 1201 | > |
| 1199 | - 修改 | |
| 1202 | + {BtnUpd} | |
| 1200 | 1203 | </Button>, |
| 1201 | 1204 | <Button |
| 1202 | 1205 | type="primary" |
| ... | ... | @@ -1205,7 +1208,7 @@ const PartsInfoModal = props => { |
| 1205 | 1208 | onCancel(); |
| 1206 | 1209 | }} |
| 1207 | 1210 | > |
| 1208 | - 保存 | |
| 1211 | + {BtnSave} | |
| 1209 | 1212 | </Button>, |
| 1210 | 1213 | ]; |
| 1211 | 1214 | }; |
| ... | ... | @@ -1475,13 +1478,12 @@ const ParamsChooseNewModal = props => { |
| 1475 | 1478 | |
| 1476 | 1479 | const BtnFirst= commonFunc.showMessage(props.app.commonConst, 'BtnFirst') || '首条' ; |
| 1477 | 1480 | |
| 1478 | - const BtnLast= commonFunc.showMessage(props.app.commonConst, 'Btnlast') || '末条' ; | |
| 1481 | + const BtnLast= commonFunc.showMessage(props.app.commonConst, 'BtnLast') || '末条' ; | |
| 1479 | 1482 | |
| 1480 | 1483 | const BtnPrior= commonFunc.showMessage(props.app.commonConst, 'BtnPrior') || '上一条' ; |
| 1481 | 1484 | |
| 1482 | 1485 | const BtnNext= commonFunc.showMessage(props.app.commonConst, 'BtnNext') || '下一条' ; |
| 1483 | 1486 | |
| 1484 | - const BtnSure = commonFunc.showMessage(props.app.commonConst, 'BtnSure') || '确定' ; | |
| 1485 | 1487 | |
| 1486 | 1488 | return props[modalName] ? ( |
| 1487 | 1489 | <AntdDraggableModal | ... | ... |
src/components/Manufacture/WorkOrderPack/WorkOrderPackTableTree.js
| ... | ... | @@ -8769,6 +8769,7 @@ const WorkOrderComponent = Form.create({ |
| 8769 | 8769 | } |
| 8770 | 8770 | const autoHeight = `calc( 100vh - 92px )`; |
| 8771 | 8771 | const chooseCombinePartsName = commonFunc.showLocalMessage(props, 'chooseCombinePartsName', '选择合版部件名称'); |
| 8772 | + const DisplayComponentStructure = commonFunc.showLocalMessage(props, "DisplayComponentStructure", "展示部件结构"); | |
| 8772 | 8773 | |
| 8773 | 8774 | return ( |
| 8774 | 8775 | <Form> |
| ... | ... | @@ -9182,7 +9183,7 @@ const WorkOrderComponent = Form.create({ |
| 9182 | 9183 | props.showAllTreeVisible ? |
| 9183 | 9184 | <AntdDraggableModal |
| 9184 | 9185 | width={1300} |
| 9185 | - title='展示部件结构' | |
| 9186 | + title={DisplayComponentStructure} | |
| 9186 | 9187 | visible={ props.showAllTreeVisible} |
| 9187 | 9188 | onCancel={props.onCancelModal.bind(this, 'showAllTreeVisible')} |
| 9188 | 9189 | bodyStyle={{ |
| ... | ... | @@ -9352,7 +9353,7 @@ const ModalComponent = props => { |
| 9352 | 9353 | const sProcessParams = commonFunc.showMessage(props.app.commonConst, 'workParam') || '工单参数' ; |
| 9353 | 9354 | const BtnFirst= commonFunc.showMessage(props.app.commonConst, 'BtnFirst') || '首条' ; |
| 9354 | 9355 | |
| 9355 | - const BtnLast= commonFunc.showMessage(props.app.commonConst, 'Btnlast') || '末条' ; | |
| 9356 | + const BtnLast= commonFunc.showMessage(props.app.commonConst, 'BtnLast') || '末条' ; | |
| 9356 | 9357 | |
| 9357 | 9358 | const BtnPrior= commonFunc.showMessage(props.app.commonConst, 'BtnPrior') || '上一条' ; |
| 9358 | 9359 | ... | ... |
src/components/Manufacture/WorkOrderPack/WorkOrderResearchTableTree.js
| ... | ... | @@ -8404,6 +8404,8 @@ const WorkOrderComponent = Form.create({ |
| 8404 | 8404 | } |
| 8405 | 8405 | } |
| 8406 | 8406 | const autoHeight = `calc( 100vh - 92px )`; |
| 8407 | + const DisplayComponentStructure = commonFunc.showLocalMessage(props, "DisplayComponentStructure", "展示部件结构"); | |
| 8408 | + | |
| 8407 | 8409 | |
| 8408 | 8410 | return ( |
| 8409 | 8411 | <Form> |
| ... | ... | @@ -8834,7 +8836,7 @@ const WorkOrderComponent = Form.create({ |
| 8834 | 8836 | props.showAllTreeVisible ? |
| 8835 | 8837 | <AntdDraggableModal |
| 8836 | 8838 | width={1300} |
| 8837 | - title='展示部件结构' | |
| 8839 | + title={DisplayComponentStructure} | |
| 8838 | 8840 | visible={ props.showAllTreeVisible} |
| 8839 | 8841 | onCancel={props.onCancelModal.bind(this, 'showAllTreeVisible')} |
| 8840 | 8842 | bodyStyle={{ | ... | ... |
src/components/Manufacture/WorkOrderPackTableTreeNew/index.js
| ... | ... | @@ -4253,7 +4253,7 @@ const ControlComponent = props => { |
| 4253 | 4253 | const onCancel = () => { |
| 4254 | 4254 | props.onSaveState({ showAllTreeVisible: false }); |
| 4255 | 4255 | }; |
| 4256 | - | |
| 4256 | + const DisplayComponentStructure = commonFunc.showLocalMessage(props, "DisplayComponentStructure", "展示部件结构"); | |
| 4257 | 4257 | return ( |
| 4258 | 4258 | <div className={styles.controlTable}> |
| 4259 | 4259 | <StaticEditTable {...controlPropsType} setOpterationColumn="Y" selfTableHeight={82} noVlist /> |
| ... | ... | @@ -4261,7 +4261,7 @@ const ControlComponent = props => { |
| 4261 | 4261 | {showAllTreeVisible && ( |
| 4262 | 4262 | <AntdDraggableModal |
| 4263 | 4263 | width={1300} |
| 4264 | - title="展示部件结构" | |
| 4264 | + title={DisplayComponentStructure} | |
| 4265 | 4265 | open={showAllTreeVisible} |
| 4266 | 4266 | onCancel={onCancel} |
| 4267 | 4267 | bodyStyle={{ | ... | ... |
src/components/productionMainPlan/productionMainPlan.js
| ... | ... | @@ -564,6 +564,7 @@ const ProductionPlanComponent = Form.create({ |
| 564 | 564 | const WorkCenterMachinePlan = commonFunc.showLocalMessage(props, "WorkCenter&MachinePlan", "工作中心&机台计划"); |
| 565 | 565 | |
| 566 | 566 | const MPS = commonFunc.showLocalMessage(props, "MPS", "产品主计划"); |
| 567 | + const UnifiedPlanning= commonFunc.showMessage(props.app.commonConst, 'UnifiedPlanning') || '统一规划' ; | |
| 567 | 568 | |
| 568 | 569 | const machineCharProps = commonBusiness.getCharTypes('machineChar', charConfigArr, charConfigAndDataArr, props); |
| 569 | 570 | const setUp = commonFunc.showMessage(app.commonConst, 'setUp');/* 上移 */ |
| ... | ... | @@ -639,7 +640,7 @@ const ProductionPlanComponent = Form.create({ |
| 639 | 640 | props.unifiedPlanningChooseVisible ? |
| 640 | 641 | <AntdDraggableModal |
| 641 | 642 | width={1100} |
| 642 | - title="统一规划" | |
| 643 | + title={UnifiedPlanning} | |
| 643 | 644 | visible={props.unifiedPlanningChooseVisible} |
| 644 | 645 | onCancel={props.onCancelUnifiedPlanningChooseModal} |
| 645 | 646 | footer={null} | ... | ... |