| 
					
				 | 
			
			
				@@ -23,6 +23,29 @@ const RELATION_TABLES_KEYS = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     ledger: { main_key: 'id', isTree: true, tree_pid: 'ledger_pid', tree_id: 'ledger_id', foreign_key: { tender: 'tender_id' } }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const change_CONST = require('../../const/change'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const TRANSLATE_CONST = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    '变更令常量': { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        '变更类型': { keys: [], values: [] }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        '变更类别': { keys: [], values: [] }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        '变更性质': { keys: [], values: [] }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        '费用承担方' : { keys: [], values: [] }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+function _iniConstProperties(constName, constDtlName, destConstProp) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    for (const propKey in destConstProp) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // TRANSLATE_CONST[constName][constDtlName]['_' + destConstProp[propKey].value] = destConstProp[propKey].name; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        TRANSLATE_CONST[constName][constDtlName].keys.push(destConstProp[propKey].value); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        TRANSLATE_CONST[constName][constDtlName].values.push(destConstProp[propKey].name); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+_iniConstProperties('变更令常量', '变更类型', change_CONST.type); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+_iniConstProperties('变更令常量', '变更类别', change_CONST.class); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+_iniConstProperties('变更令常量', '变更性质', change_CONST.quality); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+_iniConstProperties('变更令常量', '费用承担方', change_CONST.charge); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 class Rpt_Common { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     initialize(rpt_tpl, currentDataObj) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.template = rpt_tpl; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -773,6 +796,7 @@ function setupFunc(obj, ownRawObj, baseDir) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     obj.getPreferPrecisionProperty = ext_getPreferPrecisionProperty; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     obj.getArrayProperty = ext_getArrayValues; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     obj.getBlank = ext_getBlank; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    obj.translateConst = ext_translateConst; // 计量有些指标需要这样子来转换类型名称(即通过id得到名字) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 function assembleFields(fieldList, rstDataArr, $PROJECT) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1023,6 +1047,21 @@ function ext_getBlank(dataKey, dftVal) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     return rst; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+function ext_translateConst(constName, constDtlName, destConstKeyValArr) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    const rst = []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    if (destConstKeyValArr instanceof Array && TRANSLATE_CONST[constName] && TRANSLATE_CONST[constName][constDtlName]) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        for (const keyV of destConstKeyValArr) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            const idx = TRANSLATE_CONST[constName][constDtlName].keys.indexOf(keyV); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (idx >= 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                rst.push(TRANSLATE_CONST[constName][constDtlName].values[idx]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                rst.push(null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    return rst; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 function ext_getPropertyByForeignId(foreignIdVal, adHocIdKey, propKey, dftValIfNotFound) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     const rst = []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 计量需要重写 
			 |