| 
					
				 | 
			
			
				@@ -258,7 +258,10 @@ const gclCompareModel = (function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     function _getCalcChapter(chapter, option) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        const gclChapter = [], otherChapter = [], gclChapterFilter = []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        gclChapter = []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        otherChapter = []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        gclChapterFilter = []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         let serialNo = 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         for (const c of chapter) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             const cc = { code: c.code, name: c.name, cType: 1 }; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -268,21 +271,19 @@ const gclCompareModel = (function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         gclChapter.push({ name: '未计入章节清单合计', cType: 21, serialNo: serialNo++ }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        otherChapter.push({ name: '清单小计(A)', cType: 11, serialNo: serialNo++ }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        otherChapter.push({ name: '非清单项费用(B)', cType: 31, serialNo: serialNo++ }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        otherChapter.push({ name: '合计(C=A+B+Z)', cType: 41, serialNo: serialNo+5, deal_bills_tp: option.zlj.deal_bills_tp }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         gclChapterFilter.push({node_type: option.jrg.value}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         gclChapterFilter.push({field: 'name', part: option.jrg.text}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         const zlChapter = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            name: '暂列金额(Z)', cType: 32, serialNo: serialNo++, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            name: '暂列金额(Z)', cType: 32, serialNo: serialNo+4, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             deal_bills_tp: option.zlj.deal_bills_tp, match: [], matchPath: [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         zlChapter.match.push({node_type: option.zlj.value}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         zlChapter.match.push({field: 'name', part: option.zlj.text}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         otherChapter.push(zlChapter); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        otherChapter.push({ name: '合计(C=A+B+Z)', cType: 41, serialNo: serialNo }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        otherChapter.push({ name: '清单小计(A)', cType: 11, serialNo: serialNo+2 }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        otherChapter.push({ name: '非清单项费用(B)', cType: 31, serialNo: serialNo+3 }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     function _gatherChapterFields(chapter, data, fields) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -336,7 +337,7 @@ const gclCompareModel = (function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if (c.cType === 32 && _checkFilter(d, c.match)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     gatherfields(c, d, ledgerSetting.chapterFields, ledgerSetting.prefix); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     calcFilterPath.push(d.full_path); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    continue; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if (c.cType === 11 && (d.b_code)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     gatherfields(c, d, ledgerSetting.chapterFields, ledgerSetting.prefix); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -355,6 +356,7 @@ const gclCompareModel = (function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 gatherfields(c, d, ledgerSetting.chapterFields, ledgerSetting.prefix); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        otherChapter.sort((x, y) => {return x.serialNo - y.serialNo}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     function init (gclData, chapter, option) { 
			 |