| 
					
				 | 
			
			
				@@ -28,8 +28,7 @@ import { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     projectFeature, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     displaySetting, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     calcOptions, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    tenderSetting, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    G_FILE_VER 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    tenderSetting 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } from './project_property_template'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import optionSetting from '../../options/models/optionTypes'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const { fixedFlag } = require('../../../public/common_constants'); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -48,6 +47,7 @@ let pmFacade = require('../facade/pm_facade'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 let logger = require("../../../logs/log_helper").logger; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 let BillsModel = require("../../main/models/bills").model; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 let _ = require('lodash'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+let index = require("../../system_setting/model/index"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 let Projects = mongoose.model('projects'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 let mainColLibModel = mongoose.model('std_main_col_lib'); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -57,8 +57,6 @@ let optionModel = mongoose.model('options'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 function ProjectsDAO() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//let G_FILE_VER = '1.0.1'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ProjectsDAO.prototype.getUserProjects = async function (userId, compilation, callback) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     try {// 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         let projects = await Projects.find({ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -135,7 +133,7 @@ ProjectsDAO.prototype.updateUserProjects = async function (userId, compilationId 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 data.updateData['userID'] = userId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 data.updateData['compilation'] = compilationId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 data.updateData['createDateTime'] = new Date(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                data.updateData['fileVer'] = G_FILE_VER; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                data.updateData['fileVer'] = await index.getVersion(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 /*if(data.updateData.projType === projectType.project){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     //设置建设项目基本信息,多个单位工程共用 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     data.updateData.property = {basicInformation: basicInformation}; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -379,7 +377,7 @@ ProjectsDAO.prototype.copyUserProjects = function (userId, compilationId, datas, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 data.updateData['userID'] = userId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 data.updateData['compilation'] = compilationId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 data.updateData['createDateTime'] = new Date(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                data.updateData['fileVer'] = G_FILE_VER; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                data.updateData['fileVer'] = index.getVersion(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 let newProject = new Projects(data.updateData); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 newProject['srcProjectId'] = data.srcProjectId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 newProject.save(function (err, result) { 
			 |