chongqing_2018.js 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. /**
  2. * Created by zhang on 2018/8/14.
  3. */
  4. if(typeof projectGljObject !== 'undefined'){
  5. projectGljObject.displayTypeMap=[
  6. {ID:'LABOUR',text:'人工'},
  7. {ID:'GENERAL_MATERIAL',text:'材料'},
  8. {ID:'GENERAL_MACHINE',text:'施工机具'},//重庆2018定额中去掉了主材,机械的显示改为了施工机具
  9. {ID:'MAIN_MATERIAL',text:'主材'}
  10. ];
  11. }
  12. if(typeof gljUtil !== 'undefined'){
  13. gljUtil.hasCompMachine = [301,304];//有组成物的机械
  14. gljUtil.machineComposition = [303,305,306,307,308,309,310,311];//可以做为机械组成物的类型
  15. }
  16. //允许使用的工料机类型:人工、普通材料、混凝土、砂浆、配合比、商品混凝土、商品砂浆、其他材料费、机械台班、机上人工、仪器仪表、燃料动力费、折旧费、
  17. // 检修费、维护费、安拆费及场外运费、校验费、其他费用、主材、企业管理费、利润、一般风险费
  18. if(typeof allowGljType !== 'undefined'){
  19. allowGljType = [1, 201, 202, 203, 204, 205, 206, 207, 301, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 4, 6, 7, 8];
  20. }
  21. if(typeof allowComponent !== 'undefined'){
  22. //允许含有组成物的工料机类型:混凝土、砂浆、配合比、机械台班、仪器仪表、主材
  23. allowComponent = [202, 203, 204, 301, 304, 4];
  24. }
  25. if(typeof componentType !== 'undefined'){
  26. //可以作为组成物的工料机类型:普通材料、机上人工、燃料动力费、折旧费、检修费、维护费、安拆费及场外运费、校验费、其他费用、主材
  27. componentType = [201, 303, 305, 306, 307, 308, 309, 310, 311, 4];
  28. }
  29. if(typeof machineAllowComponent !== 'undefined'){
  30. //允许含有组成物的机械工料机类型:机械台班、仪器仪表
  31. machineAllowComponent = [301, 304];
  32. }
  33. if(typeof machineComponent !== 'undefined'){
  34. //可以作为机械工料机组成物的工料机类型:机械组成物、机上人工、燃料动力费、折旧费、检修费、维护费、安拆费及场外运费、校验费、其他费用
  35. machineComponent = [303, 305, 306, 307, 308, 309, 310, 311];
  36. }
  37. if(typeof materialAllowComponent !== 'undefined'){
  38. //允许含有组成物的材料工料机类型:混凝土、砂浆、配合比
  39. materialAllowComponent = [202, 203, 204];
  40. }
  41. if(typeof materialComponent !== 'undefined'){
  42. //可以作为材料工料机组成物的工料机类型:普通材料
  43. materialComponent = [201];
  44. }
  45. // CSL, 2018-08-21 计算程序、基数 的覆盖。
  46. if (rationCalcBases){
  47. changePropNames(rationCalcBases,
  48. ['定额基价人工费', '定额基价材料费', '甲供定额基价人工费', '甲供定额基价材料费', '甲定定额基价人工费', '甲定定额基价材料费', '分包定额基价人工费','分包定额基价材料费'],
  49. ['定额人工费', '定额材料费', '甲供定额人工费', '甲供定额材料费', '甲定定额人工费', '甲定定额材料费', '分包定额人工费','分包定额材料费']);
  50. deletePropNames(rationCalcBases, [
  51. '定额基价机械费', '定额基价机上人工费', '机械费价差', '主材费价差', '设备费价差','甲供定额基价机械费','甲定定额基价机械费',
  52. '设备费', '甲供设备费', '甲定设备费', '分包设备费', '分包定额基价机械费']);
  53. rationCalcBases['定额其他材料费'] = function () {
  54. return 0;
  55. };
  56. rationCalcBases['定额施工机具使用费'] = function () {
  57. return 0;
  58. };
  59. rationCalcBases['人工费价差'] = function () {
  60. return 0;
  61. };
  62. rationCalcBases['材料费价差'] = function () {
  63. return 0;
  64. };
  65. rationCalcBases['计价材料价差'] = function () {
  66. return 0;
  67. };
  68. rationCalcBases['机上人工费价差'] = function () {
  69. return 0;
  70. };
  71. rationCalcBases['机械燃料动力费价差'] = function () {
  72. return 0;
  73. };
  74. rationCalcBases['机械折旧费'] = function () {
  75. return 0;
  76. };
  77. rationCalcBases['特大机械检修费'] = function () {
  78. return 0;
  79. };
  80. rationCalcBases['中小机械检修费'] = function () {
  81. return 0;
  82. };
  83. rationCalcBases['特大机械维护费'] = function () {
  84. return 0;
  85. };
  86. rationCalcBases['中小机械维护费'] = function () {
  87. return 0;
  88. };
  89. rationCalcBases['机械安拆费及场外运输费'] = function () {
  90. return 0;
  91. };
  92. rationCalcBases['机械燃料动力费'] = function () {
  93. return 0;
  94. };
  95. rationCalcBases['定额仪器仪表费'] = function () {
  96. return 0;
  97. };
  98. rationCalcBases['定额其他施工机具使用费'] = function () {
  99. return 0;
  100. };
  101. rationCalcBases['甲供定额施工机具费'] = function () {
  102. return 0;
  103. };
  104. rationCalcBases['分包定额施工机具费'] = function () {
  105. return 0;
  106. };
  107. rationCalcBases['甲定定额施工机具费'] = function () {
  108. return 0;
  109. };
  110. }
  111. else {
  112. let s = '加载超前,覆盖失败!';
  113. console.log(s);
  114. alert(s);
  115. }