tender.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. 'use strict';
  2. /**
  3. * 标段相关常量
  4. *
  5. * @author CaiAoLin
  6. * @date 2018/2/5
  7. * @version
  8. */
  9. // 标段状态
  10. const status = {
  11. APPROVAL: 1,
  12. };
  13. const statusString = [];
  14. statusString[status.APPROVAL] = '审批中';
  15. // 标段类型
  16. const type = {
  17. TJ: 1,
  18. XX: 2,
  19. YY: 3
  20. };
  21. const infoTableCol = [
  22. { title: '名称', field: 'name', folderCell: true, },
  23. { title: '计量期数', field: 'stageCount', },
  24. { title: '审批状态', field: '', },
  25. { title: '0号台账合同', field: '', },
  26. { title: '本期完成', field: '', },
  27. { title: '截止本期合同', field: '', },
  28. { title: '截止本期变更', field: '', },
  29. { title: '截止本期完成', field: '', },
  30. { title: '截止上期完成', field: '', },
  31. { title: '本期应付', field: '', },
  32. ];
  33. const progressTableCol = [
  34. { title: '名称', field: 'name', folderCell: true, },
  35. { title: '完成期数', field: '', },
  36. { title: '累计合同计量', field: '', },
  37. { title: '截止本期累计完成/本期完成/未完成', field: '', },
  38. ];
  39. const manageTableCol = [
  40. { title: '名称', field: 'name', folderCell: true, },
  41. { title: '完成期数', field: 'stage', },
  42. { title: '管理', field: 'manage', },
  43. ];
  44. const measureType = {
  45. tz: {
  46. value: 1, name: '0号台账模式', title: ' 0号台账', hint: ' 要求以台账为计量根本,必须先有完整台账才能持续计量。',
  47. },
  48. gcl: {
  49. value: 2, name: '工程量清单模式', title: ' 工程量清单', hint: ' 仅需要工程量清单,详细台账在计量过程中逐步添加,最终组成完整台账。',
  50. },
  51. };
  52. const valuationField = function (mt) {
  53. switch (mt) {
  54. case measureType.tz.value:
  55. return { std_bills: 'bill_id', std_xmj: 'chapter_id', template: 'template_id' };
  56. case measureType.gcl.value:
  57. return { std_bills: 'list_bill_id', std_xmj: 'list_chapter_id', template: 'list_template_id' };
  58. default:
  59. return null;
  60. }
  61. };
  62. const imType = {
  63. zl: { value: 0, name: '总量控制' },
  64. tz: { value: 1, name: '项目节-清单' },
  65. bw: { value: 2, name: '清单-计量单元' },
  66. bb: { value: 3, name: '计量单元-清单' },
  67. };
  68. const typeString = [];
  69. typeString[type.TJ] = '土建标';
  70. typeString[type.XX] = 'XX标';
  71. typeString[type.YY] = 'YY标';
  72. module.exports = {
  73. status,
  74. statusString,
  75. type,
  76. typeString,
  77. infoTableCol,
  78. progressTableCol,
  79. manageTableCol,
  80. measureType,
  81. imType,
  82. valuationField,
  83. };