workbench.js 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. import { typeOptions } from '@/views/platform/system/news/constants'
  2. export const tabList = [
  3. {
  4. label: '待办事宜',
  5. key: 'wait',
  6. icon: 'el-icon-edit'
  7. },
  8. {
  9. label: '已办事宜',
  10. key: 'over',
  11. icon: 'el-icon-document-remove'
  12. },
  13. {
  14. label: '办结事宜',
  15. key: 'finish',
  16. icon: 'el-icon-paperclip'
  17. },
  18. {
  19. label: '暂存事宜',
  20. key: 'save',
  21. icon: 'el-icon-receiving'
  22. },
  23. {
  24. label: '通知公告',
  25. key: 'news',
  26. icon: 'el-icon-message'
  27. },
  28. {
  29. label: '系统指引',
  30. key: 'guide',
  31. icon: 'el-icon-guide'
  32. }
  33. ]
  34. export const taskState = {
  35. running: '已发起',
  36. end: '已结束',
  37. manualend: '人工结束'
  38. }
  39. export const stateOption = {
  40. wait: {
  41. label: '待办理',
  42. type: ''
  43. },
  44. soon: {
  45. label: '即将超时',
  46. type: 'warning'
  47. },
  48. overtime: {
  49. label: '已超时',
  50. type: 'danger'
  51. }
  52. }
  53. export const taskTypeOption = [
  54. {
  55. key: '临时事务',
  56. value: '临时事务',
  57. type: 'info'
  58. },
  59. {
  60. key: '周期事务',
  61. value: '周期事务',
  62. type: 'success'
  63. },
  64. {
  65. key: '定时事务',
  66. value: '定时事务',
  67. type: 'warning'
  68. }
  69. ]
  70. export const rangeOption = [
  71. {
  72. key: 'aboutMe',
  73. value: 'aboutMe',
  74. label: '与我相关'
  75. },
  76. {
  77. key: 'sponsor',
  78. value: 'sponsor',
  79. label: '由我编制'
  80. },
  81. {
  82. key: 'review',
  83. value: 'review',
  84. label: '由我审核'
  85. },
  86. {
  87. key: 'approve',
  88. value: 'approve',
  89. label: '由我审批'
  90. },
  91. {
  92. key: 'all',
  93. value: 'all',
  94. label: '全部'
  95. }
  96. ]
  97. export const listSearchForm = {
  98. wait: {
  99. forms: [
  100. { prop: 'Q^subject_^SL', name: 'Q^temp.subject_^SL', label: '事务名称', fieldType: 'input' },
  101. { prop: ['Q^temp.create_time_^DL', 'Q^temp.create_time_^DG'], label: '提交时间', fieldType: 'daterange' }
  102. ]
  103. },
  104. over: {
  105. forms: [
  106. { prop: 'Q^subject_^SL', label: '事务名称', fieldType: 'input' },
  107. { prop: ['Q^create_time_^DL', 'Q^create_time_^DG'], label: '创建时间', fieldType: 'daterange' }
  108. ]
  109. },
  110. finish: {
  111. forms: [
  112. { prop: 'Q^subject_^SL', name: 'Q^inst.subject_^SL', label: '事务名称', fieldType: 'input' },
  113. { prop: ['Q^create_time_^DL', 'Q^create_time_^DG'], name: ['Q^inst.create_time_^DL', 'Q^inst.create_time_^DG'], label: '结束时间', fieldType: 'daterange' }
  114. ]
  115. },
  116. save: {
  117. forms: [
  118. { prop: 'Q^subject_^SL', label: '事务名称', fieldType: 'input' },
  119. { prop: ['Q^create_time_^DL', 'Q^create_time_^DG'], label: '提交时间', fieldType: 'daterange' }
  120. ]
  121. },
  122. news: {
  123. forms: [
  124. { prop: 'Q^title_^SL', label: '标题', fieldType: 'input' },
  125. { prop: 'Q^dep_name_^SL', label: '发布部门', fieldType: 'input' },
  126. { prop: 'Q^user_name_^SL', label: '发布人', fieldType: 'input' },
  127. { prop: ['Q^public_date_^DL', 'Q^public_date_^DG'], label: '发布时间', fieldType: 'daterange' }
  128. ]
  129. },
  130. guide: {
  131. forms: [
  132. { prop: 'range', label: '显示范围', labelWidth: 70, fieldType: 'select', options: rangeOption, value: 'aboutMe' },
  133. { prop: 'suo_shu_xi_tong_', label: '所属子系统', labelWidth: 85, fieldType: 'select', options: [] },
  134. { prop: 'gong_neng_mo_kuai', label: '所属功能模块', labelWidth: 100, fieldType: 'input' },
  135. { prop: 'role', label: '执行角色', labelWidth: 70, fieldType: 'select', options: [] },
  136. { prop: 'biao_dan_ming_che', label: '记录表单', labelWidth: 70, fieldType: 'input' },
  137. { prop: 'shi_wu_lei_xing_', label: '事务类型', labelWidth: 70, fieldType: 'select', options: taskTypeOption }
  138. ]
  139. }
  140. }
  141. const fieldWidth = window.innerWidth > 1600 ? 150 : 120
  142. export const listColumns = {
  143. wait: [
  144. { prop: 'scope', label: '事务名称', slotName: 'name', width: 250 },
  145. { prop: 'scope', label: '事务说明', slotName: 'desc', minWidth: 250 },
  146. { prop: 'scope', label: '事务状态', slotName: 'waitStatus', width: 120 },
  147. { prop: 'scope', label: '办理进度', headerName: 'stateLabel', slotName: 'state', width: 120 },
  148. { prop: 'scope', label: '发起部门', slotName: 'overDept', width: 120 },
  149. { prop: 'submitBy', label: '发起人', headerName: 'submitBy', width: 100 },
  150. { prop: 'forwardBy', label: `上节点提交人`, headerName: 'forwardBy', width: 100 },
  151. { prop: 'createTime', label: '上节点提交时间', width: 150 }
  152. ],
  153. over: [
  154. { prop: 'scope', label: '事务名称', slotName: 'name', width: 250 },
  155. { prop: 'scope', label: '事务说明', slotName: 'desc', minWidth: 250 },
  156. { prop: 'scope', label: '事务状态', slotName: 'overStatus', width: 120 },
  157. { prop: 'scope', label: '发起部门', slotName: 'overDept', width: 120 },
  158. { prop: 'scope', label: '发起人', headerName: 'submitBy', slotName: 'creator', width: 100 },
  159. { prop: 'scope', label: `提交人`, slotName: 'updateBy', width: 100 },
  160. { prop: 'scope', label: '办理时间', slotName: 'time', width: 150 }
  161. ],
  162. finish: [
  163. { prop: 'scope', label: '事务名称', slotName: 'name', width: 250 },
  164. { prop: 'scope', label: '事务说明', slotName: 'desc', minWidth: 250 },
  165. { prop: 'scope', label: '事务状态', slotName: 'overStatus', width: 120 },
  166. { prop: 'scope', label: '发起部门', slotName: 'overDept', width: 120 },
  167. { prop: 'scope', label: '发起人', headerName: 'submitBy', slotName: 'creator', width: 100 },
  168. { prop: 'scope', label: `提交人`, slotName: 'updateBy', width: 100 },
  169. { prop: 'scope', label: '结束时间', slotName: 'time', width: 150 }
  170. ],
  171. save: [
  172. { prop: 'scope', label: '事务名称', slotName: 'name', width: 250 },
  173. { prop: 'scope', label: '事务说明', slotName: 'desc', minWidth: 250 },
  174. { prop: 'createTime', label: '暂存时间', width: 150 }
  175. ],
  176. news: [
  177. { prop: 'title', label: '标题', minWidth: 250 },
  178. { prop: 'depName', label: '发布部门', sortable: 'custom', width: 120 },
  179. { prop: 'userName', label: '发布人', width: 120 },
  180. { prop: 'publicDate', label: '发布日期', sortable: 'custom', dateFormat: 'yyyy-MM-dd', width: 120 },
  181. // { prop: 'loseDate', label: '有效截至日期', sortable: 'custom', dateFormat: 'yyyy-MM-dd', width: 120 },
  182. { prop: 'status', label: '发布状态', tags: typeOptions, width: 100 }
  183. ],
  184. guide: [
  185. { prop: 'sn', label: '序号', width: 60 },
  186. { prop: 'sysName', label: '所属子系统', width: 100 },
  187. { prop: 'module', label: '所属功能模块', width: fieldWidth },
  188. { prop: 'tableName', label: '记录表单', width: 200 },
  189. // { prop: 'tableNo', label: '表单编号', width: 100 },
  190. { prop: 'timing', label: '填写时机/记录频次', minWidth: fieldWidth },
  191. { prop: 'taskType', label: '事务类型', tags: taskTypeOption, width: 100 },
  192. { prop: 'fileName', label: '程序文件', width: 160 },
  193. { prop: 'creator', label: '编制人', width: fieldWidth },
  194. { prop: 'reviewer', label: '审核人', width: fieldWidth },
  195. { prop: 'approver', label: '审批人', width: fieldWidth }
  196. ]
  197. }