| | |
| | | }); |
| | | // 本次循环主要是控制合并,以及控制检验项信息是否展示出来,以便后续检验 |
| | | this.tableList.forEach((a) => { |
| | | // 新聚订单直接按“模板ID + 模板行号”绑定检验记录,不再匹配分类和检验子项。 |
| | | const directProducts = this.currentSample.insProduct.filter( |
| | | (product) => product.templateId === a.templateId && |
| | | product.templateRowIndex !== null && product.templateRowIndex !== undefined |
| | | ); |
| | | if (directProducts.length > 0) { |
| | | directProducts.forEach((product) => { |
| | | a.template.forEach((cell) => { |
| | | if (cell.r === product.templateRowIndex) { |
| | | cell.i = product.id; |
| | | } |
| | | }); |
| | | }); |
| | | return; |
| | | } |
| | | let dels = new Set(); //需要删除的行 |
| | | let ids = []; //所有检验项的id |
| | | let set3 = new Set(); |