Commit 28c7a86ca36e18c201a7afe3ae3f04dcfe57590d
1 parent
f28ddbab
1.排程,主计划多语言翻译
Showing
3 changed files
with
8 additions
and
6 deletions
src/components/Common/CommonBillEvent.js
src/components/productionMainPlan/productionMainPlan.js
| ... | ... | @@ -561,6 +561,10 @@ const ProductionPlanComponent = Form.create({ |
| 561 | 561 | }; |
| 562 | 562 | } |
| 563 | 563 | |
| 564 | + const WorkCenterMachinePlan = commonFunc.showLocalMessage(props, "WorkCenter&MachinePlan", "工作中心&机台计划"); | |
| 565 | + | |
| 566 | + const MPS = commonFunc.showLocalMessage(props, "MPS", "产品主计划"); | |
| 567 | + | |
| 564 | 568 | const machineCharProps = commonBusiness.getCharTypes('machineChar', charConfigArr, charConfigAndDataArr, props); |
| 565 | 569 | const setUp = commonFunc.showMessage(app.commonConst, 'setUp');/* 上移 */ |
| 566 | 570 | const setDown = commonFunc.showMessage(app.commonConst, 'setDown');/* 下移 */ |
| ... | ... | @@ -584,7 +588,7 @@ const ProductionPlanComponent = Form.create({ |
| 584 | 588 | <Avatar src={props.imgSrc} /> |
| 585 | 589 | </div> |
| 586 | 590 | <Tabs className={styles.slaveTabs} tabBarStyle={{ marginLeft: 10, marginRight: 10 }}> |
| 587 | - <TabPane tab="产品主计划" key={2} > | |
| 591 | + <TabPane tab={MPS} key={2} > | |
| 588 | 592 | <div className={selfstyles.mainPlan} > |
| 589 | 593 | <Layout className="processList"> |
| 590 | 594 | <Sider className="process"> |
| ... | ... | @@ -612,7 +616,7 @@ const ProductionPlanComponent = Form.create({ |
| 612 | 616 | </Layout> |
| 613 | 617 | </div> |
| 614 | 618 | </TabPane> |
| 615 | - <TabPane tab="工作中心&机台计划" key={3}> | |
| 619 | + <TabPane tab={WorkCenterMachinePlan} key={3}> | |
| 616 | 620 | <Content |
| 617 | 621 | className="xly-productionPlanInfo" |
| 618 | 622 | style={{ maxHeight: 'calc( 100vh - 220px)', overflowY: 'auto' }} | ... | ... |
src/components/productionScheduleTree/productionScheduleTree.js
| ... | ... | @@ -1547,7 +1547,7 @@ const ProductionScheduleComponent = Form.create({ |
| 1547 | 1547 | // okProps.disabled = !props.bChangeTimerEnable; |
| 1548 | 1548 | okProps.loading = props.loadingTimer; |
| 1549 | 1549 | } |
| 1550 | - | |
| 1550 | + const WorkCenter = commonFunc.showLocalMessage(props, "WorkCenter", "工作中心"); | |
| 1551 | 1551 | return ( |
| 1552 | 1552 | <Form style={{ height: '100%' }}> |
| 1553 | 1553 | <Layout style={{ height: '100%' }} className="xly-productionPlan-list productionScheduleTree"> |
| ... | ... | @@ -1563,7 +1563,7 @@ const ProductionScheduleComponent = Form.create({ |
| 1563 | 1563 | <div className="resize-controller" onMouseDown={handleResizeLayout} /> |
| 1564 | 1564 | <div className="productionScheduleTree-sider-title"> |
| 1565 | 1565 | <Icon type={expandAll ? 'minus-square' : 'plus-square'} className="control-icon" onClick={onTreeExpandChange} /> |
| 1566 | - <span>工作中心</span> | |
| 1566 | + <span>{WorkCenter}</span> | |
| 1567 | 1567 | </div> |
| 1568 | 1568 | <div className="productionScheduleTree-sider-content"> |
| 1569 | 1569 | { | ... | ... |