project_consts.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /**
  2. * Created by jimiz on 2017/4/18.
  3. */
  4. let projectConst = {
  5. PROJECT: 'project',
  6. BILLS: 'bills',
  7. RATION: 'ration',
  8. GLJ: 'GLJ',
  9. RATION_GLJ:'ration_glj',
  10. RATION_COE:'ration_coe',
  11. RATION_ASS:'ration_ass',
  12. RATION_INSTALLATION:'ration_installation',
  13. RATION_TEMPLATE:'ration_template',
  14. QUANTITY_DETAIL:'quantity_detail',
  15. PROJECTGLJ: 'projectGLJ',
  16. GLJLIST: 'GLJList',
  17. UNITPRICEFILE: 'unitPriceFile',
  18. PROPERTIES: 'properties',
  19. // VOLUMEPRICE: 'volume_price',
  20. FEERATE:'feeRate',
  21. LABOUR_COE:'labour_coe',
  22. CALC_PROGRAM:'calc_program',
  23. INSTALLATION_FEE:'installation_fee',
  24. PROJECT_INFO: 'project_info',
  25. EVALUATE_LIST:'evaluate_list',
  26. DIVIDE_SETTING:'divide_setting'
  27. };
  28. let projectConstList = [
  29. 'bills',
  30. 'ration',
  31. 'GLJ',
  32. 'ration_glj',
  33. 'ration_coe',
  34. 'ration_ass',
  35. 'quantity_detail',
  36. 'projectGLJ',
  37. 'GLJList',
  38. 'unitPriceFile',
  39. 'properties',
  40. // 'volume_price',
  41. 'feeRate',
  42. 'labour_coe',
  43. 'calc_program'
  44. ];
  45. let summaryConstList = [
  46. `Construct`,
  47. `ConstructDetail`,
  48. `Segment`,
  49. `SegmentDetail`
  50. ];
  51. let commonConst = {
  52. UT_UPDATE: 'ut_update',
  53. UT_CREATE: 'ut_create',
  54. UT_DELETE: 'ut_delete'
  55. };
  56. const gljKeyArray =['code','name','specs','unit','type'];
  57. const rationKeyArray =['code','name','specs','unit','subType'];
  58. const rationType = {
  59. ration: 1,
  60. volumePrice: 2,
  61. gljRation: 3,
  62. install:4
  63. };
  64. module.exports = {projectConst: projectConst, commonConst: commonConst, projectConstList: projectConstList,gljKeyArray:gljKeyArray,rationKeyArray:rationKeyArray,rationType:rationType, summaryConstList: summaryConstList};