| 
					
				 | 
			
			
				@@ -1511,9 +1511,9 @@ module.exports = app => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             for (const tc of this.pmDeal.tree_contracts) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                tc.children = this.pmDeal.tree_contracts.filter(x => { return x.ParentId === tc.TreeId}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                tc.children = this.pmDeal.tree_contracts.filter(x => { return x.ParentId === tc.TreeId && x.TreeType === tc.TreeType}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            const root = this.pmDeal.tree_contracts.filter(x => { return x.Depth === 0}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            const root = this.pmDeal.tree_contracts.filter(x => { return x.Depth === 0; }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             root.sort((x, y) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 const type = x.TreeType - y.TreeType; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 return type ? type : x.Serail - y.Serail; 
			 |