setting.js 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. // 任务流程列表
  2. const taskTypeList = [
  3. {
  4. // 任务当前状态
  5. taskType: 1,
  6. currentPermission: 4, // 当前任务在哪
  7. taskName: '创建任务',
  8. // 《只针对第一步操作区分按钮是显示 指派改善任务还是改善回复》 1不用管 2 改善回复 3 制定改善方案
  9. checkResult: 3,
  10. // 底部按钮 (name: 按钮名字, componentName: 点击后跳转的页面, nextPermission:下一步指派给谁)
  11. btnList: [
  12. {name: '不认可', componentName: 'disagree', nextPermission: 1, nextPermissionName: '管理员'},
  13. {name: '指派改善任务', componentName: 'assign-mission', nextPermission: 5, nextPermissionName: '改善者' }
  14. ],
  15. // 第一行
  16. row1: { hasJoin: true, name: '查核人*', key: 'establishEmpName' },
  17. // 第二行
  18. row2: {hasJoin: true, name: '发送改善通知,查核结果:*', key: 'xx' },
  19. // 查看xx详情 (name: 详情名字, componentName: 点击后跳转的页面, disabled: 底部按钮禁用)
  20. selectDetails: { name: '查看查核结果详情', componentName: 'disagree', disabled: true }
  21. },
  22. {
  23. taskType: 1,
  24. currentPermission: 4,
  25. taskName: '创建任务',
  26. checkResult: 2,
  27. btnList: [
  28. {name: '不认可', componentName: 'disagree', nextPermission: 1, nextPermissionName: '管理员'},
  29. {name: '改善回复', componentName: 'write-back', nextPermission: 1, nextPermissionName: '管理员' }
  30. ],
  31. row1: { hasJoin: true, name: '查核人*', key: 'establishEmpName' },
  32. row2: {hasJoin: true, name: '发送改善通知,查核结果:*', key: 'xx' },
  33. selectDetails: {name: '查看查核结果详情', componentName: 'disagree', disabled: true}
  34. },
  35. {
  36. taskType: 2,
  37. currentPermission: 1,
  38. taskName: '不认可',
  39. checkResult: 1,
  40. btnList: [
  41. {name: '重新发送', componentName: 'disagree', nextPermission: 4, nextPermissionName: '单位负责人'},
  42. {name: '发送给其他人', componentName: 'personnel', nextPermission: 4, nextPermissionName: '单位负责人' }
  43. ],
  44. row1: { hasJoin: true, name: '单位负责人*', key: 'establishEmpName' },
  45. row2: {hasJoin: false, name: '不认可改善通知' },
  46. selectDetails: {name: '查看不认可原因详情', componentName: 'disagree', disabled: true}
  47. },
  48. {
  49. taskType: 3,
  50. currentPermission: 4,
  51. taskName: '重新发送',
  52. checkResult: 1,
  53. btnList: [
  54. {name: '指派改善任务', componentName: 'assign-mission', nextPermission: 4, nextPermissionName: '单位负责人' }
  55. ],
  56. row1: { hasJoin: true, name: '管理员*', key: 'establishEmpName' },
  57. row2: {hasJoin: false, name: '重新发送改善通知' },
  58. selectDetails: {name: '查看原因详情', componentName: 'disagree', disabled: true}
  59. },
  60. {
  61. taskType: 4,
  62. checkResult: 1,
  63. taskName: '指派改善任务',
  64. currentPermission: 5,
  65. btnList: [
  66. {name: '申请更换改善人', componentName: null, nextPermission: 4, nextPermissionName: '单位负责人' },
  67. {name: '制定改善方案', componentName: 'pdca', nextPermission: 5, nextPermissionName: '改善者', pdcaSetting: 'p' }
  68. ],
  69. row1: { hasJoin: true, name: '单位负责人*', key: 'establishEmpName' },
  70. row2: {hasJoin: true, name: '指派*为改善人', key: 'receiveEmpName'},
  71. selectDetails: null
  72. },
  73. {
  74. taskType: 5,
  75. checkResult: 1,
  76. taskName: '改善回复',
  77. currentPermission: 1,
  78. btnList: [
  79. {name: '不通过', componentName: null, nextPermission: 4, nextPermissionName: '单位负责人' },
  80. {name: '通过', componentName: null, nextPermission: null, nextPermission: 4, nextPermissionName: '单位负责人' }
  81. ],
  82. row1: { hasJoin: true, name: '单位负责人*', key: 'establishEmpName' },
  83. row2: {hasJoin: false, name: '提交了改善回复'},
  84. selectDetails: {name: '查看改善回复详情', componentName: 'write-back', disabled: true},
  85. },
  86. {
  87. taskType: 6,
  88. checkResult: 1,
  89. taskName: '更换改善人',
  90. currentPermission: 5,
  91. btnList: [
  92. {name: '申请更换改善人', componentName: null, nextPermission: 4, nextPermissionName: '单位负责人' },
  93. {name: '制定改善方案', componentName: 'pdca', nextPermission: 5, nextPermissionName: '改善者', pdcaSetting: 'p' }
  94. ],
  95. row1: { hasJoin: true, name: '单位负责人*', key: 'establishEmpName' },
  96. row2: {hasJoin: true, name: '指派*为改善人', key: 'receiveEmpName'},
  97. selectDetails: null
  98. },
  99. {
  100. taskType: 7,
  101. checkResult: 1,
  102. taskName: '更换改善人驳回',
  103. currentPermission: 5,
  104. btnList: [
  105. {name: '制定改善方案', componentName: 'pdca', nextPermission: 5, nextPermissionName: '改善者', pdcaSetting: 'p' }
  106. ],
  107. row1: { hasJoin: true, name: '单位负责人*', key: 'establishEmpName' },
  108. row2: {hasJoin: false, name: '驳回更换改善人的申请'},
  109. selectDetails: null
  110. },
  111. {
  112. taskType: 8,
  113. checkResult: 1,
  114. taskName: '改善计划plan通过',
  115. currentPermission: 5,
  116. btnList: [
  117. {name: '记录改善方案', componentName: 'pdca', nextPermission: 5, nextPermissionName: '改善者', pdcaSetting: 'pdca' }
  118. ],
  119. row1: { hasJoin: true, name: '单位管理员*', key: 'establishEmpName' },
  120. row2: {hasJoin: false, name: '通过改善计划审核,开始执行改善计划'},
  121. selectDetails: {name: '查看改善计划详情', componentName: 'pdca', pdcaSetting: 'p', disabled: true}
  122. },
  123. {
  124. taskType: 9,
  125. checkResult: 1,
  126. taskName: '改善计划plan不通过',
  127. currentPermission: 5,
  128. btnList: [
  129. {name: '制定改善方案', componentName: 'pdca', nextPermission: 5, nextPermissionName: '改善者', pdcaSetting: 'p' }
  130. ],
  131. row1: { hasJoin: true, name: '单位管理员*', key: 'establishEmpName' },
  132. row2: {hasJoin: false, name: '建议重新完善改善计划'},
  133. selectDetails: {name: '查看原因详情', componentName: 'disagree', disabled: true}
  134. },
  135. {
  136. taskType: 10,
  137. checkResult: 1,
  138. taskName: '改善方案PDCA通过',
  139. currentPermission: 1,
  140. btnList: [
  141. {name: '不通过', componentName: 'disagree', nextPermission: 4, nextPermissionName: '单位负责人' },
  142. {name: '通过', componentName: null, nextPermission: 4, nextPermissionName: '单位负责人' }
  143. ],
  144. row1: { hasJoin: true, name: '单位负责人*', key: 'establishEmpName' },
  145. row2: {hasJoin: false, name: '通过了改善方案(PDCA)'},
  146. selectDetails: {name: '查看改善方案详情', componentName: 'pdca', nextPermission: 5, nextPermissionName: '改善者', pdcaSetting: 'pacd', disabled: true}
  147. },
  148. {
  149. taskType: 11,
  150. checkResult: 1,
  151. taskName: '改善方案PDCA不通过',
  152. currentPermission: 5,
  153. btnList: [
  154. {name: '制定改善方案', componentName: 'pdca', nextPermission: 5, nextPermissionName: '改善者', pdcaSetting: 'p' },
  155. ],
  156. row1: { hasJoin: true, name: '单位管理员*', key: 'establishEmpName' },
  157. row2: {hasJoin: false, name: '建议重新完善改善计划'},
  158. selectDetails: {name: '查看原因详情', componentName: 'disagree', nextPermission: 4, nextPermissionName: '单位负责人', disabled: true}
  159. },
  160. {
  161. taskType: 12,
  162. checkResult: 1,
  163. taskName: '申请更改改善人',
  164. currentPermission: 4,
  165. btnList: [
  166. {name: '更改改善人', componentName: 'assign-mission', nextPermission: 5, nextPermissionName: '改善者' },
  167. {name: '驳回请求', componentName: null, nextPermission: 5, nextPermissionName: '改善者' },
  168. ],
  169. row1: { hasJoin: true, name: '改善人*', key: 'establishEmpName' },
  170. row2: {hasJoin: false, name: '申请更换改善人'},
  171. selectDetails: null
  172. },
  173. {
  174. taskType: 13,
  175. checkResult: 1,
  176. taskName: '制定改善方案',
  177. currentPermission: 4,
  178. btnList: [
  179. {name: '不通过', componentName: 'disagree', nextPermission: 4, nextPermissionName: '单位负责人' },
  180. {name: '通过', componentName: null, nextPermission: 4, nextPermissionName: '单位负责人' },
  181. ],
  182. row1: { hasJoin: true, name: '改善者*', key: 'establishEmpName' },
  183. row2: {hasJoin: false, name: '提交了改善计划(PLAN)'},
  184. selectDetails: {name: '查看改善计划详情', componentName: 'pdca', nextPermission: 5, nextPermissionName: '改善者', pdcaSetting: 'p', disabled: true}
  185. },
  186. {
  187. taskType: 14,
  188. checkResult: 1,
  189. taskName: '制定改善方案plan',
  190. currentPermission: 4,
  191. btnList: [
  192. {name: '不通过', componentName: 'disagree', nextPermission: 5, nextPermissionName: '改善者' },
  193. {name: '通过', componentName: null, nextPermission: 5, nextPermissionName: '改善者' },
  194. ],
  195. row1: { hasJoin: true, name: '改善者*', key: 'establishEmpName' },
  196. row2: {hasJoin: false, name: '提交了改善计划(PLAN)'},
  197. selectDetails: {name: '查看改善计划详情', componentName: 'pdca', nextPermission: 5, nextPermissionName: '改善者', pdcaSetting: 'p', disabled: true}
  198. },
  199. {
  200. taskType: 15,
  201. checkResult: 1,
  202. taskName: '改善方案暂停',
  203. currentPermission: 4,
  204. btnList: [
  205. {name: '不通过', componentName: 'disagree', nextPermission: 4, nextPermissionName: '单位负责人' },
  206. {name: '通过', componentName: null, nextPermission: 4, nextPermissionName: '单位负责人' },
  207. ],
  208. row1: { hasJoin: true, name: '改善者*', key: 'establishEmpName' },
  209. row2: {hasJoin: false, name: '提交了改善计划(PLAN)'},
  210. selectDetails: {name: '查看改善计划详情', componentName: 'pdca', nextPermission: 5, nextPermissionName: '改善者', pdcaSetting: 'p', disabled: true}
  211. },
  212. {
  213. taskType: 16,
  214. checkResult: 1,
  215. taskName: '记录改善方案plan',
  216. currentPermission: 4,
  217. btnList: [
  218. {name: '不通过', componentName: 'disagree', nextPermission: 5, nextPermissionName: '改善者' },
  219. {name: '通过', componentName: null, nextPermission: 1, nextPermissionName: '管理员' },
  220. ],
  221. row1: { hasJoin: true, name: '改善者*', key: 'establishEmpName' },
  222. row2: {hasJoin: false, name: '提交了改善计划(PLAN)'},
  223. selectDetails: {name: '查看改善方案详情', componentName: 'pdca', nextPermission: 5, nextPermissionName: '改善者', pdcaSetting: 'pdca', disabled: true}
  224. },
  225. {
  226. taskType: 17,
  227. checkResult: 1,
  228. taskName: '改善方案plan通过, 改善回复通过',
  229. currentPermission: 4,
  230. btnList: [],
  231. row1: { hasJoin: true, name: '管理员*', key: 'establishEmpName' },
  232. row2: {hasJoin: false, name: '完成改善,本次任务结束'},
  233. selectDetails: {name: '查看改善方案详情', componentName: 'pdca', nextPermission: 5, nextPermissionName: '改善者', pdcaSetting: 'pdca', disabled: true}
  234. },
  235. {
  236. taskType: 18,
  237. checkResult: 1,
  238. taskName: '改善方案plan通过, 改善回复通过',
  239. currentPermission: 4,
  240. btnList: [
  241. {name: '指派改善任务', componentName: 'assign-mission', nextPermission: 4, nextPermissionName: '单位负责人' },
  242. ],
  243. row1: { hasJoin: true, name: '管理员*', key: 'establishEmpName' },
  244. row2: {hasJoin: false, name: '改善方案不通过,重新执行改善流程'},
  245. selectDetails: {name: '查看原因详情', componentName: 'disagree', disabled: true }
  246. },
  247. ];
  248. export default taskTypeList;
  249. /**
  250. * 字段描述:
  251. * taskType: // 任务当前状态
  252. * currentPermission: // 当前任务位置在哪 (1、管理员 2、查核组长 3、查核组员 4、单位负责人 5、改善者)
  253. * taskName: // 任务名称
  254. * checkResult: // 《只针对第一步创建任务 区分按钮 显示指派改善任务还是改善回复》 1不用管 2 改善回复 3 制定改善方案
  255. * btnList:{ // 底部按钮
  256. * name: // 按钮名字,
  257. * componentName: // 点击后跳转的页面,null直接刷新页面即可
  258. * nextPermission: // 下一步指派给谁id
  259. * nextPermissionName: // 下一步指派给谁
  260. * pdcaSetting: // 跳转pdca的配置: <p: 只能编辑plan, pdca: 都可以编辑>
  261. * }
  262. * row1: { // 第一行显示的内容
  263. * hasJoin:// 是否需要拼接,
  264. * name: // 显示的内容 <注意 星号*指占位符, 后面需要被key字段替换的,
  265. * key: // 要显示的的内容(后端返回的key, 用于替换星号*)
  266. * }
  267. * row2: { // 第二行显示的内容
  268. * hasJoin: // 是否需要拼接,
  269. * name: // 显示的内容 <注意 星号*指占位符, 后面需要被key字段替换的,
  270. * key: // 要显示的的内容(后端返回的key, 用于替换星号*)
  271. * }
  272. * selectDetails {
  273. * name: '查看改善计划详情', // 详情显示的名字
  274. * componentName: 'pdca', // 点击后跳转的页面
  275. * pdcaSetting: 'p', // 当componentName='pdca', 需要判断pdcaSetting='p', 还是‘pdca’
  276. * disabled: true // 底部按钮禁用
  277. * }
  278. */