setting.js 31 KB

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