project_setting.js 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. 'use strict';
  2. /**
  3. * 项目的通用 相关常量
  4. *
  5. * @author Mai
  6. * @date 2018/9/25
  7. * @version
  8. */
  9. // 重新发送通知设置
  10. const notice_setting = {
  11. fixed: 72, // 固定间隔
  12. activity: { // 活动间隔
  13. first: 72,
  14. second: 48,
  15. later: 24,
  16. },
  17. mode: 'fixed', // 默认模式
  18. shield_times: { // 屏蔽时间段
  19. start: null,
  20. end: null,
  21. },
  22. };
  23. const colSet = {
  24. info: [
  25. { field: 'name', name: '标段名称', fixed: ['show', 'alias'] },
  26. { field: 'measure_type', name: '计量模式', fixed: ['show', 'alias'] },
  27. { field: 'calc_flow', name: '计量进度', fixed: ['show', 'alias'] },
  28. { field: 'cur_flow', name: '当前流程', fixed: ['show', 'alias'] },
  29. { field: 'contract_price', name: '签约合同价', fixed: ['show', 'alias'] },
  30. { field: 'total_price', name: '0号台账', fixed: [] },
  31. { field: 'gather_tp', name: '本期完成', fixed: [] },
  32. { field: 'end_contract_tp', name: '截止本期合同', fixed: [] },
  33. { field: 'end_qc_tp', name: '截止本期变更', fixed: [] },
  34. { field: 'end_gather_tp', name: '截止本期完成', fixed: [] },
  35. { field: 'pre_gather_tp', name: '截止上期完成', fixed: [] },
  36. { field: 'advance_tp', name: '预付款', fixed: [] },
  37. { field: 'yf_tp', name: '本期应付', fixed: [] },
  38. { field: 'end_yf_tp', name: '截止本期应付', fixed: [] },
  39. { field: 'sf_tp', name: '本期实付', fixed: [] },
  40. { field: 'end_sf_tp', name: '截止本期实付', fixed: [] },
  41. { field: 'wf_tp', name: '未付金额', fixed: [], hint:'截止本期应付-截止本期实付' },
  42. ],
  43. projectInfo: [
  44. { field: 'name', name: '项目名称', fixed: ['show', 'alias'] },
  45. { field: 'contract_price', name: '签约合同价', fixed: ['show', 'alias'] },
  46. { field: 'total_price', name: '0号台账', fixed: [] },
  47. { field: 'gather_tp', name: '本期完成', fixed: [] },
  48. { field: 'end_contract_tp', name: '截止本期合同', fixed: [] },
  49. { field: 'end_qc_tp', name: '截止本期变更', fixed: [] },
  50. { field: 'end_gather_tp', name: '截止本期完成', fixed: [] },
  51. { field: 'pre_gather_tp', name: '截止上期完成', fixed: [] },
  52. { field: 'advance_tp', name: '预付款', fixed: [] },
  53. { field: 'yf_tp', name: '本期应付', fixed: [] },
  54. { field: 'end_yf_tp', name: '截止本期应付', fixed: [] },
  55. { field: 'sf_tp', name: '本期实付', fixed: [] },
  56. { field: 'end_sf_tp', name: '截止本期实付', fixed: [] },
  57. { field: 'wf_tp', name: '未付金额', fixed: [], hint:'截止本期应付-截止本期实付' },
  58. ],
  59. };
  60. const defaultProjectColSet = {
  61. info: [
  62. { field: 'name', show: 1, alias: '' },
  63. { field: 'contract_price', show: 1, alias: '' },
  64. { field: 'total_price', show: 1, alias: '' },
  65. { field: 'gather_tp', show: 1, alias: '' },
  66. { field: 'end_contract_tp', show: 1, alias: '' },
  67. { field: 'end_qc_tp', show: 1, alias: '' },
  68. { field: 'end_gather_tp', show: 1, alias: '' },
  69. { field: 'pre_gather_tp', show: 1, alias: '' },
  70. { field: 'advance_tp', show: 1, alias: '' },
  71. { field: 'yf_tp', show: 1, alias: '' },
  72. { field: 'end_yf_tp', show: 1, alias: '' },
  73. { field: 'sf_tp', show: 0, alias: '' },
  74. { field: 'end_sf_tp', show: 0, alias: '' },
  75. { field: 'wf_tp', show: 0, alias: '' },
  76. ],
  77. };
  78. const defaultColSet = {
  79. info: [
  80. { field: 'name', show: 1, alias: '' },
  81. { field: 'measure_type', show: 1, alias: '' },
  82. { field: 'calc_flow', show: 1, alias: '' },
  83. { field: 'cur_flow', show: 1, alias: '' },
  84. { field: 'contract_price', show: 1, alias: '' },
  85. { field: 'total_price', show: 1, alias: '' },
  86. { field: 'gather_tp', show: 1, alias: '' },
  87. { field: 'end_contract_tp', show: 1, alias: '' },
  88. { field: 'end_qc_tp', show: 1, alias: '' },
  89. { field: 'end_gather_tp', show: 1, alias: '' },
  90. { field: 'pre_gather_tp', show: 1, alias: '' },
  91. { field: 'advance_tp', show: 1, alias: '' },
  92. { field: 'yf_tp', show: 1, alias: '' },
  93. { field: 'end_yf_tp', show: 1, alias: '' },
  94. { field: 'sf_tp', show: 0, alias: '' },
  95. { field: 'end_sf_tp', show: 0, alias: '' },
  96. { field: 'wf_tp', show: 0, alias: '' },
  97. ],
  98. };
  99. // 决策大屏06 报表数据统计值设置及保存
  100. const daPing06Set = {
  101. sr: null,
  102. sr_value: null,
  103. cb: null,
  104. cb_value: null,
  105. cb_show: [],
  106. };
  107. module.exports = {
  108. noticeSetting: notice_setting,
  109. colSet,
  110. defaultProjectColSet,
  111. defaultColSet,
  112. daPing06Set,
  113. };