Commit d3524137e612b63256407201049d57f89f186488

Authored by Min
1 parent f5d10617

1.处理MES 第一单,第二单 中文版本能展示,英文版不展示bug

src/mes/common/RunningStatus/index.js
... ... @@ -13,7 +13,7 @@ import ShowType from "@/components/Common/CommonComponent";
13 13 import styles from "./index.less";
14 14 import { cloneDeep } from "lodash";
15 15  
16   -const sTypeJson = {
  16 +const sTypeJson1 = {
17 17 sType1: ["行车状态", "green", "greenTd"],
18 18 sType2: ["正常待机", "cyan", "cyanTd"],
19 19 sType3: ["不正常待机(材料异常)", "red", "redTd"],
... ... @@ -26,6 +26,19 @@ const sTypeJson = {
26 26 "": ["其它", "blue", "blueTd"]
27 27 };
28 28  
  29 +const sTypeJson = {
  30 + sType1: ["Vehicle Status", "green", "greenTd"],
  31 + sType2: ["Normal Standby", "cyan", "cyanTd"],
  32 + sType3: ["Abnormal Standby (Material Issue)", "red", "redTd"],
  33 + sType4: ["Abnormal Standby (Process Issue", "red", "redTd"],
  34 + sType5: ["Abnormal Standby (Production Issue)", "red", "redTd"],
  35 + sType6: ["Abnormal Standby (Other)", "red", "redTd"],
  36 + sType7: ["Abnormal Standby", "red", "redTd"],
  37 + sType8: ["Equipment Maintenance", "blue", "blueTd"],
  38 + sType9: ["Equipment Repair", "blue", "blueTd"],
  39 + "": ["其它", "blue", "blueTd"]
  40 +};
  41 +
29 42 // 业务层
30 43 const businessTier = props => {
31 44 const { formData = [], copyTo = {} } = props;
... ...
src/mes/common/buttonComponent/index.js
... ... @@ -199,7 +199,7 @@ const ButtonComponent = props => {
199 199 ["Production Execution", 10],
200 200 ["First Approval Sample Notice", 11],
201 201 ["Exception/Assistance Reporting", 12],
202   - ["Completion & Clearance", 13],
  202 + ["Post-Completion Clearance/Confirmation", 13],
203 203 ["Plate Splitting/Combining", 14],
204 204 null,
205 205 null,
... ...
src/mes/common/commonModelComponent/index.js
... ... @@ -1258,6 +1258,8 @@ const CommonModelComponent = props => {
1258 1258 bFirstComponent: level === 0 && index === -1
1259 1259 };
1260 1260  
  1261 + console.log('222', sName, componentProps)
  1262 +
1261 1263 const commonDivHeight = useComputedCommonDivHeight(componentProps);
1262 1264 return (
1263 1265 <div
... ... @@ -1286,7 +1288,7 @@ const CommonModelComponent = props =&gt; {
1286 1288 width = "100%",
1287 1289 height = "100%"
1288 1290 } = item;
1289   - console.log('ssconfigLists', configList);
  1291 + console.log('ssconfigLists', configList, sEntireTabName );
1290 1292 const sEntireTabNameNew = sLanguage === 'sEnglish' ? sEnglishEntireTabName + '1111' :
1291 1293 sLanguage === 'sBig5EntireTabName' ? sBig5EntireTabName : sEntireTabName;
1292 1294 const advancedStyle =
... ... @@ -1465,8 +1467,9 @@ const TabTitleComponent = props =&gt; {
1465 1467 return <div style={{ width: "100%", height: 10 }} />;
1466 1468 }
1467 1469 }
  1470 + console.log('sTabNsme', sTabName);
1468 1471  
1469   - if (sTabName.split("_")[0] === "空") return "";
  1472 + if (sTabName.split("_")[0] === "空" || sTabName.split("_")[0] === "Empty" ) return "";
1470 1473  
1471 1474 const costomTitle =
1472 1475 props.costomTitle && sTabName === "下料信息" ? props.costomTitle : "";
... ... @@ -1502,7 +1505,7 @@ const CommonViewTableComponent = props =&gt; {
1502 1505 if (selectedRowKeys.length) {
1503 1506 viewRow = dataArr.find(item => item.sId === selectedRowKeys[0]);
1504 1507 }
1505   -
  1508 + console.log('111111第', sTabName)
1506 1509 if (sTabName?.startsWith("第") && sTabName?.endsWith("转")) {
1507 1510 viewRow = data.filter(item => item.sRev === sTabName)[0];
1508 1511 }
... ... @@ -1510,7 +1513,7 @@ const CommonViewTableComponent = props =&gt; {
1510 1513 if (commonUtils.isEmptyObject(viewRow)) {
1511 1514 viewRow = Array.isArray(data) ? data[0] || {} : data;
1512 1515 }
1513   -
  1516 + console.log('viewRow', viewRow)
1514 1517 if (
1515 1518 commonUtils.isNotEmptyObject(viewRow) &&
1516 1519 !selectedRowKeys[0] &&
... ... @@ -1556,12 +1559,9 @@ const CommonViewTableComponent = props =&gt; {
1556 1559 });
1557 1560 }
1558 1561 }
  1562 + const groupList = sTabName?.split(",") || [];
1559 1563  
1560   - const sLanguage = props.app.userinfo?.sLanguage;
1561   -
1562   - const sTabLocalName = sLanguage === 'sEnglish' ? sEnglishTabName : sTabName;
1563   -
1564   - const groupList = sTabLocalName?.split(",") || [];
  1564 + console.log('groupList', groupList)
1565 1565 const viewConfigsList = groupList.map((tabName, index) => {
1566 1566 if (tabName === "隐藏") {
1567 1567 return [];
... ... @@ -1583,6 +1583,7 @@ const CommonViewTableComponent = props =&gt; {
1583 1583 );
1584 1584 }
1585 1585 });
  1586 + console.log('viewConfigsList', viewConfigsList);
1586 1587  
1587 1588 const operationBarProps = {
1588 1589 ...props,
... ... @@ -1599,6 +1600,11 @@ const CommonViewTableComponent = props =&gt; {
1599 1600 setReportInfoVisible(!reportInfoVisible);
1600 1601 };
1601 1602  
  1603 +
  1604 + const sLanguage = props.app.userinfo?.sLanguage;
  1605 + const sTabLocalName = sLanguage === 'sEnglish' ? sEnglishTabName : sTabName;
  1606 + const groupListNew = sTabLocalName?.split(",") || [];
  1607 +
1602 1608 return (
1603 1609 <>
1604 1610 {sName === "master" ? (
... ... @@ -1630,7 +1636,7 @@ const CommonViewTableComponent = props =&gt; {
1630 1636  
1631 1637 return (
1632 1638 <>
1633   - <TabTitleComponent {...props} sTabName={groupList[index]} />
  1639 + <TabTitleComponent {...props} sTabName={groupListNew[index] } />
1634 1640 <CommonViewTable {...viewProps} />
1635 1641 <ReportInfo
1636 1642 reportInfoVisible={reportInfoVisible}
... ... @@ -1861,6 +1867,8 @@ const CommonTableComponent = props =&gt; {
1861 1867 };
1862 1868  
1863 1869 const stepName = sTabName?.split("_")[1] || "";
  1870 +
  1871 + console.log('ssss', stepName);
1864 1872 if (stepName.startsWith("第") && stepName.endsWith("转")) {
1865 1873 tableProps.data = tableProps.data.filter(item => item.sRev === stepName);
1866 1874 }
... ...
src/mes/scheduledTasks/abnormalEventReporting/index.js
... ... @@ -416,7 +416,7 @@ const RightPartComponent = props =&gt; {
416 416 // );
417 417 }
418 418 };
419   -
  419 + const report = commonFunc.showLocalMessage(props, 'report', '提报');
420 420 return (
421 421 <div className={styles.rightPart}>
422 422 <div className={styles.runningStatus}>
... ... @@ -433,7 +433,7 @@ const RightPartComponent = props =&gt; {
433 433 />
434 434 </div>
435 435 <div className={styles.runningBtn}>
436   - <Button {...btnProps}>提报</Button>
  436 + <Button {...btnProps}>{report}</Button>
437 437 </div>
438 438 </div>
439 439 );
... ...