main_consts.js 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. /**
  2. * Created by jimiz on 2017/4/19.
  3. */
  4. const ModuleNames = {
  5. bills: 'bills',
  6. ration: 'ration',
  7. GLJ: 'GLJ',
  8. feeRate: 'feeRate',
  9. projectGLJ: 'projectGLJ',
  10. ration_glj:'ration_glj',
  11. ration_coe:'ration_coe',
  12. ration_ass:'ration_ass',
  13. quantity_detail:'quantity_detail',
  14. labour_coe: 'labour_coe',
  15. calc_program: 'calc_program'
  16. };
  17. const gljType = {
  18. // 人工
  19. LABOUR: 1,
  20. // ==============材料类型=================
  21. // 普通材料
  22. GENERAL_MATERIAL: 201,
  23. // 混凝土
  24. CONCRETE: 202,
  25. // 砂浆
  26. MORTAR: 203,
  27. // 配合比
  28. MIX_RATIO: 204,
  29. // 商品混凝土
  30. COMMERCIAL_CONCRETE: 205,
  31. // 商品砂浆
  32. COMMERCIAL_MORTAR: 206,
  33. // ==============材料类型=================
  34. // ==============机械类型=================
  35. // 机械台班
  36. GENERAL_MACHINE: 301,
  37. // 机械组成物
  38. MACHINE_COMPOSITION: 302,
  39. // 机上人工
  40. MACHINE_LABOUR: 303,
  41. // ==============机械类型=================
  42. // 主材
  43. MAIN_MATERIAL: 4,
  44. // 设备
  45. EQUIPMENT: 5
  46. };
  47. // 计算基数 [定额基价材料费] 要用到的材料类型。
  48. const baseMaterialTypes = [
  49. gljType.GENERAL_MATERIAL,
  50. gljType.CONCRETE,
  51. gljType.MORTAR,
  52. gljType.MIX_RATIO,
  53. gljType.COMMERCIAL_CONCRETE,
  54. gljType.COMMERCIAL_MORTAR
  55. ];
  56. const baseMachineTypes = [
  57. gljType.GENERAL_MACHINE,
  58. gljType.MACHINE_COMPOSITION,
  59. gljType.MACHINE_LABOUR
  60. ];
  61. // 全部材料类型。用于暂估等 (多了主材和设备)
  62. const allMaterialTypes = [
  63. gljType.GENERAL_MATERIAL,
  64. gljType.CONCRETE,
  65. gljType.MORTAR,
  66. gljType.MIX_RATIO,
  67. gljType.COMMERCIAL_CONCRETE,
  68. gljType.COMMERCIAL_MORTAR,
  69. gljType.MAIN_MATERIAL,
  70. gljType.EQUIPMENT
  71. ];
  72. // 会有组成物的材料
  73. const compositionTypes = [
  74. gljType.MAIN_MATERIAL,
  75. gljType.CONCRETE,
  76. gljType.MORTAR,
  77. gljType.MIX_RATIO];
  78. const notEditType = [
  79. gljType.CONCRETE,
  80. gljType.MORTAR,
  81. gljType.MIX_RATIO,
  82. gljType.GENERAL_MACHINE,
  83. gljType.MAIN_MATERIAL
  84. ];
  85. const CP_Col_Width = { // 多处计算程序界面的列宽统一设置
  86. rowHeader: 30,
  87. colHeader: 30, // 这个是标题栏高度不是宽度,也写在一起
  88. code: 70,
  89. serialNo: 50,
  90. name: 200,
  91. dispExprUser: 180,
  92. feeRate: 60,
  93. displayFieldName: 120,
  94. statement: 380,
  95. memo: 110,
  96. unitFee: 90,
  97. totalFee: 90
  98. };
  99. const treeNodeCalcType = {
  100. ctRationCalcProgram: 1,
  101. ctBillCalcProgram: 2, // 汇总清单下所有定额的工料机
  102. ctGatherRationsFees: 3, // 汇总定额的各个费
  103. ctGatherBillsFees: 4, // 汇总清单的各个费
  104. ctCalcBaseValue: 5,
  105. ctNull: 6
  106. // ctCommonUnitFee: 6 // 树结点的手工输入综合单价的方式已废弃,现综合单价只读,引入市场单价。
  107. };
  108. const calcAllType = {
  109. catAll: 'all',
  110. catBills: 'bills',
  111. catRations: 'ration'
  112. };
  113. const priceTypes = {
  114. ptBasePrice: 1,
  115. ptAdjustPrice: 2,
  116. ptMarketPrice: 3,
  117. ptDiffPrice: 4
  118. };
  119. const subSheetIndex = {
  120. ssiRationGLJ: 0,
  121. ssiRationCoe: 1,
  122. ssiRationAssistant: 2,
  123. ssiQuantityDetail: 3,
  124. ssiCalcProgram: 4,
  125. ssiMemo: 5,
  126. ssiFeature: 6
  127. };
  128. const volumePriceMaps = {
  129. "量人": gljType.LABOUR,
  130. "量材": gljType.GENERAL_MATERIAL,
  131. "量机": gljType.GENERAL_MACHINE,
  132. "量主": gljType.MAIN_MATERIAL,
  133. "量设": gljType.EQUIPMENT,
  134. "人工": gljType.LABOUR,
  135. "材料": gljType.GENERAL_MATERIAL,
  136. "机械": gljType.GENERAL_MACHINE,
  137. "主材": gljType.MAIN_MATERIAL,
  138. "设备": gljType.EQUIPMENT,
  139. 1: "量人",
  140. 201: "量材",
  141. 301: "量机",
  142. 4: "量主",
  143. 5: "量设"
  144. };
  145. const rationType = {
  146. ration: 1,
  147. volumePrice: 2,
  148. gljRation: 3
  149. };
  150. const leafBillGetFeeType = {
  151. rationContent: 0,
  152. rationPriceConverse: 1,
  153. rationPrice: 2,
  154. billsPrice: 3
  155. };
  156. const zanguCalcType = {
  157. common: 0,
  158. gatherMaterial: 1
  159. };
  160. //清单固定行
  161. const fixedFlag = {
  162. // 分部分项工程
  163. SUB_ENGINERRING: 1,
  164. // 措施项目
  165. MEASURE: 2,
  166. // 施工技术措施项目
  167. CONSTRUCTION_TECH: 3,
  168. // 安全文明施工按实计算费用
  169. SAFETY_CONSTRUCTION_ACTUAL: 4,
  170. // 施工组织措施专项费用
  171. CONSTRUCTION_ORGANIZATION: 5,
  172. // 安全文明施工专项费用
  173. SAFETY_CONSTRUCTION: 6,
  174. // 其他项目
  175. OTHER: 7,
  176. // 暂列金额
  177. PROVISIONAL: 8,
  178. // 暂估价
  179. ESTIMATE: 9,
  180. // 材料(工程设备)暂估价
  181. MATERIAL_PROVISIONAL: 10,
  182. // 专业工程暂估价
  183. ENGINEERING_ESITIMATE: 11,
  184. // 计日工
  185. DAYWORK: 12,
  186. // 总承包服务费
  187. TURN_KEY_CONTRACT: 13,
  188. // 索赔与现场签证
  189. CLAIM_VISA: 14,
  190. // 规费
  191. CHARGE: 15,
  192. // 社会保险费及住房公积金 Social insurance fee and housing accumulation fund
  193. SOCIAL_INSURANCE_HOUSING_FUND: 16,
  194. // 工程排污费 charges for disposing pollutants
  195. POLLUTANTS: 17,
  196. // 税金
  197. TAX: 18,
  198. //工程造价
  199. ENGINEERINGCOST: 19
  200. };
  201. const gljKeyArray =['code','name','specs','unit','type'];
  202. const rationKeyArray =['code','name','specs','unit','subType'];
  203. const gljLibKeyArray =['code', 'name', 'specs', 'unit', 'gljType'];
  204. const billType ={
  205. DXFY:1,//大项费用
  206. FB:2,//分部
  207. FX:3,//分项
  208. BILL:4//清单
  209. };
  210. const billText = {
  211. 1:'费用',
  212. 2:'分部',
  213. 3:'分项',
  214. 4:'清单'
  215. };
  216. const cpFeeTypes = [
  217. {type: 'direct', name: '直接费'},
  218. {type: 'labour', name: '人工费'},
  219. {type: 'material', name: '材料费'},
  220. {type: 'machine', name: '机械费'},
  221. {type: 'mainMaterial', name: '主材费'},
  222. {type: 'equipment', name: '设备费'},
  223. {type: 'manage', name: '企业管理费'},
  224. {type: 'profit', name: '利润'},
  225. {type: 'risk', name: '风险费'},
  226. {type: 'labourDiff', name: '人工价差'},
  227. {type: 'materialDiff', name: '材料价差'},
  228. {type: 'machineDiff', name: '机械价差'},
  229. {type: 'adjustLabour', name: '调整人工费'},
  230. {type: 'adjustMachineLabour', name: '调整机上人工费'},
  231. {type: 'estimate', name: '暂估费'},
  232. {type: 'common', name: '工程造价'}
  233. ];