setting.js 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752
  1. // 任务流程列表
  2. /**
  3. * 注意:
  4. 1. 所有imgPath要换成正式接口key;
  5. 2. taskType: 11的按钮需要重新来一遍plan吗,还是pdca都可修改
  6. 3. taskType: 12的驳回请求按钮好像不需要填写原因,(原因没画)
  7. 4. taskType: 15 制定改善方案,从p开始还是pdca都需要执行)
  8. */
  9. const taskTypeList = [
  10. {
  11. taskType: 1, // 任务当前状态
  12. currentPermission: 4, // 当前任务在哪
  13. taskName: '创建任务',
  14. checkResult: 3, // 只针对第一步操作区分按钮是显示 (指派改善任务还是改善回复) 1不用管 2 改善回复 3 制定改善方案
  15. btnList: [ // 底部按钮
  16. {
  17. name: '不认可', // 按钮显示名字
  18. componentName: 'disagree', // 点击后跳转的组件名
  19. nextPermission: 1, // 接收人id
  20. nextPermissionName: '管理员', // 接收人名字
  21. params: [ // 接口保存的参数配置(paramsKey: 参数名, valueKey: 使用详情接口key, 为null, 表示当前组件可自输入, isOutvalueKey: 是否详情接一级key, 不是则在当前任务状态中找key(如pfmTaskCirculationList下面))
  22. { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
  23. { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
  24. { paramsKey: 'receiveEmpId', valueKey: 'adminId', isOutvalueKey: true }, // 接收人id
  25. { paramsKey: 'receiveEmpName', valueKey: 'adminName', isOutvalueKey: true }, // 接收人姓名
  26. { paramsKey: 'approveReason', valueKey: null } // 不认可原因
  27. ]
  28. },
  29. {
  30. name: '指派改善任务',
  31. componentName: 'assign-mission',
  32. nextPermission: 5,
  33. nextPermissionName: '改善者',
  34. params: [
  35. { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
  36. { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
  37. { paramsKey: 'appointFlag', valueKey: 'appointFlag', isOutvalueKey: true }, // 已指派标志, 0 未指派 1已指派
  38. { paramsKey: 'desicion', valueKey: null }, // 改善方案 目前只有pdca
  39. { paramsKey: 'receiveEmpId', valueKey: null }, // 指派人
  40. { paramsKey: 'receiveEmpName', valueKey: null }, // 指派人姓名
  41. { paramsKey: 'needApproveFlag', valueKey: null } // 是否需要审核 true 是 false 不需要
  42. ]
  43. }
  44. ],
  45. // 第一行显示的内容
  46. row1: {
  47. hasJoin: true, // 是否需要拼接
  48. name: '查核人x', // 显示的内容, x未来被替换的值
  49. key: 'establishEmpName', // 使用详情接口key,用来替换x
  50. isOutDataKey: false // 是否详情接口一级key, 不是则在当前任务状态中找key(如pfmTaskCirculationList下面)
  51. },
  52. // 第二行显示的内容
  53. row2: {
  54. hasJoin: true,
  55. name: '发送改善通知,查核结果:x',
  56. key: 'checkDetailResult',
  57. isOutDataKey: true
  58. },
  59. // 查看xx详情 (name: 详情名字, componentName: 点击后跳转的页面, disabled: 底部按钮禁用)
  60. selectDetails: {
  61. name: '查看查核结果详情', // 详情显示的名字
  62. hasAnyData: false, // 是否有多个数据需要回显 为true则使用dateKey, 否则使用key <key和datakey互斥)
  63. key: 'checkDetailResult', //使用详情接口key
  64. dataKey: [],
  65. isOutDataKey: true, // 是否详情接口一级key, 不是则在当前任务状态中找key(如pfmTaskCirculationList下面)
  66. componentName: 'disagree', //点击后跳转的组件名
  67. disabled: true // 调整后是否编辑和禁用
  68. }
  69. },
  70. {
  71. taskType: 1,
  72. currentPermission: 4,
  73. taskName: '创建任务',
  74. checkResult: 2,
  75. btnList: [
  76. {
  77. name: '不认可',
  78. componentName: 'disagree',
  79. nextPermission: 1,
  80. nextPermissionName: '管理员',
  81. params: [
  82. { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
  83. { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
  84. { paramsKey: 'receiveEmpId', valueKey: 'adminId', isOutvalueKey: true }, // 接收人id
  85. { paramsKey: 'receiveEmpName', valueKey: 'adminName', isOutvalueKey: true }, // 接收人姓名
  86. { paramsKey: 'approveReason', valueKey: null }, // 不认可原因
  87. ]
  88. },
  89. {
  90. name: '改善回复',
  91. componentName: 'write-back',
  92. nextPermission: 1,
  93. nextPermissionName: '管理员',
  94. params: [
  95. { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
  96. { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
  97. { paramsKey: 'receiveEmpId', valueKey: 'receiveEmpId', isOutvalueKey: false }, // 接收人id
  98. { paramsKey: 'receiveEmpName', valueKey: 'adminName', isOutvalueKey: true }, // 接收人姓名
  99. { paramsKey: 'approveReason', valueKey: null }, // 不认可原因
  100. { paramsKey: 'imgPath', valueKey: null } // 图片地址
  101. ]
  102. }
  103. ],
  104. row1: { hasJoin: true, name: '查核人x', key: 'establishEmpName' },
  105. row2: {hasJoin: true, name: '发送改善通知,查核结果:x', key: 'checkDetailResult', isOutDataKey: true },
  106. selectDetails: {
  107. name: '查看查核结果详情',
  108. key: 'checkDetailResult',
  109. isOutDataKey: true,
  110. componentName: 'disagree',
  111. disabled: true
  112. }
  113. },
  114. {
  115. taskType: 2,
  116. currentPermission: 1,
  117. taskName: '不认可',
  118. checkResult: 1,
  119. btnList: [
  120. {
  121. name: '重新发送',
  122. componentName: 'disagree',
  123. nextPermission: 4,
  124. nextPermissionName: '单位负责人',
  125. params: [
  126. { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
  127. { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
  128. { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
  129. { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 接收人姓名
  130. { paramsKey: 'approveReason', valueKey: null } // 不认可原因
  131. ]
  132. },
  133. {
  134. name: '发送给其他人',
  135. componentName: 'personnel',
  136. keys: null,
  137. nextPermission: 4,
  138. nextPermissionName: '单位负责人',
  139. params: [
  140. { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
  141. { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
  142. { paramsKey: 'receiveEmpId', valueKey: null }, // 接收人id
  143. { paramsKey: 'receiveEmpName', valueKey: null } // 接收人姓名
  144. ]
  145. }
  146. ],
  147. row1: { hasJoin: true, name: '单位负责人x', key: 'establishEmpName' },
  148. row2: {hasJoin: false, name: '不认可改善通知' },
  149. selectDetails: {
  150. name: '查看不认可原因详情',
  151. key: 'approveReason',
  152. componentName: 'disagree',
  153. disabled: true
  154. }
  155. },
  156. {
  157. taskType: 3,
  158. currentPermission: 4,
  159. taskName: '重新发送',
  160. checkResult: 1,
  161. btnList: [
  162. {
  163. name: '指派改善任务',
  164. componentName: 'assign-mission',
  165. nextPermission: 4,
  166. nextPermissionName: '单位负责人',
  167. params: [
  168. { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
  169. { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
  170. { paramsKey: 'appointFlag', valueKey: 'appointFlag', isOutvalueKey: true }, // 已指派标志, 0 未指派 1已指派
  171. { paramsKey: 'desicion', valueKey: null }, // 改善方案 目前只有pdca
  172. { paramsKey: 'receiveEmpId', valueKey: null }, // 指派人
  173. { paramsKey: 'receiveEmpName', valueKey: null }, // 指派人姓名
  174. { paramsKey: 'needApproveFlag', valueKey: null } // 是否需要审核 true 是 false 不需要
  175. ]
  176. }
  177. ],
  178. row1: { hasJoin: true, name: '管理员x', key: 'establishEmpName' },
  179. row2: {hasJoin: false, name: '重新发送改善通知' },
  180. selectDetails: {
  181. name: '查看原因详情',
  182. key: 'approveReason',
  183. componentName: 'disagree',
  184. disabled: true
  185. }
  186. },
  187. {
  188. taskType: 4,
  189. checkResult: 1,
  190. taskName: '指派改善任务',
  191. currentPermission: 5,
  192. btnList: [
  193. {
  194. name: '申请更换改善人',
  195. componentName: null,
  196. nextPermission: 5,
  197. nextPermissionName: '改善者',
  198. params: [
  199. { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
  200. { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
  201. { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
  202. { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false } // 接收人姓名
  203. ]
  204. },
  205. {
  206. name: '制定改善方案',
  207. componentName: 'pdca',
  208. nextPermission: 6,
  209. nextPermissionName: '单位负责人',
  210. pdcaSetting: 'p',
  211. params: [
  212. { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
  213. { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
  214. { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
  215. { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 接收人姓名
  216. { paramsKey: 'taskPlan', valueKey: null} // 接收人姓名
  217. ]
  218. }
  219. ],
  220. row1: { hasJoin: true, name: '单位负责人x', key: 'establishEmpName' },
  221. row2: {hasJoin: true, name: '指派x为改善人', key: 'receiveEmpName'},
  222. selectDetails: null
  223. },
  224. {
  225. taskType: 5,
  226. checkResult: 1,
  227. taskName: '改善回复',
  228. currentPermission: 1,
  229. btnList: [
  230. {
  231. name: '不通过',
  232. componentName: null,
  233. nextPermission: 4,
  234. nextPermissionName: '单位负责人',
  235. params: [
  236. { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
  237. { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
  238. { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
  239. { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 接收人姓名
  240. ] // todo
  241. },
  242. {
  243. name: '通过',
  244. componentName: null,
  245. nextPermission: 4,
  246. nextPermissionName: '单位负责人',
  247. params: [
  248. { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
  249. { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
  250. { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
  251. { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 接收人姓名
  252. ]
  253. }
  254. ],
  255. row1: { hasJoin: true, name: '单位负责人x', key: 'establishEmpName' },
  256. row2: {hasJoin: false, name: '提交了改善回复'},
  257. selectDetails: {
  258. name: '查看改善回复详情',
  259. componentName: 'write-back',
  260. hasAnyData: true, // 是否有多个数据需要回显(多个数据对多个key)
  261. dataKey: [
  262. {key: 'approveReason', isOutvalueKey: false}, // 回复内容
  263. {key: 'imgPath', isOutvalueKey: false} // 回复图片地址
  264. ],
  265. disabled: true
  266. },
  267. },
  268. {
  269. taskType: 6,
  270. checkResult: 1,
  271. taskName: '更换改善人',
  272. currentPermission: 5,
  273. btnList: [
  274. {
  275. name: '申请更换改善人',
  276. componentName: null,
  277. nextPermission: 4,
  278. nextPermissionName: '单位负责人',
  279. params: [
  280. { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
  281. { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
  282. { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
  283. { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false } // 接收人姓名
  284. ]
  285. },
  286. {
  287. name: '制定改善方案',
  288. componentName: 'pdca',
  289. pdcaSetting: 'p',
  290. nextPermission: 4,
  291. nextPermissionName: '单位负责人',
  292. params: [
  293. { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
  294. { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
  295. { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
  296. { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 接收人姓名
  297. { paramsKey: 'taskPlan', valueKey: null }, // 接收人姓名
  298. ]
  299. }
  300. ],
  301. row1: { hasJoin: true, name: '单位负责人x', key: 'establishEmpName' },
  302. row2: {hasJoin: true, name: '指派x为改善人', key: 'receiveEmpName'},
  303. selectDetails: null
  304. },
  305. {
  306. taskType: 7,
  307. checkResult: 1,
  308. taskName: '更换改善人驳回',
  309. currentPermission: 5,
  310. btnList: [
  311. {
  312. name: '制定改善方案',
  313. componentName: 'pdca',
  314. pdcaSetting: 'p',
  315. nextPermission: 4,
  316. nextPermissionName: '单位负责人',
  317. params: [
  318. { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
  319. { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
  320. { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
  321. { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 接收人姓名
  322. { paramsKey: 'taskPlan', valueKey: null } // plan
  323. ]
  324. }
  325. ],
  326. row1: { hasJoin: true, name: '单位负责人x', key: 'establishEmpName' },
  327. row2: {hasJoin: false, name: '驳回更换改善人的申请'},
  328. selectDetails: null
  329. },
  330. {
  331. taskType: 8,
  332. checkResult: 1,
  333. taskName: '改善计划plan通过',
  334. currentPermission: 5,
  335. btnList: [
  336. {
  337. name: '记录改善方案',
  338. componentName: 'pdca',
  339. pdcaSetting: 'pdca',
  340. nextPermission: 4,
  341. nextPermissionName: '单位负责人',
  342. params: [
  343. { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
  344. { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
  345. { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
  346. { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 接收人姓名
  347. { paramsKey: 'taskPlan', valueKey: null }, // plan
  348. { paramsKey: 'taskAction', valueKey: null }, // action
  349. { paramsKey: 'taskDoRequestList', valueKey: null }, // do
  350. { paramsKey: 'taskCheckRequestList', valueKey: null } // check
  351. ]
  352. }
  353. ],
  354. row1: { hasJoin: true, name: '单位管理员x', key: 'establishEmpName' },
  355. row2: {hasJoin: false, name: '通过改善计划审核,开始执行改善计划'},
  356. selectDetails: {
  357. name: '查看改善计划详情',
  358. componentName: 'pdca',
  359. pdcaSetting: 'p',
  360. key: 'taskPlan',
  361. disabled: true
  362. }
  363. },
  364. {
  365. taskType: 9,
  366. checkResult: 1,
  367. taskName: '改善计划plan不通过',
  368. currentPermission: 5,
  369. btnList: [
  370. {
  371. name: '制定改善方案',
  372. componentName: 'pdca',
  373. pdcaSetting: 'p',
  374. nextPermission: 4,
  375. nextPermissionName: '单位负责人',
  376. params: [
  377. { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
  378. { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
  379. { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
  380. { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 接收人姓名
  381. { paramsKey: 'taskPlan', valueKey: null } // plan
  382. ]
  383. }
  384. ],
  385. row1: { hasJoin: true, name: '单位管理员x', key: 'establishEmpName' },
  386. row2: {hasJoin: false, name: '建议重新完善改善计划'},
  387. selectDetails: {
  388. name: '查看原因详情',
  389. key: 'approveReason',
  390. componentName: 'disagree',
  391. disabled: true
  392. }
  393. },
  394. {
  395. taskType: 10,
  396. checkResult: 1,
  397. taskName: '改善方案PDCA通过',
  398. currentPermission: 1,
  399. btnList: [
  400. {
  401. name: '不通过',
  402. componentName: 'disagree',
  403. nextPermission: 4,
  404. nextPermissionName: '单位负责人',
  405. params: [
  406. { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
  407. { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
  408. { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
  409. { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 接收人姓名
  410. { paramsKey: 'approveReason', valueKey: 'approveReason', isOutvalueKey: false } // 原因
  411. ]
  412. },
  413. {
  414. name: '通过',
  415. componentName: null,
  416. nextPermission: 4,
  417. nextPermissionName: '单位负责人',
  418. params: [
  419. { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
  420. { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
  421. { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
  422. { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false } // 接收人姓名
  423. ]
  424. }
  425. ],
  426. row1: { hasJoin: true, name: '单位负责人x', key: 'establishEmpName' },
  427. row2: {hasJoin: false, name: '通过了改善方案(PDCA)'},
  428. selectDetails: {
  429. name: '查看改善方案详情',
  430. componentName: 'pdca',
  431. pdcaSetting: 'pacd',
  432. hasAnyData: true, // 是否有多个数据需要回显(多个数据对多个key)
  433. dataKey: [
  434. {key: 'taskPlan', isOutvalueKey: false}, // plan
  435. {key: 'taskDoRequestList', isOutvalueKey: false}, // do
  436. {key: 'taskCheckRequestList', isOutvalueKey: false}, // check
  437. {key: 'taskAction', isOutvalueKey: false}, // action
  438. ],
  439. disabled: true
  440. }
  441. },
  442. {
  443. taskType: 11,
  444. checkResult: 1,
  445. taskName: '改善方案PDCA不通过',
  446. currentPermission: 5,
  447. btnList: [
  448. {
  449. name: '制定改善方案',
  450. componentName: 'pdca',
  451. pdcaSetting: 'p',
  452. nextPermission: 4,
  453. nextPermissionName: '单位负责人',
  454. params: [// ?
  455. { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
  456. { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
  457. { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
  458. { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 接收人姓名
  459. { paramsKey: 'taskPlan', valueKey: null } // plan
  460. ]
  461. },
  462. ],
  463. row1: { hasJoin: true, name: '单位管理员x', key: 'establishEmpName' },
  464. row2: {hasJoin: false, name: '建议重新完善改善计划'},
  465. selectDetails: {
  466. name: '查看原因详情',
  467. key: 'approveReason',
  468. componentName: 'disagree',
  469. disabled: true
  470. }
  471. },
  472. {
  473. taskType: 12,
  474. checkResult: 1,
  475. taskName: '申请更改改善人',
  476. currentPermission: 4,
  477. btnList: [
  478. {
  479. name: '更改改善人',
  480. componentName: 'assign-mission',
  481. nextPermission: 5,
  482. nextPermissionName: '改善者',
  483. params: [
  484. { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
  485. { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
  486. { paramsKey: 'appointFlag', valueKey: 'appointFlag', isOutvalueKey: true }, // 已指派标志, 0 未指派 1已指派
  487. { paramsKey: 'desicion', valueKey: null }, // 改善方案 目前只有pdca 0
  488. { paramsKey: 'receiveEmpId', valueKey: null }, // 指派人
  489. { paramsKey: 'receiveEmpName', valueKey: null }, // 指派人姓名
  490. { paramsKey: 'needApproveFlag', valueKey: null } // 是否需要审核 true 是 false 不需要
  491. ]
  492. },
  493. {
  494. name: '驳回请求',
  495. componentName: null,
  496. nextPermission: 5,
  497. nextPermissionName: '改善者',
  498. params: [
  499. { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
  500. { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
  501. { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 指派人
  502. { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 指派人姓名
  503. { paramsKey: 'approveReason', valueKey: null } // 原因
  504. ]
  505. },
  506. ],
  507. row1: { hasJoin: true, name: '改善人x', key: 'establishEmpName' },
  508. row2: {hasJoin: false, name: '申请更换改善人'},
  509. selectDetails: null
  510. },
  511. {
  512. taskType: 13,
  513. checkResult: 1,
  514. taskName: '制定改善方案',
  515. currentPermission: 4,
  516. btnList: [
  517. {
  518. name: '不通过',
  519. componentName: 'disagree',
  520. nextPermission: 5,
  521. nextPermissionName: '改善者',
  522. params: [
  523. { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
  524. { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
  525. { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 指派人
  526. { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 指派人姓名
  527. { paramsKey: 'taskPlan', valueKey: 'taskPlan', isOutvalueKey: false }, // 改善plan
  528. { paramsKey: 'approveReason', valueKey: null } // 审核不通过原因
  529. ]
  530. },
  531. {
  532. name: '通过',
  533. componentName: null,
  534. nextPermission: 5,
  535. nextPermissionName: '改善者',
  536. params: [
  537. { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
  538. { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
  539. { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 指派人
  540. { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 指派人姓名
  541. { paramsKey: 'taskPlan', valueKey: 'taskPlan', isOutvalueKey: false } // 改善plan
  542. ]
  543. },
  544. ],
  545. row1: { hasJoin: true, name: '改善者x', key: 'establishEmpName' },
  546. row2: {hasJoin: false, name: '提交了改善计划(PLAN)'},
  547. selectDetails: {
  548. name: '查看改善计划详情',
  549. componentName: 'pdca',
  550. pdcaSetting: 'p',
  551. key: 'taskPlan',
  552. disabled: true
  553. }
  554. },
  555. {
  556. taskType: 14,
  557. checkResult: 1,
  558. taskName: '制定改善方案plan',
  559. currentPermission: 4,
  560. btnList: [
  561. {
  562. name: '不通过',
  563. componentName: 'disagree',
  564. nextPermission: 5,
  565. nextPermissionName: '改善者',
  566. params: [
  567. { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
  568. { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
  569. { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 指派人
  570. { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 指派人姓名
  571. { paramsKey: 'taskPlan', valueKey: 'taskPlan', isOutvalueKey: false }, // 改善plan
  572. { paramsKey: 'approveReason', valueKey: null } // 审核不通过原因
  573. ]
  574. },
  575. {
  576. name: '通过',
  577. componentName: null,
  578. nextPermission: 5,
  579. nextPermissionName: '改善者',
  580. params: [
  581. { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
  582. { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
  583. { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 指派人
  584. { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 指派人姓名
  585. { paramsKey: 'taskPlan', valueKey: 'taskPlan', isOutvalueKey: false } // 改善plan
  586. ]
  587. },
  588. ],
  589. row1: { hasJoin: true, name: '改善者x', key: 'establishEmpName' },
  590. row2: {hasJoin: false, name: '提交了改善计划(PLAN)'},
  591. selectDetails: {
  592. name: '查看改善计划详情',
  593. key: 'taskPlan',
  594. componentName: 'pdca',
  595. pdcaSetting: 'p',
  596. nextPermission: 5,
  597. disabled: true
  598. }
  599. },
  600. {
  601. taskType: 15,
  602. checkResult: 1,
  603. taskName: '制定改善方案',
  604. currentPermission: 4,
  605. btnList: [
  606. {
  607. name: '不通过',
  608. componentName: 'disagree',
  609. nextPermission: 5,
  610. nextPermissionName: '改善者',
  611. params: [
  612. { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
  613. { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
  614. { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 指派人
  615. { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 指派人姓名
  616. { paramsKey: 'taskPlan', valueKey: 'taskPlan', isOutvalueKey: false }, // 改善plan
  617. { paramsKey: 'approveReason', valueKey: null } // 审核不通过原因
  618. ]
  619. },
  620. {
  621. name: '通过',
  622. componentName: null,
  623. nextPermission: 5,
  624. nextPermissionName: '改善者',
  625. params: [
  626. { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
  627. { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
  628. { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 指派人
  629. { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 指派人姓名
  630. { paramsKey: 'taskPlan', valueKey: 'taskPlan', isOutvalueKey: false } // 改善plan
  631. ]
  632. },
  633. ],
  634. row1: { hasJoin: true, name: '改善者x', key: 'establishEmpName' },
  635. row2: {hasJoin: false, name: '提交了改善计划(PLAN)'},
  636. selectDetails: {
  637. name: '查看改善计划详情',
  638. key: 'taskPlan',
  639. componentName: 'pdca',
  640. pdcaSetting: 'p',
  641. nextPermission: 5,
  642. disabled: true
  643. }
  644. },
  645. {
  646. taskType: 16,
  647. checkResult: 1,
  648. taskName: '记录改善方案pdca',
  649. currentPermission: 4,
  650. btnList: [
  651. {
  652. name: '不通过',
  653. componentName: 'disagree',
  654. nextPermission: 5,
  655. nextPermissionName: '改善者',
  656. params: [
  657. { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
  658. { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
  659. { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 指派人
  660. { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 指派人姓名
  661. { paramsKey: 'taskPlan', valueKey: 'taskPlan', isOutvalueKey: false }, // 改善plan
  662. { paramsKey: 'taskAction', valueKey: null }, // action
  663. { paramsKey: 'taskDoRequestList', valueKey: null }, // do
  664. { paramsKey: 'taskCheckRequestList', valueKey: null } // check
  665. ]
  666. },
  667. {
  668. name: '通过',
  669. componentName: null,
  670. nextPermission: 1,
  671. nextPermissionName: '管理员',
  672. params: [
  673. { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
  674. { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
  675. { paramsKey: 'receiveEmpId', valueKey: 'adminId', isOutvalueKey: true }, // 接收人id
  676. { paramsKey: 'receiveEmpName', valueKey: 'adminName', isOutvalueKey: true }, // 接收人姓名
  677. ]
  678. },
  679. ],
  680. row1: { hasJoin: true, name: '改善者x', key: 'establishEmpName' },
  681. row2: {hasJoin: false, name: '提交了改善计划(PLAN)'},
  682. selectDetails: {
  683. name: '查看改善方案详情',
  684. hasAnyData: true, // 是否有多个数据需要回显(多个数据对多个key)
  685. dataKey: [
  686. {key: 'taskPlan', isOutvalueKey: false}, // plan
  687. {key: 'taskDoRequestList', isOutvalueKey: false}, // do
  688. {key: 'taskCheckRequestList', isOutvalueKey: false}, // check
  689. {key: 'taskAction', isOutvalueKey: false}, // action
  690. ],
  691. componentName: 'pdca',
  692. pdcaSetting: 'pdca',
  693. disabled: true
  694. }
  695. },
  696. {
  697. taskType: 17,
  698. checkResult: 1,
  699. taskName: '改善方案plan通过',
  700. currentPermission: 4,
  701. btnList: [],
  702. row1: { hasJoin: true, name: '管理员x', key: 'establishEmpName' },
  703. row2: {hasJoin: false, name: '完成改善,本次任务结束'},
  704. selectDetails: {
  705. name: '查看改善方案详情',
  706. hasAnyData: true, // 是否有多个数据需要回显(多个数据对多个key)
  707. dataKey: [
  708. {key: 'taskPlan', isOutvalueKey: false}, // plan
  709. {key: 'taskDoRequestList', isOutvalueKey: false}, // do
  710. {key: 'taskCheckRequestList', isOutvalueKey: false}, // check
  711. {key: 'taskAction', isOutvalueKey: false}, // action
  712. ],
  713. componentName: 'pdca',
  714. pdcaSetting: 'pdca',
  715. disabled: true
  716. }
  717. },
  718. {
  719. taskType: 18,
  720. checkResult: 1,
  721. taskName: '改善方案plan通过, 改善回复通过',
  722. currentPermission: 4,
  723. btnList: [
  724. {
  725. name: '指派改善任务',
  726. componentName: 'assign-mission',
  727. nextPermission: 5,
  728. nextPermissionName: '改善者',
  729. params: [
  730. { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
  731. { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
  732. { paramsKey: 'appointFlag', valueKey: 'appointFlag', isOutvalueKey: true }, // 已指派标志, 0 未指派 1已指派
  733. { paramsKey: 'desicion', valueKey: null }, // 改善方案 目前只有pdca
  734. { paramsKey: 'receiveEmpId', valueKey: null }, // 指派人
  735. { paramsKey: 'receiveEmpName', valueKey: null }, // 指派人姓名
  736. { paramsKey: 'needApproveFlag', valueKey: null } // 是否需要审核 true 是 false 不需要
  737. ]
  738. }
  739. ],
  740. row1: { hasJoin: true, name: '管理员x', key: 'establishEmpName' },
  741. row2: {hasJoin: false, name: '改善方案不通过,重新执行改善流程'},
  742. selectDetails: {
  743. name: '查看原因详情',
  744. key: 'approveReason',
  745. componentName: 'disagree',
  746. disabled: true
  747. }
  748. },
  749. ];
  750. export default taskTypeList;