| 
					
				 | 
			
			
				@@ -173,7 +173,6 @@ $(document).ready(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         const removeData = []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         for (const mc of materialChecklistData) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             const gcl = _.find(gclGatherData, { b_code: mc.b_code, name: mc.name, unit: mc.unit, unit_price: mc.unit_price }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            console.log(gcl); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // 判断是否已不存在工料清单,台账修改过后删除之 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (!gcl) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 removeData.push(mc.id); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1118,11 +1117,14 @@ $(document).ready(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     tree = _.filter(jsonData, function (item) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         return item.b_code !== null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    let lastIndex = 0;// 防止导入相同的清单导致导入的含量数量增多 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     for (const [i,t] of tree.entries()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        const jIndex1 = _.findIndex(jsonData, { b_code: t.b_code, name: t.name, unit: t.unit, unit_price: t.unit_price }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        const jIndex1 = _.findIndex(jsonData, { b_code: t.b_code, name: t.name, unit: t.unit, unit_price: t.unit_price }, lastIndex); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        lastIndex = jIndex1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         if (i + 1 < tree.length) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            const jIndex2 = _.findIndex(jsonData, { b_code: tree[i+1].b_code, name: tree[i+1].name, unit: tree[i+1].unit, unit_price: tree[i+1].unit_price }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            const jIndex2 = _.findIndex(jsonData, { b_code: tree[i+1].b_code, name: tree[i+1].name, unit: tree[i+1].unit, unit_price: tree[i+1].unit_price }, lastIndex); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             t.children = jsonData.slice(jIndex1 + 1, jIndex2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            lastIndex = jIndex2; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             t.children = jsonData.slice(jIndex1 + 1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1375,10 +1377,6 @@ $(document).ready(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        console.log('hello'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        stopProgress($('#list-progress')); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        setTimeout(function () { $('#okedit').modal('hide') }, 2000); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        showSjsData(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     function transExcel(results) { 
			 |