Commit 28c7a86ca36e18c201a7afe3ae3f04dcfe57590d

Authored by Min
1 parent f28ddbab

1.排程,主计划多语言翻译

src/components/Common/CommonBillEvent.js
@@ -2290,8 +2290,6 @@ export default (ChildComponent) => { @@ -2290,8 +2290,6 @@ export default (ChildComponent) => {
2290 }, 2290 },
2291 onCancel() { 2291 onCancel() {
2292 }, 2292 },
2293 - okText: '保存',  
2294 - cancelText: '不保存',  
2295 }); 2293 });
2296 this.props.onSaveState({ 2294 this.props.onSaveState({
2297 loading: false, 2295 loading: false,
src/components/productionMainPlan/productionMainPlan.js
@@ -561,6 +561,10 @@ const ProductionPlanComponent = Form.create({ @@ -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 const machineCharProps = commonBusiness.getCharTypes('machineChar', charConfigArr, charConfigAndDataArr, props); 568 const machineCharProps = commonBusiness.getCharTypes('machineChar', charConfigArr, charConfigAndDataArr, props);
565 const setUp = commonFunc.showMessage(app.commonConst, 'setUp');/* 上移 */ 569 const setUp = commonFunc.showMessage(app.commonConst, 'setUp');/* 上移 */
566 const setDown = commonFunc.showMessage(app.commonConst, 'setDown');/* 下移 */ 570 const setDown = commonFunc.showMessage(app.commonConst, 'setDown');/* 下移 */
@@ -584,7 +588,7 @@ const ProductionPlanComponent = Form.create({ @@ -584,7 +588,7 @@ const ProductionPlanComponent = Form.create({
584 <Avatar src={props.imgSrc} /> 588 <Avatar src={props.imgSrc} />
585 </div> 589 </div>
586 <Tabs className={styles.slaveTabs} tabBarStyle={{ marginLeft: 10, marginRight: 10 }}> 590 <Tabs className={styles.slaveTabs} tabBarStyle={{ marginLeft: 10, marginRight: 10 }}>
587 - <TabPane tab="产品主计划" key={2} > 591 + <TabPane tab={MPS} key={2} >
588 <div className={selfstyles.mainPlan} > 592 <div className={selfstyles.mainPlan} >
589 <Layout className="processList"> 593 <Layout className="processList">
590 <Sider className="process"> 594 <Sider className="process">
@@ -612,7 +616,7 @@ const ProductionPlanComponent = Form.create({ @@ -612,7 +616,7 @@ const ProductionPlanComponent = Form.create({
612 </Layout> 616 </Layout>
613 </div> 617 </div>
614 </TabPane> 618 </TabPane>
615 - <TabPane tab="工作中心&机台计划" key={3}> 619 + <TabPane tab={WorkCenterMachinePlan} key={3}>
616 <Content 620 <Content
617 className="xly-productionPlanInfo" 621 className="xly-productionPlanInfo"
618 style={{ maxHeight: 'calc( 100vh - 220px)', overflowY: 'auto' }} 622 style={{ maxHeight: 'calc( 100vh - 220px)', overflowY: 'auto' }}
src/components/productionScheduleTree/productionScheduleTree.js
@@ -1547,7 +1547,7 @@ const ProductionScheduleComponent = Form.create({ @@ -1547,7 +1547,7 @@ const ProductionScheduleComponent = Form.create({
1547 // okProps.disabled = !props.bChangeTimerEnable; 1547 // okProps.disabled = !props.bChangeTimerEnable;
1548 okProps.loading = props.loadingTimer; 1548 okProps.loading = props.loadingTimer;
1549 } 1549 }
1550 - 1550 + const WorkCenter = commonFunc.showLocalMessage(props, "WorkCenter", "工作中心");
1551 return ( 1551 return (
1552 <Form style={{ height: '100%' }}> 1552 <Form style={{ height: '100%' }}>
1553 <Layout style={{ height: '100%' }} className="xly-productionPlan-list productionScheduleTree"> 1553 <Layout style={{ height: '100%' }} className="xly-productionPlan-list productionScheduleTree">
@@ -1563,7 +1563,7 @@ const ProductionScheduleComponent = Form.create({ @@ -1563,7 +1563,7 @@ const ProductionScheduleComponent = Form.create({
1563 <div className="resize-controller" onMouseDown={handleResizeLayout} /> 1563 <div className="resize-controller" onMouseDown={handleResizeLayout} />
1564 <div className="productionScheduleTree-sider-title"> 1564 <div className="productionScheduleTree-sider-title">
1565 <Icon type={expandAll ? 'minus-square' : 'plus-square'} className="control-icon" onClick={onTreeExpandChange} /> 1565 <Icon type={expandAll ? 'minus-square' : 'plus-square'} className="control-icon" onClick={onTreeExpandChange} />
1566 - <span>工作中心</span> 1566 + <span>{WorkCenter}</span>
1567 </div> 1567 </div>
1568 <div className="productionScheduleTree-sider-content"> 1568 <div className="productionScheduleTree-sider-content">
1569 { 1569 {