| 
					
				 | 
			
			
				@@ -686,6 +686,11 @@ var gljOprObj = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 this.showRationAssData(node); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 isShow = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if(node.sourceType == ModuleNames.ration_glj){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                isShow = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.showQuantityDetailData(node); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.selectedNodeId = null; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -700,6 +705,29 @@ var gljOprObj = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //   $('#dropdown').hide(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    showMixRatio:function (node) {//显示组成物到定额工料机 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        let mixRatioMap = projectObj.project.projectGLJ.datas.mixRatioMap; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        let projectGljs = projectObj.project.projectGLJ.datas.gljList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        let indexArray =node.getSourceType()==ModuleNames.ration?rationKeyArray:gljKeyArray; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        let connect_index = this.getIndex(node.data,indexArray); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        let gljList=[]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if(mixRatioMap[connect_index]){ //说明是有组成物的类型 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            gljList =  this.getMixRationShowDatas(mixRatioMap[connect_index], projectGljs); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if(gljList.length>0){//计算总消耗量 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if(node.getSourceType()==ModuleNames.ration){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.calcMixRationTotalQuantity(gljList,node.data.quantity); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               let totalQuantity = this.getTotalQuantity(node.data); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               this.calcMixRationTotalQuantity(gljList,totalQuantity) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.sheetData = gljList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.sheet.setRowCount(0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.sheetData = sortRationGLJ(this.sheetData); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        sheetCommonObj.showData(this.sheet, this.setting, this.sheetData); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     showRationGLJData: function (node) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         var gljList = []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         var ration_glj = projectObj.project.ration_glj; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -775,14 +803,18 @@ var gljOprObj = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             glj.quantity = scMathUtil.roundForObj(glj.quantity, getDecimal("glj.quantity")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             glj.totalQuantity = scMathUtil.roundToString(quantity * glj.quantity, getDecimal("glj.quantity")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (glj.hasOwnProperty('subList')) {//需要计算glj下挂的组成物的总消耗量 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                for (let subG of glj.subList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    subG.rationItemQuantity = scMathUtil.roundForObj(subG.rationItemQuantity, getDecimal("glj.quantity")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    subG.totalQuantity = scMathUtil.roundToString(subG.rationItemQuantity * glj.totalQuantity, getDecimal("glj.quantity")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.calcMixRationTotalQuantity(glj.subList,glj.totalQuantity); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return  glj.totalQuantity; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    calcMixRationTotalQuantity(mList,pTotal){ //计算组成物的总消耗量 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        for (let subG of mList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            subG.rationItemQuantity = scMathUtil.roundForObj(subG.rationItemQuantity, getDecimal("glj.quantity")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            subG.totalQuantity = scMathUtil.roundToString(subG.rationItemQuantity * pTotal, getDecimal("glj.quantity")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     addMixRatioToShow: function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         var newList = []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         _.remove(this.sheetData, {'isMixRatio': true}); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -808,7 +840,7 @@ var gljOprObj = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     ration_gljs[i].isAdd = glj.unit_price.is_add; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     ration_gljs[i]=this.setGLJPrice(ration_gljs[i],glj);//设置工料机价格 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    var connect_index = this.getIndex(glj, gljKeyArray) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    var connect_index = this.getIndex(glj, gljKeyArray); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     if (mixRatioMap.hasOwnProperty(connect_index)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         var mixRatios = this.getMixRationShowDatas(mixRatioMap[connect_index], projectGljs); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         ration_gljs[i].subList = mixRatios; 
			 |