main_consts.js 5.9 KB

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