Commit 489a0fcb59417ffa6b7998e14696e5467dea7c45

Authored by qmj
1 parent 6154a8a3

剔除校验重复人员

src/mes/common/commonOperationBarComponent/MesToolbar.js
@@ -1059,9 +1059,9 @@ const handleScanFace = (props) => { @@ -1059,9 +1059,9 @@ const handleScanFace = (props) => {
1059 proData.forEach(item => { 1059 proData.forEach(item => {
1060 const data = commonFunc.getAssignFieldValue(copyConfig?.sAssignField, item) 1060 const data = commonFunc.getAssignFieldValue(copyConfig?.sAssignField, item)
1061 const index = tableData.findIndex(x => x.sEmployeeNo === item.sEmployeeNo) 1061 const index = tableData.findIndex(x => x.sEmployeeNo === item.sEmployeeNo)
1062 - if (index !== -1) {  
1063 - message.error('人员重复,请重新添加', 5)  
1064 - } else { 1062 + // if (index !== -1) {
  1063 + // message.error('人员重复,请重新添加', 5)
  1064 + // } else {
1065 tableData.push({ 1065 tableData.push({
1066 ...item, 1066 ...item,
1067 ...data, 1067 ...data,
@@ -1070,7 +1070,7 @@ const handleScanFace = (props) => { @@ -1070,7 +1070,7 @@ const handleScanFace = (props) => {
1070 sParentId: props.masterData.sId, 1070 sParentId: props.masterData.sId,
1071 slaveId: props?.slaveData ? props?.slaveData[0].sId : '' 1071 slaveId: props?.slaveData ? props?.slaveData[0].sId : ''
1072 }) 1072 })
1073 - } 1073 + // }
1074 1074
1075 }); 1075 });
1076 1076