project_consts.js 1.6 KB

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