123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280 |
- // 任务流程列表
- const taskTypeList = [
- {
- // 任务当前状态
- taskType: 1,
- currentPermission: 4, // 当前任务在哪
- taskName: '创建任务',
- // 《只针对第一步操作区分按钮是显示 指派改善任务还是改善回复》 1不用管 2 改善回复 3 制定改善方案
- checkResult: 3,
- // 底部按钮 (name: 按钮名字, componentName: 点击后跳转的页面, nextPermission:下一步指派给谁)
- btnList: [
- {name: '不认可', componentName: 'disagree', nextPermission: 1, nextPermissionName: '管理员'},
- {name: '指派改善任务', componentName: 'assign-mission', nextPermission: 5, nextPermissionName: '改善者' }
- ],
- // 第一行
- row1: { hasJoin: true, name: '查核人*', key: 'establishEmpName' },
- // 第二行
- row2: {hasJoin: true, name: '发送改善通知,查核结果:*', key: 'xx' },
- // 查看xx详情 (name: 详情名字, componentName: 点击后跳转的页面, disabled: 底部按钮禁用)
- selectDetails: { name: '查看查核结果详情', componentName: 'disagree', disabled: true }
- },
- {
- taskType: 1,
- currentPermission: 4,
- taskName: '创建任务',
- checkResult: 2,
- btnList: [
- {name: '不认可', componentName: 'disagree', nextPermission: 1, nextPermissionName: '管理员'},
- {name: '改善回复', componentName: 'write-back', nextPermission: 1, nextPermissionName: '管理员' }
- ],
- row1: { hasJoin: true, name: '查核人*', key: 'establishEmpName' },
- row2: {hasJoin: true, name: '发送改善通知,查核结果:*', key: 'xx' },
- selectDetails: {name: '查看查核结果详情', componentName: 'disagree', disabled: true}
- },
- {
- taskType: 2,
- currentPermission: 1,
- taskName: '不认可',
- checkResult: 1,
- btnList: [
- {name: '重新发送', componentName: 'disagree', nextPermission: 4, nextPermissionName: '单位负责人'},
- {name: '发送给其他人', componentName: 'personnel', nextPermission: 4, nextPermissionName: '单位负责人' }
- ],
- row1: { hasJoin: true, name: '单位负责人*', key: 'establishEmpName' },
- row2: {hasJoin: false, name: '不认可改善通知' },
- selectDetails: {name: '查看不认可原因详情', componentName: 'disagree', disabled: true}
- },
- {
- taskType: 3,
- currentPermission: 4,
- taskName: '重新发送',
- checkResult: 1,
- btnList: [
- {name: '指派改善任务', componentName: 'assign-mission', nextPermission: 4, nextPermissionName: '单位负责人' }
- ],
- row1: { hasJoin: true, name: '管理员*', key: 'establishEmpName' },
- row2: {hasJoin: false, name: '重新发送改善通知' },
- selectDetails: {name: '查看原因详情', componentName: 'disagree', disabled: true}
- },
- {
- taskType: 4,
- checkResult: 1,
- taskName: '指派改善任务',
- currentPermission: 5,
- btnList: [
- {name: '申请更换改善人', componentName: null, nextPermission: 4, nextPermissionName: '单位负责人' },
- {name: '制定改善方案', componentName: 'pdca', nextPermission: 5, nextPermissionName: '改善者', pdcaSetting: 'p' }
- ],
- row1: { hasJoin: true, name: '单位负责人*', key: 'establishEmpName' },
- row2: {hasJoin: true, name: '指派*为改善人', key: 'receiveEmpName'},
- selectDetails: null
- },
- {
- taskType: 5,
- checkResult: 1,
- taskName: '改善回复',
- currentPermission: 1,
- btnList: [
- {name: '不通过', componentName: null, nextPermission: 4, nextPermissionName: '单位负责人' },
- {name: '通过', componentName: null, nextPermission: null, nextPermission: 4, nextPermissionName: '单位负责人' }
- ],
- row1: { hasJoin: true, name: '单位负责人*', key: 'establishEmpName' },
- row2: {hasJoin: false, name: '提交了改善回复'},
- selectDetails: {name: '查看改善回复详情', componentName: 'write-back', disabled: true},
- },
- {
- taskType: 6,
- checkResult: 1,
- taskName: '更换改善人',
- currentPermission: 5,
- btnList: [
- {name: '申请更换改善人', componentName: null, nextPermission: 4, nextPermissionName: '单位负责人' },
- {name: '制定改善方案', componentName: 'pdca', nextPermission: 5, nextPermissionName: '改善者', pdcaSetting: 'p' }
- ],
- row1: { hasJoin: true, name: '单位负责人*', key: 'establishEmpName' },
- row2: {hasJoin: true, name: '指派*为改善人', key: 'receiveEmpName'},
- selectDetails: null
- },
- {
- taskType: 7,
- checkResult: 1,
- taskName: '更换改善人驳回',
- currentPermission: 5,
- btnList: [
- {name: '制定改善方案', componentName: 'pdca', nextPermission: 5, nextPermissionName: '改善者', pdcaSetting: 'p' }
- ],
- row1: { hasJoin: true, name: '单位负责人*', key: 'establishEmpName' },
- row2: {hasJoin: false, name: '驳回更换改善人的申请'},
- selectDetails: null
- },
- {
- taskType: 8,
- checkResult: 1,
- taskName: '改善计划plan通过',
- currentPermission: 5,
- btnList: [
- {name: '记录改善方案', componentName: 'pdca', nextPermission: 5, nextPermissionName: '改善者', pdcaSetting: 'pdca' }
- ],
- row1: { hasJoin: true, name: '单位管理员*', key: 'establishEmpName' },
- row2: {hasJoin: false, name: '通过改善计划审核,开始执行改善计划'},
- selectDetails: {name: '查看改善计划详情', componentName: 'pdca', pdcaSetting: 'p', disabled: true}
- },
- {
- taskType: 9,
- checkResult: 1,
- taskName: '改善计划plan不通过',
- currentPermission: 5,
- btnList: [
- {name: '制定改善方案', componentName: 'pdca', nextPermission: 5, nextPermissionName: '改善者', pdcaSetting: 'p' }
- ],
- row1: { hasJoin: true, name: '单位管理员*', key: 'establishEmpName' },
- row2: {hasJoin: false, name: '建议重新完善改善计划'},
- selectDetails: {name: '查看原因详情', componentName: 'disagree', disabled: true}
- },
- {
- taskType: 10,
- checkResult: 1,
- taskName: '改善方案PDCA通过',
- currentPermission: 1,
- btnList: [
- {name: '不通过', componentName: 'disagree', nextPermission: 4, nextPermissionName: '单位负责人' },
- {name: '通过', componentName: null, nextPermission: 4, nextPermissionName: '单位负责人' }
- ],
- row1: { hasJoin: true, name: '单位负责人*', key: 'establishEmpName' },
- row2: {hasJoin: false, name: '通过了改善方案(PDCA)'},
- selectDetails: {name: '查看改善方案详情', componentName: 'pdca', nextPermission: 5, nextPermissionName: '改善者', pdcaSetting: 'pacd', disabled: true}
- },
- {
- taskType: 11,
- checkResult: 1,
- taskName: '改善方案PDCA不通过',
- currentPermission: 5,
- btnList: [
- {name: '制定改善方案', componentName: 'pdca', nextPermission: 5, nextPermissionName: '改善者', pdcaSetting: 'p' },
- ],
- row1: { hasJoin: true, name: '单位管理员*', key: 'establishEmpName' },
- row2: {hasJoin: false, name: '建议重新完善改善计划'},
- selectDetails: {name: '查看原因详情', componentName: 'disagree', nextPermission: 4, nextPermissionName: '单位负责人', disabled: true}
- },
- {
- taskType: 12,
- checkResult: 1,
- taskName: '申请更改改善人',
- currentPermission: 4,
- btnList: [
- {name: '更改改善人', componentName: 'assign-mission', nextPermission: 5, nextPermissionName: '改善者' },
- {name: '驳回请求', componentName: null, nextPermission: 5, nextPermissionName: '改善者' },
- ],
- row1: { hasJoin: true, name: '改善人*', key: 'establishEmpName' },
- row2: {hasJoin: false, name: '申请更换改善人'},
- selectDetails: null
- },
- {
- taskType: 13,
- checkResult: 1,
- taskName: '制定改善方案',
- currentPermission: 4,
- btnList: [
- {name: '不通过', componentName: 'disagree', nextPermission: 4, nextPermissionName: '单位负责人' },
- {name: '通过', componentName: null, nextPermission: 4, nextPermissionName: '单位负责人' },
- ],
- row1: { hasJoin: true, name: '改善者*', key: 'establishEmpName' },
- row2: {hasJoin: false, name: '提交了改善计划(PLAN)'},
- selectDetails: {name: '查看改善计划详情', componentName: 'pdca', nextPermission: 5, nextPermissionName: '改善者', pdcaSetting: 'p', disabled: true}
- },
- {
- taskType: 14,
- checkResult: 1,
- taskName: '制定改善方案plan',
- currentPermission: 4,
- btnList: [
- {name: '不通过', componentName: 'disagree', nextPermission: 5, nextPermissionName: '改善者' },
- {name: '通过', componentName: null, nextPermission: 5, nextPermissionName: '改善者' },
- ],
- row1: { hasJoin: true, name: '改善者*', key: 'establishEmpName' },
- row2: {hasJoin: false, name: '提交了改善计划(PLAN)'},
- selectDetails: {name: '查看改善计划详情', componentName: 'pdca', nextPermission: 5, nextPermissionName: '改善者', pdcaSetting: 'p', disabled: true}
- },
- {
- taskType: 15,
- checkResult: 1,
- taskName: '改善方案暂停',
- currentPermission: 4,
- btnList: [
- {name: '不通过', componentName: 'disagree', nextPermission: 4, nextPermissionName: '单位负责人' },
- {name: '通过', componentName: null, nextPermission: 4, nextPermissionName: '单位负责人' },
- ],
- row1: { hasJoin: true, name: '改善者*', key: 'establishEmpName' },
- row2: {hasJoin: false, name: '提交了改善计划(PLAN)'},
- selectDetails: {name: '查看改善计划详情', componentName: 'pdca', nextPermission: 5, nextPermissionName: '改善者', pdcaSetting: 'p', disabled: true}
- },
- {
- taskType: 16,
- checkResult: 1,
- taskName: '记录改善方案plan',
- currentPermission: 4,
- btnList: [
- {name: '不通过', componentName: 'disagree', nextPermission: 5, nextPermissionName: '改善者' },
- {name: '通过', componentName: null, nextPermission: 1, nextPermissionName: '管理员' },
- ],
- row1: { hasJoin: true, name: '改善者*', key: 'establishEmpName' },
- row2: {hasJoin: false, name: '提交了改善计划(PLAN)'},
- selectDetails: {name: '查看改善方案详情', componentName: 'pdca', nextPermission: 5, nextPermissionName: '改善者', pdcaSetting: 'pdca', disabled: true}
- },
- {
- taskType: 17,
- checkResult: 1,
- taskName: '改善方案plan通过, 改善回复通过',
- currentPermission: 4,
- btnList: [],
- row1: { hasJoin: true, name: '管理员*', key: 'establishEmpName' },
- row2: {hasJoin: false, name: '完成改善,本次任务结束'},
- selectDetails: {name: '查看改善方案详情', componentName: 'pdca', nextPermission: 5, nextPermissionName: '改善者', pdcaSetting: 'pdca', disabled: true}
- },
- {
- taskType: 18,
- checkResult: 1,
- taskName: '改善方案plan通过, 改善回复通过',
- currentPermission: 4,
- btnList: [
- {name: '指派改善任务', componentName: 'assign-mission', nextPermission: 4, nextPermissionName: '单位负责人' },
- ],
- row1: { hasJoin: true, name: '管理员*', key: 'establishEmpName' },
- row2: {hasJoin: false, name: '改善方案不通过,重新执行改善流程'},
- selectDetails: {name: '查看原因详情', componentName: 'disagree', disabled: true }
- },
- ];
- export default taskTypeList;
- /**
- * 字段描述:
- * taskType: // 任务当前状态
- * currentPermission: // 当前任务位置在哪 (1、管理员 2、查核组长 3、查核组员 4、单位负责人 5、改善者)
- * taskName: // 任务名称
- * checkResult: // 《只针对第一步创建任务 区分按钮 显示指派改善任务还是改善回复》 1不用管 2 改善回复 3 制定改善方案
- * btnList:{ // 底部按钮
- * name: // 按钮名字,
- * componentName: // 点击后跳转的页面,null直接刷新页面即可
- * nextPermission: // 下一步指派给谁id
- * nextPermissionName: // 下一步指派给谁
- * pdcaSetting: // 跳转pdca的配置: <p: 只能编辑plan, pdca: 都可以编辑>
- * }
- * row1: { // 第一行显示的内容
- * hasJoin:// 是否需要拼接,
- * name: // 显示的内容 <注意 星号*指占位符, 后面需要被key字段替换的,
- * key: // 要显示的的内容(后端返回的key, 用于替换星号*)
- * }
- * row2: { // 第二行显示的内容
- * hasJoin: // 是否需要拼接,
- * name: // 显示的内容 <注意 星号*指占位符, 后面需要被key字段替换的,
- * key: // 要显示的的内容(后端返回的key, 用于替换星号*)
- * }
- * selectDetails {
- * name: '查看改善计划详情', // 详情显示的名字
- * componentName: 'pdca', // 点击后跳转的页面
- * pdcaSetting: 'p', // 当componentName='pdca', 需要判断pdcaSetting='p', 还是‘pdca’
- * disabled: true // 底部按钮禁用
- * }
- */
|