project_setting.js 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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. projectList: [
  60. { field: 'name', name: '项目名称', fixed: ['show'] },
  61. { field: 'budget_std', name: '概预算标准', fixed: ['show'] },
  62. { field: 'tender_count', name: '标段个数', fixed: [] },
  63. { field: 'file_count', name: '文件个数', fixed: [] },
  64. { field: 'contract_count', name: '合同个数', fixed: [] },
  65. { field: 'management', name: '管理单位', fixed: ['show'] },
  66. { field: 'create_time', name: '创建时间', fixed: [] },
  67. { field: 'control', name: '操作', fixed: ['show'] },
  68. ],
  69. };
  70. const defaultProjectColSet = {
  71. info: [
  72. { field: 'name', show: 1, alias: '' },
  73. { field: 'contract_price', show: 1, alias: '' },
  74. { field: 'total_price', show: 1, alias: '' },
  75. { field: 'gather_tp', show: 1, alias: '' },
  76. { field: 'end_contract_tp', show: 1, alias: '' },
  77. { field: 'end_qc_tp', show: 1, alias: '' },
  78. { field: 'end_gather_tp', show: 1, alias: '' },
  79. { field: 'pre_gather_tp', show: 1, alias: '' },
  80. { field: 'advance_tp', show: 1, alias: '' },
  81. { field: 'yf_tp', show: 1, alias: '' },
  82. { field: 'end_yf_tp', show: 1, alias: '' },
  83. { field: 'sf_tp', show: 0, alias: '' },
  84. { field: 'end_sf_tp', show: 0, alias: '' },
  85. { field: 'wf_tp', show: 0, alias: '' },
  86. ],
  87. list: [
  88. { field: 'name', show: 1 },
  89. { field: 'budget_std', show: 1, alias: '' },
  90. { field: 'tender_count', show: 1, alias: '' },
  91. { field: 'file_count', show: 1, alias: '' },
  92. { field: 'contract_count', show: 1, alias: '' },
  93. { field: 'management', show: 1, alias: '' },
  94. { field: 'create_time', show: 1, alias: '' },
  95. { field: 'control', show: 1, alias: '' },
  96. ],
  97. };
  98. const defaultColSet = {
  99. info: [
  100. { field: 'name', show: 1, alias: '' },
  101. { field: 'measure_type', show: 1, alias: '' },
  102. { field: 'calc_flow', show: 1, alias: '' },
  103. { field: 'cur_flow', show: 1, alias: '' },
  104. { field: 'contract_price', show: 1, alias: '' },
  105. { field: 'total_price', show: 1, alias: '' },
  106. { field: 'gather_tp', show: 1, alias: '' },
  107. { field: 'end_contract_tp', show: 1, alias: '' },
  108. { field: 'end_qc_tp', show: 1, alias: '' },
  109. { field: 'end_gather_tp', show: 1, alias: '' },
  110. { field: 'pre_gather_tp', show: 1, alias: '' },
  111. { field: 'advance_tp', show: 1, alias: '' },
  112. { field: 'yf_tp', show: 1, alias: '' },
  113. { field: 'end_yf_tp', show: 1, alias: '' },
  114. { field: 'sf_tp', show: 0, alias: '' },
  115. { field: 'end_sf_tp', show: 0, alias: '' },
  116. { field: 'wf_tp', show: 0, alias: '' },
  117. ],
  118. };
  119. // 决策大屏06 报表数据统计值设置及保存
  120. const daPing06Set = {
  121. sr: null,
  122. sr_value: null,
  123. cb: null,
  124. cb_value: null,
  125. cb_show: [],
  126. };
  127. const daPing08Set = {
  128. tenders: [
  129. { id: 1, a: 0, b: 0 },
  130. { id: 2, a: 0, b: 0 },
  131. { id: 3, a: 0, b: 0 },
  132. { id: 4, a: 0, b: 0 },
  133. ],
  134. };
  135. module.exports = {
  136. noticeSetting: notice_setting,
  137. colSet,
  138. defaultProjectColSet,
  139. defaultColSet,
  140. daPing06Set,
  141. daPing08Set,
  142. };