Commit ab7d3416200f977d50e838e2158cf57580c3801b
1 parent
3beca87f
中转英;
Showing
1 changed file
with
39 additions
and
39 deletions
src/mes/costomPageFun/index.js
| ... | ... | @@ -196,7 +196,7 @@ const mesTableLineAdd1 = (props, tableName) => { |
| 196 | 196 | const { [`${tableName}SelectedRowKeys`]: selectedRowKeys, [`${tableName}Data`]: tableData = [] } = props; |
| 197 | 197 | |
| 198 | 198 | if (commonUtils.isEmptyObject(selectedRowKeys)) { |
| 199 | - message.info("请先选中一条行车记录数据!"); | |
| 199 | + message.info("Please select a driving record data first!"); | |
| 200 | 200 | return; |
| 201 | 201 | } |
| 202 | 202 | |
| ... | ... | @@ -206,7 +206,7 @@ const mesTableLineAdd1 = (props, tableName) => { |
| 206 | 206 | const rowData = tableData[rowDataIndex]; |
| 207 | 207 | |
| 208 | 208 | if (rowData.bSaveMes == 1 || rowData.bSaveAbnormal == 1) { |
| 209 | - message.info("数据已上报或已异常提报,不能拆分!"); | |
| 209 | + message.info("The data has been reported or reported abnormally and cannot be split!"); | |
| 210 | 210 | return; |
| 211 | 211 | } |
| 212 | 212 | |
| ... | ... | @@ -216,7 +216,7 @@ const mesTableLineAdd1 = (props, tableName) => { |
| 216 | 216 | // } |
| 217 | 217 | |
| 218 | 218 | if (tableData.some(item => item.bUnChanged)) { |
| 219 | - message.info("请先修改刚新增的数据!"); | |
| 219 | + message.info("Please modify the newly added data first!"); | |
| 220 | 220 | return; |
| 221 | 221 | } |
| 222 | 222 | |
| ... | ... | @@ -298,7 +298,7 @@ const mesTableChange1 = (props, tableName) => { |
| 298 | 298 | const { sId, tStartDate, tEndDate } = rowData; |
| 299 | 299 | |
| 300 | 300 | if (!tEndDate && tEndDate == null) { |
| 301 | - message.info("结束时间不能为空!"); | |
| 301 | + message.info("End time cannot be empty!"); | |
| 302 | 302 | return; |
| 303 | 303 | } |
| 304 | 304 | |
| ... | ... | @@ -315,7 +315,7 @@ const mesTableChange1 = (props, tableName) => { |
| 315 | 315 | |
| 316 | 316 | // 检查tStartDate是否在tEndDate之前 |
| 317 | 317 | if (moment(tEndDate).isBefore(moment(tStartDate))) { |
| 318 | - message.info("结束时间不能小于起始时间!", 3); | |
| 318 | + message.info("The end time cannot be less than the start time!", 3); | |
| 319 | 319 | tableDataNew[rowDataIndex] = rowDataOld; |
| 320 | 320 | props.onSaveState({ |
| 321 | 321 | [`${tableName}Data`]: tableDataNew, |
| ... | ... | @@ -325,7 +325,7 @@ const mesTableChange1 = (props, tableName) => { |
| 325 | 325 | |
| 326 | 326 | // 检查tStartDate是否在tStartDateParent之后 |
| 327 | 327 | if (moment(tEndDate).isAfter(moment(tEndDateParent))) { |
| 328 | - message.info("结束不能大于父节点的结束时间!", 3); | |
| 328 | + message.info("The end time cannot be greater than the end time of the parent node!", 3); | |
| 329 | 329 | tableDataNew[rowDataIndex] = rowDataOld; |
| 330 | 330 | props.onSaveState({ |
| 331 | 331 | [`${tableName}Data`]: tableDataNew, |
| ... | ... | @@ -335,7 +335,7 @@ const mesTableChange1 = (props, tableName) => { |
| 335 | 335 | |
| 336 | 336 | // 检查tStartDate是否在当前时间之后 |
| 337 | 337 | if (moment(tEndDate).isAfter(moment())) { |
| 338 | - message.info("结束不能大于当前时间!", 3); | |
| 338 | + message.info("The end time cannot be greater than the current time!", 3); | |
| 339 | 339 | tableDataNew[rowDataIndex] = rowDataOld; |
| 340 | 340 | props.onSaveState({ |
| 341 | 341 | [`${tableName}Data`]: tableDataNew, |
| ... | ... | @@ -826,7 +826,7 @@ const mesTableBtnClick3 = props => { |
| 826 | 826 | |
| 827 | 827 | const iIndex = table0Data.findIndex(item => item.sId === sId); |
| 828 | 828 | if (iIndex === -1) { |
| 829 | - message.info("未找到对应报工任务,请检查登录班次!", 3); | |
| 829 | + message.info("The corresponding work report task was not found, please check the login shift!", 3); | |
| 830 | 830 | // props.onExecInstructSet({ |
| 831 | 831 | // nextProps: props, |
| 832 | 832 | // btnConfig: config |
| ... | ... | @@ -865,12 +865,12 @@ const handleSlaveWypj2BtnPre = props => { |
| 865 | 865 | |
| 866 | 866 | const iIndex = tableData.findIndex(item => item.sId === rowData.sId); |
| 867 | 867 | if (iIndex === -1) { |
| 868 | - message.info("暂无数据!"); | |
| 868 | + message.info("No data yet!"); | |
| 869 | 869 | return; |
| 870 | 870 | } |
| 871 | 871 | |
| 872 | 872 | if (iIndex === 0) { |
| 873 | - message.info("已是第一条数据!"); | |
| 873 | + message.info("This is the first data!"); | |
| 874 | 874 | return; |
| 875 | 875 | } |
| 876 | 876 | |
| ... | ... | @@ -904,12 +904,12 @@ const handleSlaveWypj2BtnNext = props => { |
| 904 | 904 | |
| 905 | 905 | const iIndex = tableData.findIndex(item => item.sId === rowData.sId); |
| 906 | 906 | if (iIndex === -1) { |
| 907 | - message.info("暂无数据!"); | |
| 907 | + message.info("No data yet!"); | |
| 908 | 908 | return; |
| 909 | 909 | } |
| 910 | 910 | |
| 911 | 911 | if (iIndex === tableData.length - 1) { |
| 912 | - message.info("已是最后一条数据!"); | |
| 912 | + message.info("This is the last piece of data!"); | |
| 913 | 913 | return; |
| 914 | 914 | } |
| 915 | 915 | |
| ... | ... | @@ -943,12 +943,12 @@ const handleSalveWydm2BtnPre = props => { |
| 943 | 943 | |
| 944 | 944 | const iIndex = tableData.findIndex(item => item.sId === rowData.sId); |
| 945 | 945 | if (iIndex === -1) { |
| 946 | - message.info("暂无数据!"); | |
| 946 | + message.info("No data yet!"); | |
| 947 | 947 | return; |
| 948 | 948 | } |
| 949 | 949 | |
| 950 | 950 | if (iIndex === 0) { |
| 951 | - message.info("已是第一条数据!"); | |
| 951 | + message.info("This is the first data!"); | |
| 952 | 952 | return; |
| 953 | 953 | } |
| 954 | 954 | |
| ... | ... | @@ -982,12 +982,12 @@ const handleSalveWydm2BtnNext = props => { |
| 982 | 982 | |
| 983 | 983 | const iIndex = tableData.findIndex(item => item.sId === rowData.sId); |
| 984 | 984 | if (iIndex === -1) { |
| 985 | - message.info("暂无数据!"); | |
| 985 | + message.info("No data yet!"); | |
| 986 | 986 | return; |
| 987 | 987 | } |
| 988 | 988 | |
| 989 | 989 | if (iIndex === tableData.length - 1) { |
| 990 | - message.info("已是最后一条数据!"); | |
| 990 | + message.info("This is the last piece of data!"); | |
| 991 | 991 | return; |
| 992 | 992 | } |
| 993 | 993 | |
| ... | ... | @@ -1021,12 +1021,12 @@ const handleSlaveWyrj2BtnPre = props => { |
| 1021 | 1021 | |
| 1022 | 1022 | const iIndex = tableData.findIndex(item => item.sId === rowData.sId); |
| 1023 | 1023 | if (iIndex === -1) { |
| 1024 | - message.info("暂无数据!"); | |
| 1024 | + message.info("No data yet!"); | |
| 1025 | 1025 | return; |
| 1026 | 1026 | } |
| 1027 | 1027 | |
| 1028 | 1028 | if (iIndex === 0) { |
| 1029 | - message.info("已是第一条数据!"); | |
| 1029 | + message.info("This is the first data!"); | |
| 1030 | 1030 | return; |
| 1031 | 1031 | } |
| 1032 | 1032 | |
| ... | ... | @@ -1060,12 +1060,12 @@ const handleSlaveWyrj2BtnNext = props => { |
| 1060 | 1060 | |
| 1061 | 1061 | const iIndex = tableData.findIndex(item => item.sId === rowData.sId); |
| 1062 | 1062 | if (iIndex === -1) { |
| 1063 | - message.info("暂无数据!"); | |
| 1063 | + message.info("No data yet!"); | |
| 1064 | 1064 | return; |
| 1065 | 1065 | } |
| 1066 | 1066 | |
| 1067 | 1067 | if (iIndex === tableData.length - 1) { |
| 1068 | - message.info("已是最后一条数据!"); | |
| 1068 | + message.info("This is the last piece of data!"); | |
| 1069 | 1069 | return; |
| 1070 | 1070 | } |
| 1071 | 1071 | |
| ... | ... | @@ -1101,17 +1101,17 @@ const handleUpDownData = props => { |
| 1101 | 1101 | |
| 1102 | 1102 | const iIndex = tableData.findIndex(item => item.sId === rowData.sId); |
| 1103 | 1103 | if (iIndex === -1) { |
| 1104 | - message.info("暂无数据!"); | |
| 1104 | + message.info("No data yet!"); | |
| 1105 | 1105 | return; |
| 1106 | 1106 | } |
| 1107 | 1107 | |
| 1108 | 1108 | if (["BtnRight.PriorCom"].includes(sFieldName) && iIndex === 0) { |
| 1109 | - message.info("当前为首条数据!"); | |
| 1109 | + message.info("This is the first data!"); | |
| 1110 | 1110 | return; |
| 1111 | 1111 | } |
| 1112 | 1112 | |
| 1113 | 1113 | if (["BtnRight.NextCom"].includes(sFieldName) && iIndex === tableData.length - 1) { |
| 1114 | - message.info("已是最后一条数据!"); | |
| 1114 | + message.info("This is the last piece of data!"); | |
| 1115 | 1115 | return; |
| 1116 | 1116 | } |
| 1117 | 1117 | |
| ... | ... | @@ -1119,9 +1119,9 @@ const handleUpDownData = props => { |
| 1119 | 1119 | if (!sInstructStr) return; |
| 1120 | 1120 | |
| 1121 | 1121 | const info = { |
| 1122 | - "BtnRight.PriorCom": { index: iIndex - 1, message: "上一版" }, | |
| 1123 | - "BtnRight.NextCom": { index: iIndex + 1, message: "下一版" }, | |
| 1124 | - }[sFieldName] || { index: iIndex, message: "当前" }; | |
| 1122 | + "BtnRight.PriorCom": { index: iIndex - 1, message: "Previous edition" }, | |
| 1123 | + "BtnRight.NextCom": { index: iIndex + 1, message: "next edition" }, | |
| 1124 | + }[sFieldName] || { index: iIndex, message: "current" }; | |
| 1125 | 1125 | |
| 1126 | 1126 | const selectedRowKeys = [tableData[info.index].sId]; |
| 1127 | 1127 | props.onSaveState( |
| ... | ... | @@ -1159,11 +1159,11 @@ const mesTableChange3 = (props, tableName) => { |
| 1159 | 1159 | |
| 1160 | 1160 | const { tWorkingDate, sShift, tConnectDate } = rowData; |
| 1161 | 1161 | if (!tWorkingDate) { |
| 1162 | - message.warning("上班日期不能为空!"); | |
| 1162 | + message.warning("Working date cannot be empty!"); | |
| 1163 | 1163 | mesTableChange2(props, tableName); |
| 1164 | 1164 | return; |
| 1165 | 1165 | } else if (!sShift) { |
| 1166 | - message.warning("白夜班不能为空!"); | |
| 1166 | + message.warning("Day and night shifts cannot be empty!"); | |
| 1167 | 1167 | mesTableChange2(props, tableName); |
| 1168 | 1168 | return; |
| 1169 | 1169 | } |
| ... | ... | @@ -1189,15 +1189,15 @@ const mesTableChange3 = (props, tableName) => { |
| 1189 | 1189 | let msg = ""; |
| 1190 | 1190 | if (sShift === "1" || sShift === "白班") { |
| 1191 | 1191 | if (bDelayedOvertime) { |
| 1192 | - msg = `交接时间必须在${time}日8:00之后!`; | |
| 1192 | + msg = `The handover time must be after 8:00 on ${time} day!`; | |
| 1193 | 1193 | } else { |
| 1194 | - msg = `交接时间必须在${time}日8:00-20:00之间!`; | |
| 1194 | + msg = `The handover time must be between 8:00-20:00 on ${time} day!`; | |
| 1195 | 1195 | } |
| 1196 | 1196 | } else { |
| 1197 | 1197 | if (bDelayedOvertime) { |
| 1198 | - msg = `交接时间必须在${time}日20:00之后!`; | |
| 1198 | + msg = `The handover time must be after 20:00 on ${time} day!`; | |
| 1199 | 1199 | } else { |
| 1200 | - msg = `交接时间必须在${time}日20:00-次日8:00之间!`; | |
| 1200 | + msg = `The handover time must be between 20:00 on ${time} day and 8:00 the next day!`; | |
| 1201 | 1201 | } |
| 1202 | 1202 | } |
| 1203 | 1203 | message.warning(msg, 5); |
| ... | ... | @@ -1461,7 +1461,7 @@ const mesTableBtnClick4 = async props => { |
| 1461 | 1461 | if (!faceResult) return; |
| 1462 | 1462 | const { name } = faceResult; |
| 1463 | 1463 | if (name !== sPollingPerson) { |
| 1464 | - message.error("巡检人不一致!"); | |
| 1464 | + message.error("Inspectors are inconsistent!"); | |
| 1465 | 1465 | return; |
| 1466 | 1466 | } |
| 1467 | 1467 | addState.tempUserName = name; |
| ... | ... | @@ -1477,7 +1477,7 @@ const mesTableBtnClick4 = async props => { |
| 1477 | 1477 | } else if (sControlName === "BtnFinish") { |
| 1478 | 1478 | const bHasX = Object.keys(record).some(key => key?.startsWith("sItem") && record[key] === "✗"); |
| 1479 | 1479 | if (bHasX && !sQualityDeg) { |
| 1480 | - message.error("发现不合格项('✗'),但质量程度未填写,请补充!"); | |
| 1480 | + message.error("Unqualified items ('✗') were found, but the quality level was not filled in. Please fill it in!"); | |
| 1481 | 1481 | return; |
| 1482 | 1482 | } |
| 1483 | 1483 | |
| ... | ... | @@ -1538,7 +1538,7 @@ const handleCjlbshCheck = async props => { |
| 1538 | 1538 | props.onSaveState({ |
| 1539 | 1539 | commonRepairModalParams: { |
| 1540 | 1540 | visible: true, |
| 1541 | - title: "领班审核备注", | |
| 1541 | + title: "Foreman review notes", | |
| 1542 | 1542 | tableName: "slave0", |
| 1543 | 1543 | config: slave0Config, |
| 1544 | 1544 | record: { ...slave0Data[0], bSubmit: 0 }, |
| ... | ... | @@ -1630,7 +1630,7 @@ const handlePgshCheck = async props => { |
| 1630 | 1630 | props.onSaveState({ |
| 1631 | 1631 | commonRepairModalParams: { |
| 1632 | 1632 | visible: true, |
| 1633 | - title: "品管审核备注", | |
| 1633 | + title: "Quality Control Audit Notes", | |
| 1634 | 1634 | tableName: "slave0", |
| 1635 | 1635 | config: slave0Config, |
| 1636 | 1636 | record: { ...slave0Data[0], bSubmit: 0 }, |
| ... | ... | @@ -1714,7 +1714,7 @@ const handleConfirmSubmit = async props => { |
| 1714 | 1714 | if (tFirstCompleteTime) { |
| 1715 | 1715 | // 完工时间需小于清场时间 |
| 1716 | 1716 | if (moment(tFirstCompleteTime).isAfter(moment(tFirstClearanceTime))) { |
| 1717 | - message.error("完工时间需小于清场时间", 3); | |
| 1717 | + message.error("Completion time must be less than clearance time", 3); | |
| 1718 | 1718 | return; |
| 1719 | 1719 | } |
| 1720 | 1720 | } |
| ... | ... | @@ -1722,7 +1722,7 @@ const handleConfirmSubmit = async props => { |
| 1722 | 1722 | if (tSecondStartTime) { |
| 1723 | 1723 | // 清场时间需小于第二单开单时间 |
| 1724 | 1724 | if (moment(tFirstClearanceTime).isAfter(moment(tSecondStartTime))) { |
| 1725 | - message.error("清场时间需小于第二单开单时间", 3); | |
| 1725 | + message.error("The clearing time must be less than the second order opening time", 3); | |
| 1726 | 1726 | return; |
| 1727 | 1727 | } |
| 1728 | 1728 | } |
| ... | ... | @@ -1731,7 +1731,7 @@ const handleConfirmSubmit = async props => { |
| 1731 | 1731 | const confirmResult = await new Promise(resolve => { |
| 1732 | 1732 | Modal.confirm({ |
| 1733 | 1733 | title: "温馨提示:", |
| 1734 | - content: "工单完工时间或者第二单开工时间未填写是否继续提交?", | |
| 1734 | + content: "Should I continue submitting the work order if the completion time of the work order or the start time of the second work order is not filled in?", | |
| 1735 | 1735 | closable: true, |
| 1736 | 1736 | maskClosable: true, |
| 1737 | 1737 | wrapClassName: "mesCommonModal", | ... | ... |