project_consts.js 2.4 KB

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