|  | @@ -752,36 +752,36 @@ var gljOprObj = {
 | 
	
		
			
				|  |  |      getMixRationShowDatas: function (mixRatioList, projectGljs) {
 | 
	
		
			
				|  |  |          var temRationGLJs = [];
 | 
	
		
			
				|  |  |          for (var i = 0; i < mixRatioList.length; i++) {
 | 
	
		
			
				|  |  | -            var pg = _.find(projectGljs, {
 | 
	
		
			
				|  |  | -                'code': mixRatioList[i].code,
 | 
	
		
			
				|  |  | -                'name': mixRatioList[i].name,
 | 
	
		
			
				|  |  | -                'specs': mixRatioList[i].specs,
 | 
	
		
			
				|  |  | -                'type': mixRatioList[i].type,
 | 
	
		
			
				|  |  | -                'unit': mixRatioList[i].unit
 | 
	
		
			
				|  |  | +            let mIndex = gljOprObj.getIndex(mixRatioList[i],gljKeyArray);
 | 
	
		
			
				|  |  | +            var pg = _.find(projectGljs, function (item) {
 | 
	
		
			
				|  |  | +                return gljOprObj.getIndex(item,gljKeyArray) == mIndex
 | 
	
		
			
				|  |  |              });//改关联关系
 | 
	
		
			
				|  |  | -            var tem = {
 | 
	
		
			
				|  |  | -                projectGLJID: pg.id,
 | 
	
		
			
				|  |  | -                code: pg.code,
 | 
	
		
			
				|  |  | -                name: pg.name,
 | 
	
		
			
				|  |  | -                specs: pg.specs,
 | 
	
		
			
				|  |  | -                unit: pg.unit,
 | 
	
		
			
				|  |  | -                type:mixRatioList[i].type,
 | 
	
		
			
				|  |  | -                shortName: projectObj.project.projectGLJ.getShortNameByID(mixRatioList[i].type),
 | 
	
		
			
				|  |  | -                consumption:mixRatioList[i].consumption,
 | 
	
		
			
				|  |  | -                rationItemQuantity: mixRatioList[i].consumption,
 | 
	
		
			
				|  |  | -                // quantity:mixRatioList[i].consumption,
 | 
	
		
			
				|  |  | -              /*  basePrice: pg.unit_price.base_price,
 | 
	
		
			
				|  |  | -                marketPrice: pg.unit_price.market_price,
 | 
	
		
			
				|  |  | -                adjustPrice: pg.adjust_price,*/
 | 
	
		
			
				|  |  | -                //isEstimate: pg.is_evaluate,
 | 
	
		
			
				|  |  | -                isMixRatio: true,
 | 
	
		
			
				|  |  | -                isAdd: pg.unit_price.is_add,
 | 
	
		
			
				|  |  | -                GLJID: pg.glj_id
 | 
	
		
			
				|  |  | -            };
 | 
	
		
			
				|  |  | -            if(projectObj.project.projectGLJ.isEstimateType(pg.type)){
 | 
	
		
			
				|  |  | -                tem.isEstimate =  pg.is_evaluate;
 | 
	
		
			
				|  |  | +            if(pg){
 | 
	
		
			
				|  |  | +                var tem = {
 | 
	
		
			
				|  |  | +                    projectGLJID: pg.id,
 | 
	
		
			
				|  |  | +                    code: pg.code,
 | 
	
		
			
				|  |  | +                    name: pg.name,
 | 
	
		
			
				|  |  | +                    specs: pg.specs,
 | 
	
		
			
				|  |  | +                    unit: pg.unit,
 | 
	
		
			
				|  |  | +                    type:mixRatioList[i].type,
 | 
	
		
			
				|  |  | +                    shortName: projectObj.project.projectGLJ.getShortNameByID(mixRatioList[i].type),
 | 
	
		
			
				|  |  | +                    consumption:mixRatioList[i].consumption,
 | 
	
		
			
				|  |  | +                    rationItemQuantity: mixRatioList[i].consumption,
 | 
	
		
			
				|  |  | +                    // quantity:mixRatioList[i].consumption,
 | 
	
		
			
				|  |  | +                    /*  basePrice: pg.unit_price.base_price,
 | 
	
		
			
				|  |  | +                     marketPrice: pg.unit_price.market_price,
 | 
	
		
			
				|  |  | +                     adjustPrice: pg.adjust_price,*/
 | 
	
		
			
				|  |  | +                    //isEstimate: pg.is_evaluate,
 | 
	
		
			
				|  |  | +                    isMixRatio: true,
 | 
	
		
			
				|  |  | +                    isAdd: pg.unit_price.is_add,
 | 
	
		
			
				|  |  | +                    GLJID: pg.glj_id
 | 
	
		
			
				|  |  | +                };
 | 
	
		
			
				|  |  | +                if(projectObj.project.projectGLJ.isEstimateType(pg.type)){
 | 
	
		
			
				|  |  | +                    tem.isEstimate =  pg.is_evaluate;
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +                this.setGLJPrice(tem,pg);
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | -            this.setGLJPrice(tem,pg);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |              temRationGLJs.push(tem);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          temRationGLJs = _.sortBy(temRationGLJs, 'code');
 |