| 
					
				 | 
			
			
				@@ -34,7 +34,7 @@ $(function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         {title: '单位', colSpan: '1', rowSpan: '2', field: 'unit', hAlign: 1, width: 50, formatter: '@', readOnly: true}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         {title: '经济指标', colSpan: '1', rowSpan: '2', field: 'dgn_price', hAlign: 2, width: 60, type: 'Number', readOnly: true}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         {title: '总设计|工程量', colSpan: '2|1', rowSpan: '1|1', field: 'dgn_qty1', hAlign: 2, width: 70, type: 'Number', readOnly: true}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        {title: '|金额(万元)', colSpan: '|1', rowSpan: '|1', field: 'total_price', hAlign: 2, width: 70, type: 'Number', readOnly: true}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        {title: '|金额(元)', colSpan: '|1', rowSpan: '|1', field: 'total_price', hAlign: 2, width: 70, type: 'Number', readOnly: true}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     ]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     const ledgerSpreadSetting = { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -54,10 +54,10 @@ $(function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     const calcCols = ['total_price']; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if(scheduleMonth.length > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         for (const sm of scheduleMonth) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            const readOnly = sm.stage_used !== 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            const readOnly = sm.stage_gcl_used !== 0 || sm.stage_tp_used !== 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             const yearmonth = sm.yearmonth.split('-')[0] + '年' + parseInt(sm.yearmonth.split('-')[1]) + '月'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             const cols = {title: yearmonth + '|计划工程量', colSpan: '2|1', rowSpan: '1|1', field: sm.yearmonth+'_gcl', hAlign: 2, width: 90, type: 'Number', readOnly: readOnly ? readOnly : 'readOnly.gcl'}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            const cols2 = {title: '|计划金额(万元)', colSpan: '|1', rowSpan: '|1', field: sm.yearmonth+'_tp', hAlign: 2, width: 90, type: 'Number', readOnly: readOnly ? readOnly : 'readOnly.tp'}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            const cols2 = {title: '|计划金额(元)', colSpan: '|1', rowSpan: '|1', field: sm.yearmonth+'_tp', hAlign: 2, width: 90, type: 'Number', readOnly: readOnly ? readOnly : 'readOnly.tp'}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             monthsCols.push(cols); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             monthsCols.push(cols2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // calcCols.push(sm.yearmonth+'_gcl'); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -112,6 +112,7 @@ $(function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // calcList.push(m + '_tp'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // calcList.push(m + '_gcl'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        console.log(showList); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         const baseLedgerTree = createNewPathTree('base', { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             id: 'ledger_id', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             pid: 'ledger_pid', 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -138,10 +139,10 @@ $(function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        console.log(ledgerTree); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // console.log(ledgerTree); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ledgerTree.sortTreeNode(true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         treeCalc.calculateAll(ledgerTree); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        // console.log(ledgerTree); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        console.log(ledgerTree); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         SpreadJsObj.loadSheetData(ledgerSpread.getActiveSheet(), SpreadJsObj.DataType.Tree, ledgerTree); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, null, true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |