Commit dffc4ddd1a976b70e50f1d9b5c4c00c429ec0d44
1 parent
4b8da0eb
1.处理选择测试工单,工序没对应上
Showing
1 changed file
with
2 additions
and
1 deletions
src/components/Manufacture/WorkOrderPackTableTreeNew/index.js
| @@ -1757,7 +1757,8 @@ const WorkOrderPackTableTreeNewEvent = props => { | @@ -1757,7 +1757,8 @@ const WorkOrderPackTableTreeNewEvent = props => { | ||
| 1757 | tableDataRow.sParentId = masterData.sId; | 1757 | tableDataRow.sParentId = masterData.sId; |
| 1758 | tableDataRow.sProcessId = item.sProcessId; | 1758 | tableDataRow.sProcessId = item.sProcessId; |
| 1759 | const sProcessId = item.sProcessId; | 1759 | const sProcessId = item.sProcessId; |
| 1760 | - const iProcessIndex = processDataOld.findIndex(item => item.sProcessId === sProcessId); | 1760 | + const iProcessIndex = processDataOld.findIndex(item => item.sProcessId === sProcessId && |
| 1761 | + item.sControlId === controlSelectedRow.sId); | ||
| 1761 | if (iProcessIndex > -1) { | 1762 | if (iProcessIndex > -1) { |
| 1762 | tableDataRow.sProcessTbId = processDataOld[iProcessIndex].sId; /* 工序表格ID */ | 1763 | tableDataRow.sProcessTbId = processDataOld[iProcessIndex].sId; /* 工序表格ID */ |
| 1763 | tableDataRow.sMaterialsProcessNameOrder = processDataOld[iProcessIndex].sProcessName; /* 工序ID */ | 1764 | tableDataRow.sMaterialsProcessNameOrder = processDataOld[iProcessIndex].sProcessName; /* 工序ID */ |