| 
					
				 | 
			
			
				@@ -5,20 +5,22 @@ let installationFeeObj={ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     rationInstallSheet:null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     rationInstallData:null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     rationInstallSetting:{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-   /*     header: [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            {headerName: "分册章节", headerWidth: 150, dataCode: "name", dataType: "String"}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            {headerName: "费用规则", headerWidth: 220, dataCode: "rule", hAlign: "left", dataType: "String",getText:'forRule'}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        header: [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            {headerName: "按统一设置", headerWidth: 80, dataCode: "unifiedSetting", dataType: "String",cellType: "checkBox"}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            {headerName: "费用项", headerWidth: 160, dataCode: "itemName", dataType: "String"}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            {headerName: "费用规则", headerWidth: 300, dataCode: "rule", hAlign: "left", dataType: "String"/*,getText:'forRule'*/}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             {headerName: "编码", headerWidth: 70, dataCode: "code", hAlign: "left", dataType: "String"}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            {headerName: "基数", headerWidth: 80, dataCode: "base", hAlign: "left", dataType: "String",cellType:'comboBox',options:installSectionBase}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            {headerName: "基数", headerWidth: 150, dataCode: "base", hAlign: "left", dataType: "String",cellType:'comboBox',options:installSectionBase}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             {headerName: "费率(%)", headerWidth: 80, dataCode: "feeRate", hAlign: "right", dataType: "String"}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             {headerName: "其中人工(%)", headerWidth: 100, dataCode: "labour", hAlign: "right", dataType: "String"}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             {headerName: "其中材料(%)", headerWidth: 100, dataCode: "material", hAlign: "right", dataType: "String"}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             {headerName: "其中机械(%)", headerWidth: 100, dataCode: "machine", hAlign: "right", dataType: "String"}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            {headerName: "费用类型", headerWidth: 100, dataCode: "feeType", hAlign: "center", dataType: "String",cellType:'comboBox',options:installFeeType}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             {headerName: "记取位置", headerWidth: 100, dataCode: "position", hAlign: "left", dataType: "String",cellType:'selectButton'} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         view: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             lockColumns: [0, 2] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     feeItemSpread:null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     feeItemSheet:null, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -209,8 +211,6 @@ let installationFeeObj={ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        this.feeDetailSheet.setRowCount(0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     onFeeItemSelectionChange:function (e, info) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        console.log('fee item selection change'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        console.log(info); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         let me = installationFeeObj; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         let newSelections = info.newSelections; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         let row = newSelections[0].row; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -229,7 +229,6 @@ let installationFeeObj={ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 me.showFeeDetailData(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-       // me.feeItemSheet.repaint(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     onFeeDetailSelectionChange:function (e,info) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         console.log('detail selection change'); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -323,6 +322,16 @@ let installationFeeObj={ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.moreFeeRuleSheet.setRowCount(this.moreFeeRuleData.length); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.moreFeeRuleSheet.clearSelection(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    showRationInstallationData:function (node) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        var installationList = []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        var ration_installation = projectObj.project.ration_installation; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        var ration = node.data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (ration_installation.datas && ration_installation.datas.length > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            installationList = _.filter(ration_installation.datas, {'projectID': ration.projectID, 'rationID': ration.ID}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.rationInstallData = installationList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        sheetCommonObj.showData(this.rationInstallSheet, this.rationInstallSetting,this.rationInstallData); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     refreshFeeDetailRow:function (row) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         let detail = this.feeDetailData[row]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         let section = projectObj.project.installation_fee.getInstallSectionByID(detail.libID,detail.ID); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -369,7 +378,7 @@ let installationFeeObj={ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             feeItemShowArray.push(tem_Lib); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if(d.installFeeItem && d.installFeeItem.length > 0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 for(let t_if of d.installFeeItem){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    t_if.installFeeID = d.ID, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    t_if.installFeeID = d.ID; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     t_if.libID = d.libID; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     t_if.isMixRatio = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     t_if.displayPosition = this.getDisplayText(t_if); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -385,7 +394,6 @@ let installationFeeObj={ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if(node){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 return node.data.code +" "+node.data.name; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return  item.position; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -406,6 +414,8 @@ let installationFeeObj={ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         let feeRules =  projectObj.project.installation_fee.getFeeRuleByFeeItem(feeItem); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return feeRules; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     getDetailRowDataBySection(is,libID){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         let me = this; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         let tem_detail = { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -453,6 +463,11 @@ let installationFeeObj={ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.moreFeeRuleSheet.selectionUnit(1);//0 cell,1 row,2 col; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.moreFeeRuleSheet.name('moreFeeRuleSheet'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    initRationInstallSheet:function (sheet) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.rationInstallSheet = sheet; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.initSheet( this.rationInstallSheet,this.rationInstallSetting); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.rationInstallSheet.name("rationInstallSheet"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     onFeeRuleDoubleClick:function (e,info) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if(info.row!=undefined||info!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             installationFeeObj.updateFeeRuleToSection(info.row); 
			 |