Sfoglia il codice sorgente

定义任务流程列表

yuwenfen 4 anni fa
parent
commit
e721414117

+ 0 - 1
main.js

@@ -4,7 +4,6 @@ import { store } from './store/index.js';
 import dateTimePickGroup from './components/date-time-pick-group/date-time-pick-group.vue';
 import dateTimePick from './components/date-time-pick/date-time-pick.vue';
 import row from "./components/tm-trees/row.vue";
-
 Vue.config.productionTip = false;
 Vue.prototype.$store = store;
 Vue.component('com-date-pick-group', dateTimePickGroup);

+ 7 - 1
pages/mission-action/mission-action.vue

@@ -8,6 +8,7 @@
 </template>
 
 <script>
+  import { mapState } from "vuex";
 	import assignMission from './components/assign-mission.vue';
 	import disagree from './components/disagree.vue'
 	import personnel from './components/personnel.vue'
@@ -15,10 +16,15 @@
 	import pdca from './components/pdca.vue'
 
 	export default {
+    computed: {
+      ...mapState({
+        missionDetails: state => state.mission.missionDetails
+      })
+    },
 		data() {
 			return {
 				// 当前显示的组件
-				currentComponet: 'pdca',
+				currentComponet: 'write-back',
 				compoentList: [
 					{type: 1, name: '指派改善任务', component: 'assign-mission'},
 					{type: 2, name: '原因', component: 'disagree'},

+ 49 - 25
pages/mission-details/mission-details.vue

@@ -1,7 +1,7 @@
 <template>
 	<view class="mission-details-page">
 		<scroll-view class="scroll-y" scroll-y="true">
-			<list-item :isClose="true" />
+			<list-item :isDetails="true" :task="missionDetails" />
 			<view class="mission-plan">
 				<view class="label">
 					<text>改善进度</text>
@@ -10,8 +10,8 @@
 					<template v-for="(item, i) in list">
 						<view class="row" :key="i">
 							<view class="col">
-								<image 
-								  class="plan-icon" 
+								<image
+								  class="plan-icon"
 									:src="`/static/${i === list.length - 1 ? 'check-radio' : 'check-no'}.png`">
 								</image>
 								<view class="line" v-show="i != list.length -1"></view>
@@ -23,7 +23,7 @@
 								<view class="sub-box">
 									<view class="sub-title">
 										<text>{{ item.subTitle }}</text>
-									</view>	
+									</view>
 									<view class="sub-title">
 										<text>{{ item.date }}</text>
 									</view>
@@ -43,17 +43,41 @@
 
 <script>
 	// 改善任务
-	import listItem from '../mission/components/list-item.vue';
+  import { mapState } from "vuex";
+  import listItem from '../mission/components/list-item.vue';
 	export default {
+    computed: {
+      ...mapState({
+        missionDetails: state => state.mission.missionDetails
+      })
+    },
 		data() {
 			return {
         list: [
 					{title: '查核人:王晓雪', subTitle: '发送改善通知,查核结果:主要缺失', date: '2020-11-22 15:30:22'},
 					{title: '单位负责人', subTitle: '发送改善通知,查核结果:主要缺失', date: '2020-11-22 15:30:22'}
-				]
+        ],
+        // 任务id
+        taskId: ''
 			}
-		},
+    },
+    onLoad({ taskId }){
+      this.taskId = taskId;
+    },
+    created() {
+      this.getMissionDetails();
+    },
 		methods: {
+      // 获取改善任务列表
+			getMissionDetails(data) {
+				this.$store.dispatch({
+					type: 'mission/commActions',
+					payload: {
+						key: "getMissionDetails",
+						data: {taskId: this.taskId}
+					}
+				});
+			},
 			// 点击右侧按钮
 			clickRightBtn() {
 				uni.navigateTo({
@@ -62,7 +86,7 @@
 			}
 		},
 		components: {
-			listItem, 
+			listItem
 		}
 	}
 </script>
@@ -71,80 +95,80 @@
 	.mission-details-page {
 		height: 100%;
 		padding-top: 15rpx;
-		
+
 		.scroll-y {
 			height: 100%;
-			
+
 			.mission-plan {
-				
+
 				.label {
 					margin-top: 25rpx;
 					margin-bottom: 15rpx;
 					height: 20rpx;
 					line-height: 20rpx;
 					padding-left: 25rpx;
-					
+
 					text {
 						font-size: 20rpx;
 						color: #666F80;
 					}
 				}
-				
+
 				.plan-box {
 					padding: 25rpx;
 					background-color: #fff;
-					
+
 					.row {
 						display: flex;
-						
+
 						.col {
-							
+
 							.title {
 								display: flex;
 								align-items: center;
 								margin-bottom: 15rpx;
 								height: 25rpx;
-							
+
 							  >text {
 									font-size: 22.5rpx;
 									color: #292C33;
 								}
 							}
-							
+
 							.sub-box {
 								display: flex;
 								flex-direction: column;
-								
+
 								.sub-title {
 									display: flex;
 									align-items: center;
 									margin-bottom: 15rpx;
 									height: 20rpx;
-									
+
 									&:last-child {
 										margin-bottom: 34.37rpx;
 									}
-									
+
 									>text {
 										font-size: 20rpx;
 										color: #666E80;
 									}
 								}
 							}
-							
+
 							&:first-child {
 								display: flex;
 								flex-direction: column;
 								align-items: center;
 								margin-right: 15rpx;
 								width: 25rpx;
-								
+
 								.plan-icon {
 									margin-bottom: 17.5rpx;
 									width: 25rpx;
 									height: 25rpx;
 								}
-								
+
 								.line {
 									width: 5rpx;
 									height: 75rpx;
@@ -153,7 +177,7 @@
 							}
 						}
 					}
-					
+
 					.btn-group {
 						display: flex;
 						justify-content: space-between;

+ 280 - 0
pages/mission-details/setting.js

@@ -0,0 +1,280 @@
+// 任务流程列表
+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 // 底部按钮禁用
+ * }
+ */

+ 11 - 7
pages/mission/components/list-item.vue

@@ -1,11 +1,11 @@
 <template>
-	<view class="mission-list-item" @click="gotoDetails">
-		<view v-if="!isComplete" class="time">
+	<view class="mission-list-item" @click="gotoDetails(task.id)">
+		<view v-if="!isDetails && !isComplete" class="time">
 			<text class="com-text">{{ task.recordTime }}</text>
 		</view>
 		<view class="card">
 	    <view class="top-box">
-				<view :class="['bg-box', isComplete ? 'disabled-bg' : 'hight-bg']">
+				<view v-show="!isDetails" :class="['bg-box', isComplete ? 'disabled-bg' : 'hight-bg']">
 					<text>{{isComplete ? '改善结案' : '改善中'}}</text>
 				</view>
 	    	<text class="title">{{ task.checkPointName }}</text>
@@ -42,19 +42,23 @@
 			isComplete: {
 				type: Boolean,
 				default: false
+			},
+			// 是否是详情页面
+			isDetails: {
+				type: Boolean,
+				default: false
 			}
 		},
 		computed: {
 			bgImage(){
-				console.log(`url(~@/static/${!this.isComplete ? 'hight' : 'disabled'}-bg.png)`)
 				return `../../../static/${!this.isComplete ? 'hight' : 'disabled'}-bg.png`;
 			}
 		},
 		methods: {
 			// 跳转详情页面(改善任务)
-			gotoDetails(){
+			gotoDetails(id){
 				uni.navigateTo({
-				  url: '/pages/mission-details/mission-details'
+				  url: `/pages/mission-details/mission-details?taskId=${id}`
 				});
 			}
 		}
@@ -90,7 +94,7 @@
 			}
 
 			.title {
-				line-height: 45rpx;
+				line-height: 25rpx;
 				font-size: 25rpx;
 				font-weight: bold;
 				color: #292C33;

+ 3 - 3
pages/mission/mission.vue

@@ -7,8 +7,8 @@
 				:task="item"
 			/>
 			<view class="completed-box">
-				<view class="btn-box">
-					<view class="btn" @click="toggleBtn">
+				<view class="btn-box" >
+					<view class="btn" v-show="completeTaskList.length > 0" @click="toggleBtn">
 						<image class="icon" :src="`/static/${btnSetting.icon}.png`"></image>
 						<text class="text">
 						  {{ btnSetting.name }}
@@ -101,7 +101,7 @@
 						this.improvingTaskList = data.improvingTaskResponses || [];
 						this.completeTaskList = data.improveCompleteResponses || [];
 					}
-				}) ;
+				});
 				/** 请求参数 data
 				 * situationId: 情境id 当管路员或者查核者通过情境进入任务列表时 必传
 				 * checkItemId 单位负责人通过 查核要点进入改善任务列表时 必传

+ 80 - 6
pages/mission/model.js

@@ -3,16 +3,90 @@ import { commServer } from './server.js';
 export default {
   namespaced: true,
   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: 0, // 任务当前状态
+      updateTime: "2021-02-03T01:44:17.000+0000", // 修改时间 (发送时间)
+      improveEmpName: '', //改善人
+      improveEmpId: '', //改善人id
+      buttonDisplayFlag: 1,  // 0 不展示 1展示
+      checkResult: 1, // 《只针对第一步操作区分按钮是显示 指派改善任务还是改善回复》 1不用管 2 改善回复 3 制定改善方案
+      pfmTaskCirculationList: [
+        {
+          createTime: "2021-02-03T01:44:42.000+0000", // 创建时间
+          establishEmpId: 1, // 员工id
+          establishEmpName: "管理员",// 发送人员名称
+          id: 1, // 流转记录id
+          receiveEmpId: 1, // 接收人id
+          receiveEmpName: "管理员吧",// 接收人姓名
+          // action
+          taskAction: "", // 改善处置
+          taskId: 1, // 任务id
+          taskPlan: "",// plan整改计划
+          taskType: 0, // 流转状态
+          improveScheme: '', // 改善方案名称
+          approveReason: '审核意见', // 审核意见
+          // do
+          taskDoRequestList: [
+            {
+              taskDoId:"mock",  // 过程记录id
+              taskDoProcess:"mock", // 过程记录内容
+              taskDoPlan:"mock" // 计划日期
+            }
+          ],
+          // check
+          taskCheckRequestList: [
+            {
+              taskCheckId:"mock",  // 改善确认id
+              taskCheckProcess:"mock", // 改善确认记录过程
+              taskCheckPlan:"mock",  // 改善确认计划日期
+              taskCheckEffect:"mock" //改善确认改善效果
+            }
+          ]
+        }
+      ]
+    }
   },
   mutations: {
-    changeBaseInfo(state, { baseInfo }) {
-      state.baseInfo = baseInfo;
+    changeMissionDetails(state, { data }) {
+      state.missionDetails = data || {};
     },
   },
   actions: {
-  	commActions({ commit, state }, { payload }) {
-  		// payload = {key,data} // data是请求数据,key是请求接口id
-  		return commServer(payload);
-  	},
+    commActions({ commit, state }, { payload }) {
+      // payload = {key,data} // data是请求数据,key是请求接口id
+      return commServer(payload).then(data => {
+        // 查看任务详情
+        if (payload.key === 'getMissionDetails') {
+          commit({
+            type: 'changeMissionDetails',
+            data
+          });
+        }
+        return data
+      });
+    },
   }
 }