|  | @@ -282,7 +282,6 @@ let repositoryGljObj = {
 | 
	
		
			
				|  |  |          //混凝土202、砂浆203、配合比204、机械3
 | 
	
		
			
				|  |  |          if(typeof info.oldSelections || info.oldSelections.length === 0 && info.newSelections.length > 0 || info.oldSelections[0].row !== info.newSelections[0].row){
 | 
	
		
			
				|  |  |              let row = info.newSelections[0].row;
 | 
	
		
			
				|  |  | -            that.isLocked = true;
 | 
	
		
			
				|  |  |              sheetOpr.cleanSheet(that.workBook.getSheet(0), that.setting, -1);
 | 
	
		
			
				|  |  |              me.workBook.focus(true);
 | 
	
		
			
				|  |  |              me.currentComponent = [];
 | 
	
	
		
			
				|  | @@ -291,7 +290,6 @@ let repositoryGljObj = {
 | 
	
		
			
				|  |  |                  //标记当前工料机
 | 
	
		
			
				|  |  |                  me.currentGlj = me.currentCache[row];
 | 
	
		
			
				|  |  |                  if(me.allowComponent.indexOf(me.currentCache[row].gljType) !== -1){
 | 
	
		
			
				|  |  | -                    that.isLocked = false;
 | 
	
		
			
				|  |  |                      //展示数据
 | 
	
		
			
				|  |  |                      if(me.currentGlj.component.length > 0){
 | 
	
		
			
				|  |  |                          me.currentComponent = me.getCurrentComponent(me.currentGlj.component);
 | 
	
	
		
			
				|  | @@ -438,7 +436,6 @@ let repositoryGljObj = {
 | 
	
		
			
				|  |  |                                      }
 | 
	
		
			
				|  |  |                                  }
 | 
	
		
			
				|  |  |                              sheetOpr.cleanData(that.workBook.getSheet(0), that.setting, 5);
 | 
	
		
			
				|  |  | -                            that.isLocked = me.allowComponent.indexOf(rObj.gljType) !== -1 ? false : true;
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  |                          else if(rObj.basePrice !== me.currentEditingGlj.basePrice){//修改了单价,可修改单价的必为可成为组成物的
 | 
	
		
			
				|  |  |                              //寻找所有引用了此组成物的工料机,并从组成物中删去此工料机,并重算单价
 | 
	
	
		
			
				|  | @@ -686,11 +683,12 @@ let repositoryGljObj = {
 | 
	
		
			
				|  |  |                              }
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  | -                    tempObj.gljType = me.distTypeTree.comboDatas[i].value;
 | 
	
		
			
				|  |  | -                    tempObj.shortName = me.distTypeTree.distTypes[me.distTypeTree.prefix + tempObj.gljType].data.shortName;
 | 
	
		
			
				|  |  | +                    tempObj.component = tempObj.gljType === me.distTypeTree.comboDatas[i].value ? tempObj.component : [];
 | 
	
		
			
				|  |  |                      if(me.allowComponent.indexOf(tempObj.gljType) !== -1){
 | 
	
		
			
				|  |  | -                        tempObj.basePrice = 0;
 | 
	
		
			
				|  |  | +                        tempObj.basePrice = tempObj.gljType === me.distTypeTree.comboDatas[i].value ? tempObj.basePrice : 0;
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  | +                    tempObj.gljType = me.distTypeTree.comboDatas[i].value;
 | 
	
		
			
				|  |  | +                    tempObj.shortName = me.distTypeTree.distTypes[me.distTypeTree.prefix + tempObj.gljType].data.shortName;
 | 
	
		
			
				|  |  |                      break;
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              }
 | 
	
	
		
			
				|  | @@ -971,6 +969,12 @@ let repositoryGljObj = {
 | 
	
		
			
				|  |  |                          me.currentCache = me.getCache();
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |                      me.showGljItems(me.complementaryGljList, me.gljCurTypeId);
 | 
	
		
			
				|  |  | +                    //getCurrentGlj
 | 
	
		
			
				|  |  | +                    let row = me.workBook.getSheet(0).getSelections()[0].row;
 | 
	
		
			
				|  |  | +                    me.currentGlj = row < me.currentCache.length ? me.currentCache[row] : null;
 | 
	
		
			
				|  |  | +                    me.currentComponent = me.currentGlj ?  me.getCurrentComponent(me.currentGlj.component) : [];
 | 
	
		
			
				|  |  | +                    sheetOpr.cleanData(gljComponentOprObj.workBook.getSheet(0), gljComponentOprObj.setting, -1);
 | 
	
		
			
				|  |  | +                    sheetOpr.showData(gljComponentOprObj.workBook.getSheet(0), gljComponentOprObj.setting, me.currentComponent);
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              },
 | 
	
		
			
				|  |  |              error:function(err){
 | 
	
	
		
			
				|  | @@ -1056,7 +1060,6 @@ let gljTypeTreeOprObj = {
 | 
	
		
			
				|  |  |              that = gljComponentOprObj,
 | 
	
		
			
				|  |  |              gljTypeId = treeNode.ID;
 | 
	
		
			
				|  |  |          me.gljCurTypeId = treeNode.ID;
 | 
	
		
			
				|  |  | -        that.isLocked = true;
 | 
	
		
			
				|  |  |          //消除新增到一半的数据
 | 
	
		
			
				|  |  |          me.addGljObj = null;
 | 
	
		
			
				|  |  |          //me.currentCache = me.getCache();
 |