|  | @@ -90,14 +90,16 @@ async function copyInstallationFeeFromLib(projectID,engineering_id) {
 | 
	
		
			
				|  |  |      let ration_lib = engineering.ration_lib;
 | 
	
		
			
				|  |  |      let installationFeeList = [];
 | 
	
		
			
				|  |  |      for(let rl of ration_lib){
 | 
	
		
			
				|  |  | -        let newInstallationFee = await getInstallationFeeFromLib(rl.id);
 | 
	
		
			
				|  |  | -        if(newInstallationFee){
 | 
	
		
			
				|  |  | -            newInstallationFee.libID = rl.id;
 | 
	
		
			
				|  |  | -            newInstallationFee.libName = rl.name;
 | 
	
		
			
				|  |  | -            newInstallationFee.projectID = projectID;
 | 
	
		
			
				|  |  | -            newInstallationFee.ID = uuidV1();
 | 
	
		
			
				|  |  | -            installationFeeList.push(newInstallationFee);
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | +        if(rl.isDefault === true){//取默认的定额库ID;
 | 
	
		
			
				|  |  | +            let newInstallationFee = await getInstallationFeeFromLib(rl.id);
 | 
	
		
			
				|  |  | +            if(newInstallationFee){  
 | 
	
		
			
				|  |  | +                newInstallationFee.libID = rl.id;
 | 
	
		
			
				|  |  | +                newInstallationFee.libName = rl.name;
 | 
	
		
			
				|  |  | +                newInstallationFee.projectID = projectID;
 | 
	
		
			
				|  |  | +                newInstallationFee.ID = uuidV1();
 | 
	
		
			
				|  |  | +                installationFeeList.push(newInstallationFee);
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        } 
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |      if(installationFeeList.length > 0){
 | 
	
		
			
				|  |  |          await installationFeeModel.insertMany(installationFeeList);
 |