project_consts.js 1.6 KB

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