project_consts.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. ];
  55. let projectFieldConstList = [
  56. `ProjectInfoFields`, //工程信息指标
  57. `ProjectFeatureFields`, //工程特征指标
  58. `ProjectCostFields`, //工程造价指标
  59. `ProjectEcoFields`, //工程(主要)经济指标
  60. `ProjectLabMaterialFields`, //主要工料指标
  61. `ProjectQtyFields` //主要工程量指标
  62. ];
  63. let commonConst = {
  64. UT_UPDATE: 'ut_update',
  65. UT_CREATE: 'ut_create',
  66. UT_DELETE: 'ut_delete'
  67. };
  68. const gljKeyArray =['code','name','specs','unit','type'];
  69. const rationKeyArray =['code','name','specs','unit','subType'];
  70. const rationType = {
  71. ration: 1,
  72. volumePrice: 2,
  73. gljRation: 3,
  74. install:4,
  75. overHeight: 5, // 超高子目
  76. itemIncrease: 6//子目增加
  77. };
  78. module.exports = {
  79. projectConst: projectConst,
  80. commonConst: commonConst,
  81. projectConstList: projectConstList,
  82. gljKeyArray:gljKeyArray,
  83. rationKeyArray:rationKeyArray,
  84. rationType:rationType,
  85. summaryConstList: summaryConstList,
  86. projectFieldConstList: projectFieldConstList
  87. };