project_consts.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. };
  25. let projectConstList = [
  26. 'bills',
  27. 'ration',
  28. 'GLJ',
  29. 'ration_glj',
  30. 'ration_coe',
  31. 'ration_ass',
  32. 'quantity_detail',
  33. 'projectGLJ',
  34. 'GLJList',
  35. 'unitPriceFile',
  36. 'properties',
  37. // 'volume_price',
  38. 'feeRate',
  39. 'labour_coe',
  40. 'calc_program'
  41. ];
  42. let summaryConstList = [
  43. `Construct`,
  44. `ConstructDetail`,
  45. `Segment`,
  46. `SegmentDetail`
  47. ];
  48. let commonConst = {
  49. UT_UPDATE: 'ut_update',
  50. UT_CREATE: 'ut_create',
  51. UT_DELETE: 'ut_delete'
  52. };
  53. const gljKeyArray =['code','name','specs','unit','type'];
  54. const rationKeyArray =['code','name','specs','unit','subType'];
  55. const rationType = {
  56. ration: 1,
  57. volumePrice: 2,
  58. gljRation: 3,
  59. install:4
  60. };
  61. module.exports = {projectConst: projectConst, commonConst: commonConst, projectConstList: projectConstList,gljKeyArray:gljKeyArray,rationKeyArray:rationKeyArray,rationType:rationType, summaryConstList: summaryConstList};