|
@@ -9,6 +9,36 @@
|
|
|
*/
|
|
|
let isGD2018 = true;
|
|
|
|
|
|
+//允许使用的工料机类型:人工、普通材料、其他材料费、混凝土、砂浆、配合比、商品混凝土、商品砂浆
|
|
|
+//机械台班、机上人工、机械组成物、主材、设备、企业管理费
|
|
|
+if(typeof allowGljType !== 'undefined'){
|
|
|
+ allowGljType = [1, 201, 202, 203, 204, 205, 206, 207, 301, 302, 303, 4,5, 6];
|
|
|
+}
|
|
|
+if(typeof allowComponent !== 'undefined'){
|
|
|
+ //允许含有组成物的工料机类型:混凝土、砂浆、配合比、机械台班、主材
|
|
|
+ allowComponent = [202, 203, 204, 301, 4];
|
|
|
+}
|
|
|
+if(typeof componentType !== 'undefined'){
|
|
|
+ //可以作为组成物的工料机类型:普通材料、机械组成物、机上人工、主材
|
|
|
+ componentType = [201, 302, 303, 4];
|
|
|
+}
|
|
|
+if(typeof machineAllowComponent !== 'undefined'){
|
|
|
+ //允许含有组成物的机械工料机类型:机械台班器仪表
|
|
|
+ machineAllowComponent = [301];
|
|
|
+}
|
|
|
+if(typeof machineComponent !== 'undefined'){
|
|
|
+ //可以作为机械工料机组成物的工料机类型:机械组成物、机上人工
|
|
|
+ machineComponent = [302, 303];
|
|
|
+}
|
|
|
+if(typeof materialAllowComponent !== 'undefined'){
|
|
|
+ //允许含有组成物的材料工料机类型:混凝土、砂浆、配合比
|
|
|
+ materialAllowComponent = [202, 203, 204];
|
|
|
+}
|
|
|
+if(typeof materialComponent !== 'undefined'){
|
|
|
+ //可以作为材料工料机组成物的工料机类型:普通材料
|
|
|
+ materialComponent = [201];
|
|
|
+}
|
|
|
+
|
|
|
function overwriteRationCalcBases (){
|
|
|
if (typeof rationCalcBases == 'undefined') return;
|
|
|
for (let key in rationCalcBases) delete rationCalcBases[key];
|