yuwenfen hace 4 años
padre
commit
e23633e341

+ 1 - 1
components/tm-upload-img/tm-upload-img.vue

@@ -132,7 +132,7 @@
 				margin-right: 25rpx;
 				margin-bottom: 25rpx;
 				width: 300rpx;
-				height: 225rpx;
+        height: 225rpx;
 
 				>image {
 					width: 300rpx;

+ 0 - 3
pages/mission-action/components/pdca-components/one-textarea.vue

@@ -53,9 +53,6 @@
 			label() {
         return this.type === 'plan' ? '改善计划' : '对策处置'
       }
-    },
-    created() {
-      this.value = this.defaultValue;
     },
 		methods: {
       changeVal(e) {

+ 2 - 2
pages/mission-action/components/pdca.vue

@@ -120,7 +120,7 @@
 			uni.setNavigationBarTitle({
 				title: '改善计划'
       });
-      if(this.disabled) {
+      if(this.disabled || this.btnInfo.isEdit) {
         this.plan = this.values['plan'] || '';
         this.doList = (this.values['do'] && this.values['do'].length > 0)
           ? this.getComList(this.values['do'], 'do')
@@ -159,7 +159,7 @@
           improveScheme // 改善方案名称
         };
         this.btnInfo.params && this.btnInfo.params.map(item => {
-          if(item.valueKey){
+          if(item.valueKey && !item.isEdit){
             requestParams[item.paramsKey] = (
               item.isOutvalueKey
               ? this.missionDetails

+ 13 - 2
pages/mission-action/mission-action.vue

@@ -62,7 +62,9 @@
           key,
           labelKey,
           dataKey,
-          pdcaSetting
+          pdcaSetting,
+          isEdit,
+          params
         } = details;
         this.currentComponet = componentName;
         this.disabled = disabled;
@@ -78,6 +80,15 @@
           this.values = values;
         }else { // 编辑流程
           this.btnInfo = details;
+          if(isEdit) { // 之前暂存过,需要先回显数据
+            let values = {};
+            params && params.map(item => {
+              if(item.labelKey){
+                values[item.labelKey] = details[item.valueKey];
+              }
+            });
+            this.values = values;
+          }
         }
         this.pdcaSetting = pdcaSetting;
       },
@@ -90,7 +101,7 @@
 						data
 					}
 				}).then(data1 => {
-          if(!data1){
+          if(data1){
             let taskId = uni.getStorageSync('taskId');
             uni.redirectTo({
               url: `/pages/mission-details/mission-details?taskId=${taskId}`

+ 18 - 1
pages/mission-details/mission-details.vue

@@ -25,7 +25,7 @@
 										<text>{{ getContext(item, false, 'row2') }}</text>
 									</view>
 									<view class="sub-title">
-										<text>{{ item.createTime }}</text>
+										<text>{{ item.recordTime }}</text>
 									</view>
 								</view>
                 <template v-if="getContext(item, true, 'selectDetails')">
@@ -64,6 +64,7 @@
   import { mapState } from "vuex";
   import listItem from '../mission/components/list-item.vue';
   import taskTypeList from './setting.js';
+  import pdcaSetting from './pdcaSetting.js'
 
 	export default {
     computed: {
@@ -118,6 +119,22 @@
 			// 点击右侧按钮
 			clickBtn(currentInfo, btnInfo) {
         if(btnInfo.componentName){ // 有组件名,则跳转页面
+          if(btnInfo.componentName === 'pdca'){
+            const { taskType, needApproveFlag } = this.missionDetails;
+            if(taskType === 13 || taskType === 15){ // 制定改善方案中(需要回显暂存过的数据)
+              if(needApproveFlag){// 需要审核(pdca)
+                btnInfo= { ...btnInfo, ...pdcaSetting['editPdcaBtnInfo'], isEdit: true };
+              }else {
+                btnInfo= { ...btnInfo, ...pdcaSetting['editPBtnInfo'], isEdit: true };
+              }
+            }else {
+              if(needApproveFlag){ // 需要审核(pdca)
+                btnInfo= { ...btnInfo, ...pdcaSetting['pdcaBtnInfo'] };
+              }else {
+                btnInfo= { ...btnInfo, ...pdcaSetting['pBtnInfo'] };
+              }
+            }
+          }
           uni.navigateTo({
             url: `/pages/mission-action/mission-action?details=${encodeURIComponent(JSON.stringify({...currentInfo, ...btnInfo}))}`
 				  });

+ 49 - 0
pages/mission-details/pdcaSetting.js

@@ -0,0 +1,49 @@
+const baseSetting = [
+  { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+  { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+  { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
+  { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 接收人姓名
+];
+
+let pdcaSetting = {
+  // p按钮的信息(未暂存过的)
+  pBtnInfo: {
+    pdcaSetting: 'p',
+    params: [
+      ...baseSetting,
+      { paramsKey: 'taskPlan', valueKey: null } // plan
+    ]
+  },
+  // 编辑p按钮的信息(暂存过的)
+  editPBtnInfo: {
+    pdcaSetting: 'p',
+    params: [
+      ...baseSetting,
+      { paramsKey: 'taskPlan', valueKey: 'taskPlan', isOutvalueKey: false, labelKey: 'plan', isEdit: true } // plan
+    ]
+  },
+  // pdca按钮的信息(未暂存过的)
+  pdcaBtnInfo: {
+    pdcaSetting: 'pdca',
+    params: [
+      ...baseSetting,
+      { paramsKey: 'taskPlan', valueKey: null }, // plan
+      { paramsKey: 'taskAction', valueKey: null }, // action
+      { paramsKey: 'taskDoRequestList', valueKey: null }, // do
+      { paramsKey: 'taskCheckRequestList', valueKey: null } // check
+    ]
+  },
+  // 编辑pdca按钮的信息(暂存过的)
+  editPdcaBtnInfo: {
+    pdcaSetting: 'pdca',
+    params: [
+      ...baseSetting,
+      { paramsKey: 'taskPlan', valueKey: 'taskPlan', isOutvalueKey: false, labelKey: 'plan', isEdit: true }, // 改善plan
+      { paramsKey: 'taskAction', valueKey: 'taskAction', isOutvalueKey: false, labelKey: 'action', isEdit: true }, // action
+      { paramsKey: 'taskDoRequestList', valueKey: 'taskDoRequestList', isOutvalueKey: false, labelKey: 'do', isEdit: true }, // do
+      { paramsKey: 'taskCheckRequestList', valueKey: 'taskCheckRequestList', isOutvalueKey: false, labelKey: 'check', isEdit: true }, // check
+    ]
+  }
+};
+
+export default pdcaSetting;

+ 770 - 0
pages/mission-details/setting-old.js

@@ -0,0 +1,770 @@
+// 任务流程列表
+
+const taskTypeList = [
+  {
+    taskType: 1, // 任务当前状态
+    currentPermission: 4, // 当前任务在哪
+    taskName: '创建任务',
+    checkResult: 3, // 只针对第一步操作区分按钮是显示 (指派改善任务还是改善回复) 1不用管 2 改善回复 3 制定改善方案
+    btnList: [ //  底部按钮
+      {
+        name: '不认可', // 按钮显示名字
+        componentName: 'disagree', // 点击后跳转的组件名
+        nextPermission: 1, // 接收人id
+        nextPermissionName: '管理员', // 接收人名字
+        params: [ // 接口保存的参数配置(paramsKey: 参数名, valueKey: 使用详情接口key, 为null, 表示当前组件可自输入, isOutvalueKey: 是否详情接一级key, 不是则在当前任务状态中找key(如pfmTaskCirculationList下面))
+          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+          { paramsKey: 'receiveEmpId', valueKey: 'adminId', isOutvalueKey: true }, // 接收人id
+          { paramsKey: 'receiveEmpName', valueKey: 'adminName', isOutvalueKey: true }, // 接收人姓名
+          { paramsKey: 'approveReason', valueKey: null } // 不认可原因
+        ]
+      },
+      {
+        name: '指派改善任务',
+        componentName: 'assign-mission',
+        nextPermission: 5,
+        nextPermissionName: '改善者',
+        params: [
+          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+          { paramsKey: 'appointFlag', valueKey: 'appointFlag', isOutvalueKey: true }, // 已指派标志, 0 未指派 1已指派
+          { paramsKey: 'desicion', valueKey: null }, // 改善方案 目前只有pdca
+          { paramsKey: 'receiveEmpId', valueKey: null }, // 指派人
+          { paramsKey: 'receiveEmpName', valueKey: null }, // 指派人姓名
+          { paramsKey: 'needApproveFlag', valueKey: null } // 是否需要审核 true 是 false 不需要
+        ]
+      }
+    ],
+    // 第一行显示的内容
+    row1: {
+      hasJoin: true, // 是否需要拼接
+      name: '查核人x', // 显示的内容, x未来被替换的值
+      key: 'establishEmpName', // 使用详情接口key,用来替换x
+      isOutvalueKey: false // 是否详情接口一级key, 不是则在当前任务状态中找key(如pfmTaskCirculationList下面)
+    },
+    // 第二行显示的内容
+    row2: {
+      hasJoin: true,
+      name: '发送改善通知,查核结果:x',
+      key: 'checkDetailResult',
+      isOutvalueKey: true
+    },
+    // 查看xx详情 (name: 详情名字, componentName: 点击后跳转的页面, disabled: 底部按钮禁用)
+    selectDetails: {
+      name: '查看查核结果详情', // 详情显示的名字
+      hasAnyData: false, // 是否有多个数据需要回显 为true则使用dateKey, 否则使用key <key和datakey互斥)
+      key: 'checkDetailResult', //使用详情接口key
+      dataKey: [],
+      isOutvalueKey: true,  // 是否详情接口一级key, 不是则在当前任务状态中找key(如pfmTaskCirculationList下面)
+      componentName: 'disagree', //点击后跳转的组件名
+      disabled: true, // 调整后是否编辑和禁用
+      labelKey: 'textarea' // 回显时使用的key
+    }
+  },
+  {
+    taskType: 1,
+    currentPermission: 4,
+    taskName: '创建任务',
+    checkResult: 2,
+    btnList: [
+      {
+        name: '不认可',
+        componentName: 'disagree',
+        nextPermission: 1,
+        nextPermissionName: '管理员',
+        params: [
+          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+          { paramsKey: 'receiveEmpId', valueKey: 'adminId', isOutvalueKey: true }, // 接收人id
+          { paramsKey: 'receiveEmpName', valueKey: 'adminName', isOutvalueKey: true }, // 接收人姓名
+          { paramsKey: 'approveReason', valueKey: null }, // 不认可原因
+        ]
+      },
+      {
+        name: '改善回复',
+        componentName: 'write-back',
+        nextPermission: 1,
+        nextPermissionName: '管理员',
+        params: [
+          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+          { paramsKey: 'receiveEmpId', valueKey: 'receiveEmpId', isOutvalueKey: false }, // 接收人id
+          { paramsKey: 'receiveEmpName', valueKey: 'adminName', isOutvalueKey: true }, // 接收人姓名
+          { paramsKey: 'approveReason', valueKey: null }, // 不认可原因
+          { paramsKey: 'improveUrl', valueKey: null } // 图片地址
+        ]
+      }
+    ],
+    row1: { hasJoin: true, name: '查核人x', key: 'establishEmpName' },
+    row2: {hasJoin: true, name: '发送改善通知,查核结果:x', key: 'checkDetailResult', isOutvalueKey: true },
+    selectDetails: {
+      name: '查看查核结果详情',
+      key: 'checkDetailResult',
+      isOutvalueKey: true,
+      componentName: 'disagree',
+      disabled: true,
+      labelKey: 'textarea'
+    }
+  },
+  {
+    taskType: 2,
+    currentPermission: 1,
+    taskName: '不认可',
+    checkResult: 1,
+    btnList: [
+      {
+        name: '重新发送',
+        componentName: 'disagree',
+        nextPermission: 4,
+        nextPermissionName: '单位负责人',
+        params: [
+          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+          { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
+          { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 接收人姓名
+          { paramsKey: 'approveReason', valueKey: null } // 不认可原因
+        ]
+      },
+      {
+        name: '发送给其他人',
+        componentName: 'personnel',
+        keys: null,
+        nextPermission: 4,
+        nextPermissionName: '单位负责人',
+        params: [
+          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+          { paramsKey: 'receiveEmpId', valueKey: null }, // 接收人id
+          { paramsKey: 'receiveEmpName', valueKey: null } // 接收人姓名
+        ]
+      }
+    ],
+    row1: { hasJoin: true, name: '单位负责人x', key: 'establishEmpName' },
+    row2: {hasJoin: false, name: '不认可改善通知' },
+    selectDetails: {
+      name: '查看不认可原因详情',
+      key: 'approveReason',
+      componentName: 'disagree',
+      disabled: true,
+      labelKey: 'textarea'
+    }
+  },
+  {
+    taskType: 3,
+    currentPermission: 4,
+    taskName: '重新发送',
+    checkResult: 1,
+    btnList: [
+      {
+        name: '指派改善任务',
+        componentName: 'assign-mission',
+        nextPermission: 4,
+        nextPermissionName: '单位负责人',
+        params: [
+          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+          { paramsKey: 'appointFlag', valueKey: 'appointFlag', isOutvalueKey: true }, // 已指派标志, 0 未指派 1已指派
+          { paramsKey: 'desicion', valueKey: null }, // 改善方案 目前只有pdca
+          { paramsKey: 'receiveEmpId', valueKey: null }, // 指派人
+          { paramsKey: 'receiveEmpName', valueKey: null }, // 指派人姓名
+          { paramsKey: 'needApproveFlag', valueKey: null } // 是否需要审核 true 是 false 不需要
+        ]
+      }
+    ],
+    row1: { hasJoin: true, name: '管理员x', key: 'establishEmpName' },
+    row2: {hasJoin: false, name: '重新发送改善通知' },
+    selectDetails: {
+      name: '查看原因详情',
+      key: 'approveReason',
+      componentName: 'disagree',
+      disabled: true,
+      labelKey: 'textarea'
+    }
+  },
+  {
+    taskType: 4,
+    checkResult: 1,
+    taskName: '指派改善任务',
+    currentPermission: 5,
+    btnList: [
+      {
+        name: '申请更换改善人',
+        componentName: null,
+        nextPermission: 5,
+        nextPermissionName: '改善者',
+        params: [
+          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+          { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
+          { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false } // 接收人姓名
+        ]
+      },
+      {
+        name: '制定改善方案',
+        componentName: 'pdca',
+        nextPermission: 6,
+        nextPermissionName: '单位负责人',
+        pdcaSetting: 'p',
+        params: [
+          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+          { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
+          { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 接收人姓名
+          { paramsKey: 'taskPlan', valueKey: null} // 接收人姓名
+        ]
+      }
+    ],
+    row1: { hasJoin: true, name: '单位负责人x', key: 'establishEmpName' },
+    row2: {hasJoin: true, name: '指派x为改善人', key: 'receiveEmpName'},
+    selectDetails: null
+  },
+  {
+    taskType: 5,
+    checkResult: 1,
+    taskName: '改善回复',
+    currentPermission: 1,
+    btnList: [
+      {
+        name: '不通过',
+        componentName: null,
+        nextPermission: 4,
+        nextPermissionName: '单位负责人',
+        params: [
+          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+          { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
+          { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 接收人姓名
+        ]
+      },
+      {
+        name: '通过',
+        componentName: null,
+        nextPermission: 4,
+        nextPermissionName: '单位负责人',
+        params: [
+          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+          { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
+          { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 接收人姓名
+        ]
+      }
+    ],
+    row1: { hasJoin: true, name: '单位负责人x', key: 'establishEmpName' },
+    row2: {hasJoin: false, name: '提交了改善回复'},
+    selectDetails: {
+      name: '查看改善回复详情',
+      componentName: 'write-back',
+      hasAnyData: true, // 是否有多个数据需要回显(多个数据对多个key)
+      dataKey: [
+        {key: 'approveReason', isOutvalueKey: false, labelKey: 'textarea'}, // 回复内容
+        {key: 'improveUrl', isOutvalueKey: false, labelKey: 'filePath'} // 回复图片地址(多个用逗号分隔)
+      ],
+      disabled: true
+    },
+  },
+  {
+    taskType: 6,
+    checkResult: 1,
+    taskName: '更换改善人',
+    currentPermission: 5,
+    btnList: [
+      {
+        name: '申请更换改善人',
+        componentName: null,
+        nextPermission: 4,
+        nextPermissionName: '单位负责人',
+        params: [
+          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+          { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
+          { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false } // 接收人姓名
+        ]
+      },
+      {
+        name: '制定改善方案',
+        componentName: 'pdca',
+        pdcaSetting: 'p',
+        nextPermission: 4,
+        nextPermissionName: '单位负责人',
+        params: [
+          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+          { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
+          { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 接收人姓名
+          { paramsKey: 'taskPlan', valueKey: null }, // 接收人姓名
+        ]
+      }
+    ],
+    row1: { hasJoin: true, name: '单位负责人x', key: 'establishEmpName' },
+    row2: {hasJoin: true, name: '指派x为改善人', key: 'receiveEmpName'},
+    selectDetails: null
+  },
+  {
+    taskType: 7,
+    checkResult: 1,
+    taskName: '更换改善人驳回',
+    currentPermission: 5,
+    btnList: [
+      {
+        name: '制定改善方案',
+        componentName: 'pdca',
+        pdcaSetting: 'p',
+        nextPermission: 4,
+        nextPermissionName: '单位负责人',
+        params: [
+          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+          { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
+          { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 接收人姓名
+          { paramsKey: 'taskPlan', valueKey: null } // plan
+        ]
+      }
+    ],
+    row1: { hasJoin: true, name: '单位负责人x', key: 'establishEmpName' },
+    row2: {hasJoin: false, name: '驳回更换改善人的申请'},
+    selectDetails: null
+  },
+  {
+    taskType: 8,
+    checkResult: 1,
+    taskName: '改善计划plan通过',
+    currentPermission: 5,
+    btnList: [
+      {
+        name: '记录改善方案',
+        componentName: 'pdca',
+        pdcaSetting: 'pdca',
+        nextPermission: 4,
+        nextPermissionName: '单位负责人',
+        params: [
+          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+          { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
+          { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 接收人姓名
+          { paramsKey: 'taskPlan', valueKey: null }, // plan
+          { paramsKey: 'taskAction', valueKey: null }, // action
+          { paramsKey: 'taskDoRequestList', valueKey: null }, // do
+          { paramsKey: 'taskCheckRequestList', valueKey: null } // check
+        ]
+      }
+    ],
+    row1: { hasJoin: true, name: '单位管理员x', key: 'establishEmpName' },
+    row2: {hasJoin: false, name: '通过改善计划审核,开始执行改善计划'},
+    selectDetails: {
+      name: '查看改善计划详情',
+      componentName: 'pdca',
+      pdcaSetting: 'p',
+      key: 'taskPlan',
+      disabled: true,
+      labelKey: 'plan'
+    }
+  },
+  {
+    taskType: 9,
+    checkResult: 1,
+    taskName: '改善计划plan不通过',
+    currentPermission: 5,
+    btnList: [
+      {
+        name: '制定改善方案',
+        componentName: 'pdca',
+        pdcaSetting: 'p',
+        nextPermission: 4,
+        nextPermissionName: '单位负责人',
+        params: [
+          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+          { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
+          { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 接收人姓名
+          { paramsKey: 'taskPlan', valueKey: null } // plan
+        ]
+      }
+    ],
+    row1: { hasJoin: true, name: '单位管理员x', key: 'establishEmpName' },
+    row2: {hasJoin: false, name: '建议重新完善改善计划'},
+    selectDetails: {
+      name: '查看原因详情',
+      key: 'approveReason',
+      componentName: 'disagree',
+      disabled: true,
+      labelKey: 'textarea'
+    }
+  },
+  {
+    taskType: 10,
+    checkResult: 1,
+    taskName: '改善方案PDCA通过',
+    currentPermission: 1,
+    btnList: [
+      {
+        name: '不通过',
+        componentName: 'disagree',
+        nextPermission: 4,
+        nextPermissionName: '单位负责人',
+        params: [
+          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+          { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
+          { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 接收人姓名
+          { paramsKey: 'approveReason', valueKey: 'approveReason', isOutvalueKey: false } // 原因
+        ]
+      },
+      {
+        name: '通过',
+        componentName: null,
+        nextPermission: 4,
+        nextPermissionName: '单位负责人',
+        params: [
+          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+          { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
+          { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false } // 接收人姓名
+        ]
+      }
+    ],
+    row1: { hasJoin: true, name: '单位负责人x', key: 'establishEmpName' },
+    row2: {hasJoin: false, name: '通过了改善方案(PDCA)'},
+    selectDetails: {
+      name: '查看改善方案详情',
+      componentName: 'pdca',
+      pdcaSetting: 'pdca',
+      hasAnyData: true, // 是否有多个数据需要回显(多个数据对多个key)
+      dataKey: [
+        {key: 'taskPlan', isOutvalueKey: false, labelKey: 'plan'}, // plan
+        {key: 'taskDoRequestList', isOutvalueKey: false, labelKey: 'do'}, // do
+        {key: 'taskCheckRequestList', isOutvalueKey: false, labelKey: 'check'}, // check
+        {key: 'taskAction', isOutvalueKey: false, labelKey: 'action'}, // action
+      ],
+      disabled: true
+    }
+  },
+  {
+    taskType: 11,
+    checkResult: 1,
+    taskName: '改善方案PDCA不通过',
+    currentPermission: 5,
+    btnList: [
+      {
+        name: '制定改善方案',
+        componentName: 'pdca',
+        pdcaSetting: 'p',
+        nextPermission: 4,
+        nextPermissionName: '单位负责人',
+        params: [
+          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+          { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
+          { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 接收人姓名
+          { paramsKey: 'taskPlan', valueKey: null } // plan
+        ]
+      },
+    ],
+    row1: { hasJoin: true, name: '单位管理员x', key: 'establishEmpName' },
+    row2: {hasJoin: false, name: '建议重新完善改善计划'},
+    selectDetails: {
+      name: '查看原因详情',
+      key: 'approveReason',
+      componentName: 'disagree',
+      disabled: true,
+      labelKey: 'textarea'
+    }
+  },
+  {
+    taskType: 12,
+    checkResult: 1,
+    taskName: '申请更改改善人',
+    currentPermission: 4,
+    btnList: [
+      {
+        name: '更改改善人',
+        componentName: 'assign-mission',
+        nextPermission: 5,
+        nextPermissionName: '改善者',
+        params: [
+          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+          { paramsKey: 'appointFlag', valueKey: 'appointFlag', isOutvalueKey: true }, // 已指派标志, 0 未指派 1已指派
+          { paramsKey: 'desicion', valueKey: null }, // 改善方案 目前只有pdca 0
+          { paramsKey: 'receiveEmpId', valueKey: null }, // 指派人
+          { paramsKey: 'receiveEmpName', valueKey: null }, // 指派人姓名
+          { paramsKey: 'needApproveFlag', valueKey: null } // 是否需要审核 true 是 false 不需要
+        ]
+      },
+      {
+        name: '驳回请求',
+        componentName: null,
+        nextPermission: 5,
+        nextPermissionName: '改善者',
+        params: [
+          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+          { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 指派人
+          { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 指派人姓名
+          { paramsKey: 'approveReason', valueKey: null } // 原因
+        ]
+      },
+    ],
+    row1: { hasJoin: true, name: '改善人x', key: 'establishEmpName' },
+    row2: {hasJoin: false, name: '申请更换改善人'},
+    selectDetails: null
+  },
+  {
+    taskType: 13,
+    checkResult: 1,
+    taskName: '制定改善方案',
+    currentPermission: 4,
+    btnList: [
+      {
+        name: '不通过',
+        componentName: 'disagree',
+        nextPermission: 5,
+        nextPermissionName: '改善者',
+        params: [
+          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+          { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 指派人
+          { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 指派人姓名
+          { paramsKey: 'taskPlan', valueKey: 'taskPlan', isOutvalueKey: false }, // 改善plan
+          { paramsKey: 'approveReason', valueKey: null } // 审核不通过原因
+        ]
+      },
+      {
+        name: '通过',
+        componentName: null,
+        nextPermission: 5,
+        nextPermissionName: '改善者',
+        params: [
+          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+          { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 指派人
+          { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 指派人姓名
+          { paramsKey: 'taskPlan', valueKey: 'taskPlan', isOutvalueKey: false } // 改善plan
+        ]
+      },
+    ],
+    row1: { hasJoin: true, name: '改善者x', key: 'establishEmpName' },
+    row2: {hasJoin: false, name: '提交了改善计划(PLAN)'},
+    selectDetails: {
+      name: '查看改善计划详情',
+      componentName: 'pdca',
+      pdcaSetting: 'p',
+      key: 'taskPlan',
+      disabled: true,
+      labelKey: 'plan'
+    }
+  },
+  {
+    taskType: 14,
+    checkResult: 1,
+    taskName: '制定改善方案plan',
+    currentPermission: 4,
+    btnList: [
+      {
+        name: '不通过',
+        componentName: 'disagree',
+        nextPermission: 5,
+        nextPermissionName: '改善者',
+        params: [
+          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+          { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 指派人
+          { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 指派人姓名
+          { paramsKey: 'taskPlan', valueKey: 'taskPlan', isOutvalueKey: false }, // 改善plan
+          { paramsKey: 'approveReason', valueKey: null } // 审核不通过原因
+        ]
+      },
+      {
+        name: '通过',
+        componentName: null,
+        nextPermission: 5,
+        nextPermissionName: '改善者',
+        params: [
+          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+          { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 指派人
+          { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 指派人姓名
+          { paramsKey: 'taskPlan', valueKey: 'taskPlan', isOutvalueKey: false } // 改善plan
+        ]
+      },
+    ],
+    row1: { hasJoin: true, name: '改善者x', key: 'establishEmpName' },
+    row2: {hasJoin: false, name: '提交了改善计划(PLAN)'},
+    selectDetails: {
+      name: '查看改善计划详情',
+      key: 'taskPlan',
+      componentName: 'pdca',
+      pdcaSetting: 'p',
+      nextPermission: 5,
+      disabled: true,
+      labelKey: 'plan'
+    }
+  },
+  {
+    taskType: 15,
+    checkResult: 1,
+    taskName: '制定改善方案',
+    currentPermission: 4,
+    btnList: [
+      {
+        name: '不通过',
+        componentName: 'disagree',
+        nextPermission: 5,
+        nextPermissionName: '改善者',
+        params: [
+          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+          { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 指派人
+          { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 指派人姓名
+          { paramsKey: 'taskPlan', valueKey: 'taskPlan', isOutvalueKey: false }, // 改善plan
+          { paramsKey: 'approveReason', valueKey: null } // 审核不通过原因
+        ]
+      },
+      {
+        name: '通过',
+        componentName: null,
+        nextPermission: 5,
+        nextPermissionName: '改善者',
+        params: [
+          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+          { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 指派人
+          { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 指派人姓名
+          { paramsKey: 'taskPlan', valueKey: 'taskPlan', isOutvalueKey: false } // 改善plan
+        ]
+      },
+    ],
+    row1: { hasJoin: true, name: '改善者x', key: 'establishEmpName' },
+    row2: {hasJoin: false, name: '提交了改善计划(PLAN)'},
+    selectDetails: {
+      name: '查看改善计划详情',
+      key: 'taskPlan',
+      componentName: 'pdca',
+      pdcaSetting: 'pdca',
+      nextPermission: 5,
+      disabled: true,
+      labelKey: 'plan'
+    }
+  },
+  {
+    taskType: 16,
+    checkResult: 1,
+    taskName: '记录改善方案pdca',
+    currentPermission: 4,
+    btnList: [
+      {
+        name: '不通过',
+        componentName: 'disagree',
+        nextPermission: 5,
+        nextPermissionName: '改善者',
+        params: [
+          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+          { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 指派人
+          { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 指派人姓名
+          { paramsKey: 'taskPlan', valueKey: 'taskPlan', isOutvalueKey: false }, // 改善plan
+          { paramsKey: 'taskAction', valueKey: 'taskAction', isOutvalueKey: false }, // action
+          { paramsKey: 'taskDoRequestList', valueKey: 'taskDoRequestList', isOutvalueKey: false }, // do
+          { paramsKey: 'taskCheckRequestList', valueKey: 'taskCheckRequestList', isOutvalueKey: false }, // check
+          { paramsKey: 'approveReason', valueKey: null } // 不通过原因
+        ]
+      },
+      {
+        name: '通过',
+        componentName: null,
+        nextPermission: 1,
+        nextPermissionName: '管理员',
+        params: [
+          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+          { paramsKey: 'receiveEmpId', valueKey: 'adminId', isOutvalueKey: true }, // 接收人id
+          { paramsKey: 'receiveEmpName', valueKey: 'adminName', isOutvalueKey: true }, // 接收人姓名
+          { paramsKey: 'taskPlan', valueKey: 'taskPlan', isOutvalueKey: false }, // 改善plan
+          { paramsKey: 'taskAction', valueKey: 'taskAction', isOutvalueKey: false }, // action
+          { paramsKey: 'taskDoRequestList', valueKey: 'taskDoRequestList', isOutvalueKey: false }, // do
+          { paramsKey: 'taskCheckRequestList', valueKey: 'taskCheckRequestList', isOutvalueKey: false }, // check
+          { paramsKey: 'improveScheme', valueKey: 'improveScheme', isOutvalueKey: false }, // 改善方案名称
+        ]
+      },
+    ],
+    row1: { hasJoin: true, name: '改善者x', key: 'establishEmpName' },
+    row2: {hasJoin: false, name: '提交了改善方案(PDCA)'},
+    selectDetails: {
+      name: '查看改善方案详情',
+      hasAnyData: true, // 是否有多个数据需要回显(多个数据对多个key)
+      dataKey: [
+        {key: 'taskPlan', isOutvalueKey: false, labelKey: 'plan'}, // plan
+        {key: 'taskDoRequestList', isOutvalueKey: false, labelKey: 'do'}, // do
+        {key: 'taskCheckRequestList', isOutvalueKey: false, labelKey: 'check'}, // check
+        {key: 'taskAction', isOutvalueKey: false, labelKey: 'action'}, // action
+      ],
+      componentName: 'pdca',
+      pdcaSetting: 'pdca',
+      disabled: true
+    }
+  },
+  {
+    taskType: 17,
+    checkResult: 1,
+    taskName: '改善方案plan通过',
+    currentPermission: 4,
+    btnList: [],
+    row1: { hasJoin: true, name: '管理员x', key: 'establishEmpName' },
+    row2: {hasJoin: false, name: '完成改善,本次任务结束'},
+    selectDetails: {
+      name: '查看改善方案详情',
+      hasAnyData: true, // 是否有多个数据需要回显(多个数据对多个key)
+      dataKey: [
+        {key: 'taskPlan', isOutvalueKey: false, labelKey: 'plan'}, // plan
+        {key: 'taskDoRequestList', isOutvalueKey: false, labelKey: 'do'}, // do
+        { key: 'taskCheckRequestList', isOutvalueKey: false, labelKey: 'check'}, // check
+        {key: 'taskAction', isOutvalueKey: false, labelKey: 'action'}, // action
+      ],
+      componentName: 'pdca',
+      pdcaSetting: 'pdca',
+      disabled: true
+    }
+  },
+  {
+    taskType: 18,
+    checkResult: 1,
+    taskName: '改善方案plan通过, 改善回复通过',
+    currentPermission: 4,
+    btnList: [
+      {
+        name: '指派改善任务',
+        componentName: 'assign-mission',
+        nextPermission: 5,
+        nextPermissionName: '改善者',
+        params: [
+          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+          { paramsKey: 'appointFlag', valueKey: 'appointFlag', isOutvalueKey: true }, // 已指派标志, 0 未指派 1已指派
+          { paramsKey: 'desicion', valueKey: null }, // 改善方案 目前只有pdca
+          { paramsKey: 'receiveEmpId', valueKey: null }, // 指派人
+          { paramsKey: 'receiveEmpName', valueKey: null }, // 指派人姓名
+          { paramsKey: 'needApproveFlag', valueKey: null } // 是否需要审核 true 是 false 不需要
+        ]
+      }
+    ],
+    row1: { hasJoin: true, name: '管理员x', key: 'establishEmpName' },
+    row2: {hasJoin: false, name: '改善方案不通过,重新执行改善流程'},
+    selectDetails: {
+      name: '查看原因详情',
+      key: 'approveReason',
+      componentName: 'disagree',
+      disabled: true,
+      labelKey: 'textarea'
+    }
+  },
+];
+
+export default taskTypeList;
+
+/**
+ * taskType: 4 => 制定改善方案 =>  pdcaSetting: 'p',要根据前面的改善工具决定p 还是pdca
+ * taskType: 6,
+ * taskType: 7,
+ * taskType: 9,
+ * taskType: 11,
+ */

+ 84 - 189
pages/mission-details/setting.js

@@ -3,15 +3,12 @@
 const taskTypeList = [
   {
     taskType: 1, // 任务当前状态
-    currentPermission: 4, // 当前任务在哪
     taskName: '创建任务',
     checkResult: 3, // 只针对第一步操作区分按钮是显示 (指派改善任务还是改善回复) 1不用管 2 改善回复 3 制定改善方案
     btnList: [ //  底部按钮
       {
         name: '不认可', // 按钮显示名字
         componentName: 'disagree', // 点击后跳转的组件名
-        nextPermission: 1, // 接收人id
-        nextPermissionName: '管理员', // 接收人名字
         params: [ // 接口保存的参数配置(paramsKey: 参数名, valueKey: 使用详情接口key, 为null, 表示当前组件可自输入, isOutvalueKey: 是否详情接一级key, 不是则在当前任务状态中找key(如pfmTaskCirculationList下面))
           { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
           { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
@@ -23,8 +20,6 @@ const taskTypeList = [
       {
         name: '指派改善任务',
         componentName: 'assign-mission',
-        nextPermission: 5,
-        nextPermissionName: '改善者',
         params: [
           { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
           { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
@@ -64,15 +59,12 @@ const taskTypeList = [
   },
   {
     taskType: 1,
-    currentPermission: 4,
     taskName: '创建任务',
     checkResult: 2,
     btnList: [
       {
         name: '不认可',
         componentName: 'disagree',
-        nextPermission: 1,
-        nextPermissionName: '管理员',
         params: [
           { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
           { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
@@ -84,8 +76,6 @@ const taskTypeList = [
       {
         name: '改善回复',
         componentName: 'write-back',
-        nextPermission: 1,
-        nextPermissionName: '管理员',
         params: [
           { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
           { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
@@ -109,15 +99,12 @@ const taskTypeList = [
   },
   {
     taskType: 2,
-    currentPermission: 1,
     taskName: '不认可',
     checkResult: 1,
     btnList: [
       {
         name: '重新发送',
         componentName: 'disagree',
-        nextPermission: 4,
-        nextPermissionName: '单位负责人',
         params: [
           { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
           { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
@@ -130,8 +117,6 @@ const taskTypeList = [
         name: '发送给其他人',
         componentName: 'personnel',
         keys: null,
-        nextPermission: 4,
-        nextPermissionName: '单位负责人',
         params: [
           { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
           { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
@@ -152,15 +137,12 @@ const taskTypeList = [
   },
   {
     taskType: 3,
-    currentPermission: 4,
     taskName: '重新发送',
     checkResult: 1,
     btnList: [
       {
         name: '指派改善任务',
         componentName: 'assign-mission',
-        nextPermission: 4,
-        nextPermissionName: '单位负责人',
         params: [
           { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
           { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
@@ -186,13 +168,10 @@ const taskTypeList = [
     taskType: 4,
     checkResult: 1,
     taskName: '指派改善任务',
-    currentPermission: 5,
     btnList: [
       {
         name: '申请更换改善人',
         componentName: null,
-        nextPermission: 5,
-        nextPermissionName: '改善者',
         params: [
           { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
           { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
@@ -203,16 +182,14 @@ const taskTypeList = [
       {
         name: '制定改善方案',
         componentName: 'pdca',
-        nextPermission: 6,
-        nextPermissionName: '单位负责人',
-        pdcaSetting: 'p',
-        params: [
-          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
-          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
-          { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
-          { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 接收人姓名
-          { paramsKey: 'taskPlan', valueKey: null} // 接收人姓名
-        ]
+        // pdcaSetting: 'p',
+        // params: [
+        //   { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+        //   { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+        //   { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
+        //   { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 接收人姓名
+        //   { paramsKey: 'taskPlan', valueKey: null} // 接收人姓名
+        // ]
       }
     ],
     row1: { hasJoin: true, name: '单位负责人x', key: 'establishEmpName' },
@@ -223,25 +200,20 @@ const taskTypeList = [
     taskType: 5,
     checkResult: 1,
     taskName: '改善回复',
-    currentPermission: 1,
     btnList: [
       {
         name: '不通过',
         componentName: null,
-        nextPermission: 4,
-        nextPermissionName: '单位负责人',
         params: [
           { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
           { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
           { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
           { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 接收人姓名
-        ] // todo
+        ]
       },
       {
         name: '通过',
         componentName: null,
-        nextPermission: 4,
-        nextPermissionName: '单位负责人',
         params: [
           { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
           { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
@@ -267,13 +239,10 @@ const taskTypeList = [
     taskType: 6,
     checkResult: 1,
     taskName: '更换改善人',
-    currentPermission: 5,
     btnList: [
       {
         name: '申请更换改善人',
         componentName: null,
-        nextPermission: 4,
-        nextPermissionName: '单位负责人',
         params: [
           { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
           { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
@@ -284,16 +253,14 @@ const taskTypeList = [
       {
         name: '制定改善方案',
         componentName: 'pdca',
-        pdcaSetting: 'p',
-        nextPermission: 4,
-        nextPermissionName: '单位负责人',
-        params: [
-          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
-          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
-          { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
-          { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 接收人姓名
-          { paramsKey: 'taskPlan', valueKey: null }, // 接收人姓名
-        ]
+        // pdcaSetting: 'p',
+        // params: [
+        //   { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+        //   { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+        //   { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
+        //   { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 接收人姓名
+        //   { paramsKey: 'taskPlan', valueKey: null }, // 接收人姓名
+        // ]
       }
     ],
     row1: { hasJoin: true, name: '单位负责人x', key: 'establishEmpName' },
@@ -304,21 +271,18 @@ const taskTypeList = [
     taskType: 7,
     checkResult: 1,
     taskName: '更换改善人驳回',
-    currentPermission: 5,
     btnList: [
       {
         name: '制定改善方案',
         componentName: 'pdca',
-        pdcaSetting: 'p',
-        nextPermission: 4,
-        nextPermissionName: '单位负责人',
-        params: [
-          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
-          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
-          { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
-          { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 接收人姓名
-          { paramsKey: 'taskPlan', valueKey: null } // plan
-        ]
+        // pdcaSetting: 'p',
+        // params: [
+        //   { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+        //   { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+        //   { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
+        //   { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 接收人姓名
+        //   { paramsKey: 'taskPlan', valueKey: null } // plan
+        // ]
       }
     ],
     row1: { hasJoin: true, name: '单位负责人x', key: 'establishEmpName' },
@@ -329,24 +293,21 @@ const taskTypeList = [
     taskType: 8,
     checkResult: 1,
     taskName: '改善计划plan通过',
-    currentPermission: 5,
     btnList: [
       {
         name: '记录改善方案',
         componentName: 'pdca',
-        pdcaSetting: 'pdca',
-        nextPermission: 4,
-        nextPermissionName: '单位负责人',
-        params: [
-          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
-          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
-          { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
-          { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 接收人姓名
-          { paramsKey: 'taskPlan', valueKey: null }, // plan
-          { paramsKey: 'taskAction', valueKey: null }, // action
-          { paramsKey: 'taskDoRequestList', valueKey: null }, // do
-          { paramsKey: 'taskCheckRequestList', valueKey: null } // check
-        ]
+        // pdcaSetting: 'pdca',
+        // params: [
+        //   { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+        //   { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+        //   { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
+        //   { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 接收人姓名
+        //   { paramsKey: 'taskPlan', valueKey: null }, // plan
+        //   { paramsKey: 'taskAction', valueKey: null }, // action
+        //   { paramsKey: 'taskDoRequestList', valueKey: null }, // do
+        //   { paramsKey: 'taskCheckRequestList', valueKey: null } // check
+        // ]
       }
     ],
     row1: { hasJoin: true, name: '单位管理员x', key: 'establishEmpName' },
@@ -364,21 +325,18 @@ const taskTypeList = [
     taskType: 9,
     checkResult: 1,
     taskName: '改善计划plan不通过',
-    currentPermission: 5,
     btnList: [
       {
         name: '制定改善方案',
         componentName: 'pdca',
-        pdcaSetting: 'p',
-        nextPermission: 4,
-        nextPermissionName: '单位负责人',
-        params: [
-          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
-          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
-          { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
-          { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 接收人姓名
-          { paramsKey: 'taskPlan', valueKey: null } // plan
-        ]
+        // pdcaSetting: 'p',
+        // params: [
+        //   { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+        //   { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+        //   { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
+        //   { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 接收人姓名
+        //   { paramsKey: 'taskPlan', valueKey: null } // plan
+        // ]
       }
     ],
     row1: { hasJoin: true, name: '单位管理员x', key: 'establishEmpName' },
@@ -387,21 +345,19 @@ const taskTypeList = [
       name: '查看原因详情',
       key: 'approveReason',
       componentName: 'disagree',
+      isOutvalueKey: false,
       disabled: true,
-      labelKey: 'textarea'
+      labelKey: 'textarea',
     }
   },
   {
     taskType: 10,
     checkResult: 1,
     taskName: '改善方案PDCA通过',
-    currentPermission: 1,
     btnList: [
       {
         name: '不通过',
         componentName: 'disagree',
-        nextPermission: 4,
-        nextPermissionName: '单位负责人',
         params: [
           { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
           { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
@@ -413,8 +369,6 @@ const taskTypeList = [
       {
         name: '通过',
         componentName: null,
-        nextPermission: 4,
-        nextPermissionName: '单位负责人',
         params: [
           { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
           { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
@@ -443,21 +397,18 @@ const taskTypeList = [
     taskType: 11,
     checkResult: 1,
     taskName: '改善方案PDCA不通过',
-    currentPermission: 5,
     btnList: [
       {
         name: '制定改善方案',
         componentName: 'pdca',
-        pdcaSetting: 'p',
-        nextPermission: 4,
-        nextPermissionName: '单位负责人',
-        params: [
-          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
-          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
-          { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
-          { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 接收人姓名
-          { paramsKey: 'taskPlan', valueKey: null } // plan
-        ]
+        // pdcaSetting: 'p',
+        // params: [
+        //   { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
+        //   { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
+        //   { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
+        //   { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 接收人姓名
+        //   { paramsKey: 'taskPlan', valueKey: null } // plan
+        // ]
       },
     ],
     row1: { hasJoin: true, name: '单位管理员x', key: 'establishEmpName' },
@@ -465,6 +416,7 @@ const taskTypeList = [
     selectDetails: {
       name: '查看原因详情',
       key: 'approveReason',
+      isOutvalueKey: false,
       componentName: 'disagree',
       disabled: true,
       labelKey: 'textarea'
@@ -474,13 +426,10 @@ const taskTypeList = [
     taskType: 12,
     checkResult: 1,
     taskName: '申请更改改善人',
-    currentPermission: 4,
     btnList: [
       {
         name: '更改改善人',
         componentName: 'assign-mission',
-        nextPermission: 5,
-        nextPermissionName: '改善者',
         params: [
           { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
           { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
@@ -494,8 +443,6 @@ const taskTypeList = [
       {
         name: '驳回请求',
         componentName: null,
-        nextPermission: 5,
-        nextPermissionName: '改善者',
         params: [
           { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
           { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
@@ -512,59 +459,37 @@ const taskTypeList = [
   {
     taskType: 13,
     checkResult: 1,
-    taskName: '制定改善方案',
-    currentPermission: 4,
+    taskName: '制定改善方案中',
     btnList: [
       {
-        name: '不通过',
-        componentName: 'disagree',
-        nextPermission: 5,
-        nextPermissionName: '改善者',
-        params: [
-          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
-          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
-          { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 指派人
-          { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 指派人姓名
-          { paramsKey: 'taskPlan', valueKey: 'taskPlan', isOutvalueKey: false }, // 改善plan
-          { paramsKey: 'approveReason', valueKey: null } // 审核不通过原因
-        ]
-      },
-      {
-        name: '通过',
+        name: '申请更换改善人',
         componentName: null,
-        nextPermission: 5,
-        nextPermissionName: '改善者',
         params: [
           { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
           { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
-          { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 指派人
-          { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 指派人姓名
-          { paramsKey: 'taskPlan', valueKey: 'taskPlan', isOutvalueKey: false } // 改善plan
+          { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
+          { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false } // 接收人姓名
         ]
       },
+      {
+        name: '制定改善方案',
+        componentName: 'pdca',
+        pdcaSetting: 'pdca',
+        params: [],
+      }
     ],
-    row1: { hasJoin: true, name: '改善者x', key: 'establishEmpName' },
-    row2: {hasJoin: false, name: '提交了改善计划(PLAN)'},
-    selectDetails: {
-      name: '查看改善计划详情',
-      componentName: 'pdca',
-      pdcaSetting: 'p',
-      key: 'taskPlan',
-      disabled: true,
-      labelKey: 'plan'
-    }
+    row1: { hasJoin: true, name: '单位负责人x', key: 'establishEmpName' },
+    row2: {hasJoin: true, name: '指派x为改善人', key: 'receiveEmpName'},
+    selectDetails: null
   },
   {
     taskType: 14,
     checkResult: 1,
     taskName: '制定改善方案plan',
-    currentPermission: 4,
     btnList: [
       {
         name: '不通过',
         componentName: 'disagree',
-        nextPermission: 5,
-        nextPermissionName: '改善者',
         params: [
           { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
           { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
@@ -577,8 +502,6 @@ const taskTypeList = [
       {
         name: '通过',
         componentName: null,
-        nextPermission: 5,
-        nextPermissionName: '改善者',
         params: [
           { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
           { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
@@ -603,60 +526,37 @@ const taskTypeList = [
   {
     taskType: 15,
     checkResult: 1,
-    taskName: '制定改善方案',
-    currentPermission: 4,
+    taskName: '制定改善方案中pdca',
     btnList: [
       {
-        name: '不通过',
-        componentName: 'disagree',
-        nextPermission: 5,
-        nextPermissionName: '改善者',
-        params: [
-          { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
-          { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
-          { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 指派人
-          { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 指派人姓名
-          { paramsKey: 'taskPlan', valueKey: 'taskPlan', isOutvalueKey: false }, // 改善plan
-          { paramsKey: 'approveReason', valueKey: null } // 审核不通过原因
-        ]
-      },
-      {
-        name: '通过',
+        name: '申请更换改善人',
         componentName: null,
-        nextPermission: 5,
-        nextPermissionName: '改善者',
         params: [
           { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
           { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
-          { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 指派人
-          { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false }, // 指派人姓名
-          { paramsKey: 'taskPlan', valueKey: 'taskPlan', isOutvalueKey: false } // 改善plan
+          { paramsKey: 'receiveEmpId', valueKey: 'establishEmpId', isOutvalueKey: false }, // 接收人id
+          { paramsKey: 'receiveEmpName', valueKey: 'establishEmpName', isOutvalueKey: false } // 接收人姓名
         ]
       },
+      {
+        name: '制定改善方案',
+        componentName: 'pdca',
+        pdcaSetting: 'pdca',
+        params: [],
+      }
     ],
-    row1: { hasJoin: true, name: '改善者x', key: 'establishEmpName' },
-    row2: {hasJoin: false, name: '提交了改善计划(PLAN)'},
-    selectDetails: {
-      name: '查看改善计划详情',
-      key: 'taskPlan',
-      componentName: 'pdca',
-      pdcaSetting: 'pdca',
-      nextPermission: 5,
-      disabled: true,
-      labelKey: 'plan'
-    }
+    row1: { hasJoin: true, name: '单位负责人x', key: 'establishEmpName' },
+    row2: {hasJoin: true, name: '指派x为改善人', key: 'receiveEmpName'},
+    selectDetails: null
   },
   {
     taskType: 16,
     checkResult: 1,
     taskName: '记录改善方案pdca',
-    currentPermission: 4,
     btnList: [
       {
         name: '不通过',
         componentName: 'disagree',
-        nextPermission: 5,
-        nextPermissionName: '改善者',
         params: [
           { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
           { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
@@ -672,8 +572,6 @@ const taskTypeList = [
       {
         name: '通过',
         componentName: null,
-        nextPermission: 1,
-        nextPermissionName: '管理员',
         params: [
           { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
           { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
@@ -706,8 +604,7 @@ const taskTypeList = [
   {
     taskType: 17,
     checkResult: 1,
-    taskName: '改善方案plan通过',
-    currentPermission: 4,
+    taskName: '改善方案pdca通过',
     btnList: [],
     row1: { hasJoin: true, name: '管理员x', key: 'establishEmpName' },
     row2: {hasJoin: false, name: '完成改善,本次任务结束'},
@@ -728,14 +625,11 @@ const taskTypeList = [
   {
     taskType: 18,
     checkResult: 1,
-    taskName: '改善方案plan通过, 改善回复通过',
-    currentPermission: 4,
+    taskName: '改善方案pdca不通过',
     btnList: [
       {
         name: '指派改善任务',
         componentName: 'assign-mission',
-        nextPermission: 5,
-        nextPermissionName: '改善者',
         params: [
           { paramsKey: 'id', valueKey: 'id', isOutvalueKey: true }, // 任务id
           { paramsKey: 'taskType', valueKey: 'taskType', isOutvalueKey: false }, // 状态值
@@ -752,6 +646,7 @@ const taskTypeList = [
     selectDetails: {
       name: '查看原因详情',
       key: 'approveReason',
+      isOutvalueKey: false,
       componentName: 'disagree',
       disabled: true,
       labelKey: 'textarea'

+ 93 - 93
pages/mission/model.js

@@ -5,99 +5,99 @@ export default {
   state: {
     // 任务详情
     missionDetails: {
-      appointFlag: false, // 已指派标志, 0 未指派 1已指派
-      checkGroupId: 1, // 查核组id
-      checkGroupName: "测试群组", // 查核组名称
-      checkId: 1,
-      checkItemId: 1, // 查核项目id
-      checkItemName: "测试点", // 查核项目名称
-      checkPlan: "第1/3次查核计划", // 查核计划
-      checkPointId: 1, // 查核要点id
-      checkPointName: "测试", // 查核要点名称(查核项)
-      createDate: "2021-02-03T01:44:09.000+0000", // 任务创建时间
-      createEmpId: 1, //创建人
-      createEmpName: "管理员", // 创建人姓名
-      delFlag: false,
-      deptId: 1, // 单位id
-      deptName: "测试部门", // 单位名称
-      desicion: "", // 改善工具:0,进行PDCA改善 1,暂不改善
-      endFlag: false, // 完结标识
-      id: 1, // 任务id
-      needApproveFlag: false, // 需要审核标志
-      recordTime: "2021-02-03 09:44:17", // 最终修改时间
-      situationId: 1, // 情景id
-      situationName: "测试情景", // 情景名称
-      taskType: 10, // 任务当前状态
-      updateTime: "2021-02-03T01:44:16.000+0000", // 修改时间 (发送时间)
-      improveEmpName: '', //改善人
-      improveEmpId: '', //改善人id
-      buttonDisplayFlag: 1,  // 底部按钮显示隐藏 0 不展示 1展示
-      checkResult: 2, // 《只针对第一步操作区分按钮是显示 指派改善任务还是改善回复》 1不用管 2 改善回复 3 制定改善方案
-      checkDetailResult: '查核结果xxx', // 查核结果
-      checkDetailId: '', // 查核明细id
-      adminId: 1,  // 管理员id
-      adminName: '管理员丫', // 管理员名称
-      pfmTaskCirculationList: [
-        {
-          createTime: "2021-02-03T01:44:42.000+0000", // 创建时间
-          establishEmpId: 1, // 员工id
-          establishEmpName: "管理员",// 发送人员名称
-          id: 1, // 流转记录id
-          receiveEmpId: 1, // 接收人id
-          receiveEmpName: "管理员吧",// 接收人姓名
-          taskAction: "", // 改善处置 action
-          taskId: 1, // 任务id
-          taskPlan: "噢噢噢噢",// plan整改计划
-          taskType: 8, // 流转状态
-          improveScheme: '', // 改善方案名称
-          approveReason: '审核意见', // 审核意见/原因
-          taskDoRequestList: [ // do
-            {
-              taskDoId:"mock",  // 过程记录id
-              taskDoProcess:"mock", // 过程记录内容
-              taskDoPlan:"mock" // 计划日期
-            }
-          ],
-          taskCheckRequestList: [// check
-            {
-              taskCheckId:"mock",  // 改善确认id
-              taskCheckProcess:"mock", // 改善确认记录过程
-              taskCheckPlan:"mock",  // 改善确认计划日期
-              taskCheckEffect:"mock" //改善确认改善效果
-            }
-          ],
-          recordTime: 'recordTime' //测量时间
-        },
-        {
-          createTime: "2021-02-03T01:44:42.000+0000", // 创建时间
-          establishEmpId: 1, // 员工id
-          establishEmpName: "管理员",// 发送人员名称
-          id: 1, // 流转记录id
-          receiveEmpId: 1, // 接收人id
-          receiveEmpName: "管理员吧",// 接收人姓名
-          taskAction: "", // 改善处置 action
-          taskId: 1, // 任务id
-          taskPlan: "plan内容",// plan整改计划
-          taskType: 10, // 流转状态
-          improveScheme: '', // 改善方案名称
-          approveReason: '审核意见', // 审核意见
-          taskDoRequestList: [ // do
-            {
-              taskDoId:"mock",  // 过程记录id
-              taskDoProcess:"mock", // 过程记录内容
-              taskDoPlan:"2020-12-12 00:01:50" // 计划日期
-            }
-          ],
-          taskCheckRequestList: [// check
-            {
-              taskCheckId:"mock",  // 改善确认id
-              taskCheckProcess:"mock", // 改善确认记录过程
-              taskCheckPlan:"mock",  // 改善确认计划日期
-              taskCheckEffect:"mock" //改善确认改善效果
-            }
-          ]
-        },
-      ]
+      // appointFlag: false, // 已指派标志, 0 未指派 1已指派
+      // checkGroupId: 1, // 查核组id
+      // checkGroupName: "测试群组", // 查核组名称
+      // checkId: 1,
+      // checkItemId: 1, // 查核项目id
+      // checkItemName: "测试点", // 查核项目名称
+      // checkPlan: "第1/3次查核计划", // 查核计划
+      // checkPointId: 1, // 查核要点id
+      // checkPointName: "测试", // 查核要点名称(查核项)
+      // createDate: "2021-02-03T01:44:09.000+0000", // 任务创建时间
+      // createEmpId: 1, //创建人
+      // createEmpName: "管理员", // 创建人姓名
+      // delFlag: false,
+      // deptId: 1, // 单位id
+      // deptName: "测试部门", // 单位名称
+      // desicion: "", // 改善工具:0,进行PDCA改善 1,暂不改善
+      // endFlag: false, // 完结标识
+      // id: 1, // 任务id
+      // needApproveFlag: true, // 需要审核标志
+      // recordTime: "2021-02-03 09:44:17", // 最终修改时间
+      // situationId: 1, // 情景id
+      // situationName: "测试情景", // 情景名称
+      // taskType: 13, // 任务当前状态
+      // updateTime: "2021-02-03T01:44:16.000+0000", // 修改时间 (发送时间)
+      // improveEmpName: '', //改善人
+      // improveEmpId: '', //改善人id
+      // buttonDisplayFlag: 1,  // 底部按钮显示隐藏 0 不展示 1展示
+      // checkResult: 2, // 《只针对第一步操作区分按钮是显示 指派改善任务还是改善回复》 1不用管 2 改善回复 3 制定改善方案
+      // checkDetailResult: '查核结果xxx', // 查核结果
+      // checkDetailId: '', // 查核明细id
+      // adminId: 1,  // 管理员id
+      // adminName: '管理员丫', // 管理员名称
+      // pfmTaskCirculationList: [
+      //   {
+      //     createTime: "2021-02-03T01:44:42.000+0000", // 创建时间
+      //     establishEmpId: 1, // 员工id
+      //     establishEmpName: "管理员",// 发送人员名称
+      //     id: 1, // 流转记录id
+      //     receiveEmpId: 1, // 接收人id
+      //     receiveEmpName: "管理员吧",// 接收人姓名
+      //     taskAction: "", // 改善处置 action
+      //     taskId: 1, // 任务id
+      //     taskPlan: "噢噢噢噢",// plan整改计划
+      //     taskType: 8, // 流转状态
+      //     improveScheme: '', // 改善方案名称
+      //     approveReason: '审核意见', // 审核意见/原因
+      //     taskDoRequestList: [ // do
+      //       {
+      //         taskDoId:"mock",  // 过程记录id
+      //         taskDoProcess:"mock", // 过程记录内容
+      //         taskDoPlan:"mock" // 计划日期
+      //       }
+      //     ],
+      //     taskCheckRequestList: [// check
+      //       {
+      //         taskCheckId:"mock",  // 改善确认id
+      //         taskCheckProcess:"mock", // 改善确认记录过程
+      //         taskCheckPlan:"mock",  // 改善确认计划日期
+      //         taskCheckEffect:"mock" //改善确认改善效果
+      //       }
+      //     ],
+      //     recordTime: 'recordTime' //测量时间
+      //   },
+      //   {
+      //     createTime: "2021-02-03T01:44:42.000+0000", // 创建时间
+      //     establishEmpId: 1, // 员工id
+      //     establishEmpName: "管理员",// 发送人员名称
+      //     id: 1, // 流转记录id
+      //     receiveEmpId: 1, // 接收人id
+      //     receiveEmpName: "管理员吧",// 接收人姓名
+      //     taskAction: "", // 改善处置 action
+      //     taskId: 1, // 任务id
+      //     taskPlan: "plan内容",// plan整改计划
+      //     taskType: 13, // 流转状态
+      //     improveScheme: '', // 改善方案名称
+      //     approveReason: '审核意见', // 审核意见
+      //     taskDoRequestList: [ // do
+      //       {
+      //         taskDoId:"mock",  // 过程记录id
+      //         taskDoProcess:"mock", // 过程记录内容
+      //         taskDoPlan:"2020-12-12 00:01:50" // 计划日期
+      //       }
+      //     ],
+      //     taskCheckRequestList: [// check
+      //       {
+      //         taskCheckId:"mock",  // 改善确认id
+      //         taskCheckProcess:"mock", // 改善确认记录过程
+      //         taskCheckPlan:"mock",  // 改善确认计划日期
+      //         taskCheckEffect:"mock" //改善确认改善效果
+      //       }
+      //     ]
+      //   },
+      // ]
     }
   },
   mutations: {