common.ts 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. import { formatDate } from '@/utils/formatTime'
  2. export const TabColumns = {
  3. //待办
  4. '1': [
  5. {
  6. label: '操作',
  7. name: 'action',
  8. width: 138,
  9. frozen: true,
  10. fixed: true
  11. },
  12. { label: '业务编号', align: 'center', name: 'CODE', width: 250 },
  13. {
  14. label: '环节状态',
  15. align: 'center',
  16. name: 'statusVal',
  17. width: 90
  18. },
  19. {
  20. label: '流程描述',
  21. align: 'left',
  22. name: 'DESCRIBTION',
  23. minminWidth: 600
  24. },
  25. { label: '流程名称', align: 'left', name: 'NAME', width: 130 },
  26. { label: '办理环节', align: 'center', name: 'ACTIVITYNAME', width: 200 },
  27. {
  28. label: '接件时间',
  29. align: 'center',
  30. name: 'RECEIVE_TIME',
  31. width: 190,
  32. formatter(row: any, column: any, cellValue: any, index: number) {
  33. if (cellValue) {
  34. return formatDate(cellValue)
  35. }
  36. }
  37. }
  38. ],
  39. //已完成
  40. '90': [
  41. {
  42. label: '操作',
  43. name: 'action',
  44. width: 200,
  45. frozen: true,
  46. fixed: true
  47. },
  48. { label: '业务编号', align: 'center', name: 'CODE', width: 200 },
  49. {
  50. label: '环节完成情况',
  51. align: 'center',
  52. name: 'statusVal',
  53. width: 150
  54. },
  55. {
  56. label: '流程描述',
  57. align: 'left',
  58. name: 'DESCRIBTION',
  59. minWidth: 600
  60. },
  61. { label: '流程名称', align: 'left', name: 'NAME', width: 130 },
  62. { label: '完成环节', align: 'center', name: 'ACTIVITYNAME', width: 160 },
  63. {
  64. label: '完成时间',
  65. align: 'center',
  66. name: 'FINISH_TIME',
  67. width: 190,
  68. formatter(row: any, column: any, cellValue: any, index: number) {
  69. if (cellValue) {
  70. return formatDate(cellValue)
  71. }
  72. }
  73. },
  74. { label: '当前在办环节', align: 'center', name: 'currentActivityVal', width: 200 }
  75. ],
  76. //已退回
  77. '40': [
  78. {
  79. label: '操作',
  80. name: 'action',
  81. width: 138,
  82. frozen: true,
  83. fixed: true
  84. },
  85. { label: '业务编号', align: 'center', name: 'CODE', width: 250 },
  86. {
  87. label: '退至环节完成情况',
  88. align: 'center',
  89. name: 'statusVal',
  90. width: 160,
  91. fixed: true
  92. },
  93. {
  94. label: '流程描述',
  95. align: 'left',
  96. name: 'DESCRIBTION',
  97. minWidth: 600
  98. },
  99. { label: '流程名称', align: 'left', name: 'NAME', width: 130 },
  100. { label: '被退环节', align: 'center', name: 'BACTIVITYNAME', width: 160 },
  101. { label: '退至环节', align: 'center', name: 'ACTIVITYNAME', width: 160 },
  102. {
  103. label: '退回时间',
  104. align: 'center',
  105. name: 'CREATE_TIME',
  106. width: 190,
  107. formatter(row: any, column: any, cellValue: any, index: number) {
  108. if (cellValue) {
  109. return formatDate(cellValue)
  110. }
  111. }
  112. }
  113. ],
  114. //挂起
  115. '20': [
  116. {
  117. label: '操作',
  118. name: 'action',
  119. width: 228,
  120. frozen: true,
  121. fixed: true
  122. },
  123. {
  124. label: '挂起环节(挂起人)',
  125. align: 'center',
  126. name: 'activityInsName',
  127. width: 250,
  128. fixed: true
  129. },
  130. { label: '业务编号', align: 'center', name: 'flowCode', width: 250 },
  131. {
  132. label: '流程描述',
  133. align: 'left',
  134. name: 'DESCRIBTION',
  135. minWidth: 600
  136. },
  137. { label: '流程名称', align: 'left', name: 'flowName', width: 130 },
  138. { label: '挂起时间', align: 'center', name: 'hangUpTime', width: 160 },
  139. {
  140. label: '解挂后截止时间',
  141. align: 'center',
  142. name: 'shouldFinishDate',
  143. width: 190,
  144. formatter(row: any, column: any, cellValue: any, index: number) {
  145. if (cellValue) {
  146. return formatDate(cellValue)
  147. }
  148. }
  149. }
  150. ],
  151. //作废
  152. '160': [
  153. {
  154. label: '操作',
  155. name: 'action',
  156. width: 320,
  157. frozen: true,
  158. fixed: true
  159. },
  160. { label: '作废人', align: 'center', name: 'nullyUserName', width: 200 },
  161. { label: '业务编号', align: 'center', name: 'flowCode', width: 250 },
  162. {
  163. label: '流程描述',
  164. align: 'left',
  165. name: 'DESCRIBTION',
  166. minWidth: 600
  167. },
  168. { label: '流程名称', align: 'left', name: 'flowName', width: 130 },
  169. {
  170. label: '作废时间',
  171. align: 'center',
  172. name: 'nullyTime',
  173. width: 190,
  174. formatter(row: any, column: any, cellValue: any, index: number) {
  175. if (cellValue) {
  176. return formatDate(cellValue)
  177. }
  178. }
  179. }
  180. ]
  181. }