project_consts.js 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. const { EQUIPMENT } = require("../../common/const/glj_type_const");
  2. /**
  3. * Created by jimiz on 2017/4/18.
  4. */
  5. let projectConst = {
  6. PROJECT: 'project',
  7. BILLS: 'bills',
  8. RATION: 'ration',
  9. GLJ: 'GLJ',
  10. RATION_GLJ:'ration_glj',
  11. RATION_COE:'ration_coe',
  12. RATION_ASS:'ration_ass',
  13. RATION_INSTALLATION:'ration_installation',
  14. RATION_TEMPLATE:'ration_template',
  15. QUANTITY_DETAIL:'quantity_detail',
  16. PROJECTGLJ: 'projectGLJ',
  17. GLJLIST: 'GLJList',
  18. UNITPRICEFILE: 'unitPriceFile',
  19. PROPERTIES: 'properties',
  20. // VOLUMEPRICE: 'volume_price',
  21. FEERATE:'feeRate',
  22. LABOUR_COE:'labour_coe',
  23. CALC_PROGRAM:'calc_program',
  24. INSTALLATION_FEE:'installation_fee',
  25. PROJECT_INFO: 'project_info',
  26. EVALUATE_LIST:'evaluate_list',
  27. CONTRACTOR_LIST:'contractor_list',
  28. BID_EVALUATION_LIST:'bid_evaluation_list',
  29. EQUIPMENT_PURCHASE:'equipment_purchase'
  30. };
  31. let projectConstList = [
  32. 'bills',
  33. 'ration',
  34. 'GLJ',
  35. 'ration_glj',
  36. 'ration_coe',
  37. 'ration_ass',
  38. 'quantity_detail',
  39. 'projectGLJ',
  40. 'GLJList',
  41. 'unitPriceFile',
  42. 'properties',
  43. // 'volume_price',
  44. 'feeRate',
  45. 'labour_coe',
  46. 'contractor_list',
  47. 'calc_program'
  48. ];
  49. let summaryConstList = [
  50. `Construct`,
  51. `ConstructDetail`,
  52. `Segment`,
  53. `SegmentDetail`,
  54. 'Budget',
  55. 'BudgetDetail',
  56. 'BudgetCalcType',
  57. 'BudgetCalcTypeDetail'
  58. ];
  59. let projectFieldConstList = [
  60. `ProjectInfoFields`, //工程信息指标
  61. `ProjectFeatureFields`, //工程特征指标
  62. `ProjectCostFields`, //工程造价指标
  63. `ProjectEcoFields`, //工程(主要)经济指标
  64. `ProjectLabMaterialFields`, //主要工料指标
  65. `ProjectQtyFields` //主要工程量指标
  66. ];
  67. let commonConst = {
  68. UT_UPDATE: 'ut_update',
  69. UT_CREATE: 'ut_create',
  70. UT_DELETE: 'ut_delete'
  71. };
  72. const gljKeyArray =['code','name','specs','unit','type'];
  73. const rationKeyArray =['code','name','specs','unit','subType'];
  74. const rationType = {
  75. ration: 1,
  76. volumePrice: 2,
  77. gljRation: 3,
  78. install:4,
  79. overHeight: 5, // 超高子目
  80. itemIncrease: 6//子目增加
  81. };
  82. module.exports = {
  83. projectConst: projectConst,
  84. commonConst: commonConst,
  85. projectConstList: projectConstList,
  86. gljKeyArray:gljKeyArray,
  87. rationKeyArray:rationKeyArray,
  88. rationType:rationType,
  89. summaryConstList: summaryConstList,
  90. projectFieldConstList: projectFieldConstList
  91. };