--no commit message
Showing
2 changed files
with
54 additions
and
25 deletions
| ... | @@ -59,16 +59,17 @@ | ... | @@ -59,16 +59,17 @@ |
| 59 | <el-table-column label="序号" header-align="center" align="center" type="index" width="55px" /> | 59 | <el-table-column label="序号" header-align="center" align="center" type="index" width="55px" /> |
| 60 | <el-table-column label="流程状态" header-align="center" align="center"> | 60 | <el-table-column label="流程状态" header-align="center" align="center"> |
| 61 | <template slot-scope="scope"> | 61 | <template slot-scope="scope"> |
| 62 | <div v-if="scope.row.finishTime == null">正在办理</div> | 62 | <div v-if="scope.row.endTime">已完结</div> |
| 63 | <div v-else>已完结</div> | 63 | <div v-else>正在办理</div> |
| 64 | </template> | 64 | </template> |
| 65 | </el-table-column> | 65 | </el-table-column> |
| 66 | <el-table-column label="环节名称" prop="name" minWidth="100" align="center" /> | 66 | <el-table-column label="环节名称" prop="name" minWidth="100" align="center" /> |
| 67 | <el-table-column label="办理人" prop="agent" minWidth="120" align="center" /> | 67 | <el-table-column label="办理人" prop="agent" minWidth="120" align="center" /> |
| 68 | <el-table-column label="处理时间" prop="createTime" width="160" align="center" /> | 68 | <el-table-column label="转入时间" prop="createTime" :formatter="formatDate" width="160" align="center" /> |
| 69 | <el-table-column label="办结时间" prop="finishTime" width="160" align="center" /> | 69 | <el-table-column label="认领时间" prop="claimTime" :formatter="formatDate" width="160" align="center" /> |
| 70 | <el-table-column label="操作方式" align="center"> | 70 | <el-table-column label="转出时间" prop="endTime" :formatter="formatDate" width="160" align="center" /> |
| 71 | </el-table-column> | 71 | <el-table-column label="操作方式" prop="controls" align="center"/> |
| 72 | <el-table-column label="意见" prop="idea" align="center"/> | ||
| 72 | </el-table> | 73 | </el-table> |
| 73 | </div> | 74 | </div> |
| 74 | </div> | 75 | </div> |
| ... | @@ -118,6 +119,14 @@ | ... | @@ -118,6 +119,14 @@ |
| 118 | this.clearViewer() | 119 | this.clearViewer() |
| 119 | }, | 120 | }, |
| 120 | methods: { | 121 | methods: { |
| 122 | formatDate(row, column) { | ||
| 123 | let data = row[column.property] | ||
| 124 | if(data == null) { | ||
| 125 | return null | ||
| 126 | } | ||
| 127 | let dt = new Date(data) | ||
| 128 | return dt.getFullYear() + '-' + (dt.getMonth() + 1) + '-' + dt.getDate() + ' ' + dt.getHours() + ':' + dt.getMinutes() + ':' + dt.getSeconds() | ||
| 129 | }, | ||
| 121 | processReZoom () { | 130 | processReZoom () { |
| 122 | this.defaultZoom = 1 | 131 | this.defaultZoom = 1 |
| 123 | this.bpmnViewer.get('canvas').zoom('fit-viewport', 'auto') | 132 | this.bpmnViewer.get('canvas').zoom('fit-viewport', 'auto') |
| ... | @@ -237,13 +246,32 @@ | ... | @@ -237,13 +246,32 @@ |
| 237 | // 获取流程记录 | 246 | // 获取流程记录 |
| 238 | getCommentList() { | 247 | getCommentList() { |
| 239 | this.formData.allCommentList.forEach(async (item,index) => { | 248 | this.formData.allCommentList.forEach(async (item,index) => { |
| 240 | this.formData.allCommentList[index].agent=item.assignee.name | 249 | item.comments.forEach(element => { |
| 250 | if(element.type=="COMPLETE"){ | ||
| 251 | this.formData.allCommentList[index].idea=element.message | ||
| 252 | this.formData.allCommentList[index].controls="完成" | ||
| 253 | } | ||
| 254 | }); | ||
| 255 | this.formData.allCommentList[index].agent=item.assignee.name | ||
| 256 | }) | ||
| 257 | this.formData.handlinglist.forEach(async (item,index) => { | ||
| 258 | if(item.assignee.name){ | ||
| 259 | this.formData.handlinglist[index].agent=item.assignee.name | ||
| 260 | }else{ | ||
| 261 | let str="" | ||
| 262 | item.countersign.forEach((item) => { | ||
| 263 | str+=item.name+"," | ||
| 264 | }) | ||
| 265 | str=str.slice(0, -1); | ||
| 266 | this.formData.allCommentList[index].agent=str | ||
| 267 | } | ||
| 268 | |||
| 241 | }) | 269 | }) |
| 242 | setTimeout(() => { | 270 | this.taskList =[...this.formData.allCommentList,...this.formData.handlinglist]; |
| 243 | this.taskList =this.formData.allCommentList; | 271 | // this.taskList =this.formData.allCommentList; |
| 244 | // 处理数据之后赋值 | 272 | // 处理数据之后赋值 |
| 245 | this.taskCommentList=this.taskList | 273 | this.taskCommentList=this.taskList |
| 246 | }, 100) | 274 | |
| 247 | }, | 275 | }, |
| 248 | 276 | ||
| 249 | // 设置流程图元素状态 | 277 | // 设置流程图元素状态 | ... | ... |
| ... | @@ -67,21 +67,22 @@ export default { | ... | @@ -67,21 +67,22 @@ export default { |
| 67 | case "B0": | 67 | case "B0": |
| 68 | this.openDialog() | 68 | this.openDialog() |
| 69 | break; | 69 | break; |
| 70 | case "B1": | 70 | case "B1": |
| 71 | getWorkFlowImage(this.bsmSlsq, this.$route.query.bestepid).then(res => { | 71 | getWorkFlowImage(this.bsmSlsq, this.$route.query.bestepid).then(res => { |
| 72 | let { result } = res | 72 | let { result } = res |
| 73 | this.$popupDialog("流程图", "workflow/components/processViewer", { | 73 | this.$popupDialog("流程图", "workflow/components/processViewer", { |
| 74 | xml: result.xml, | 74 | xml: result.xml, |
| 75 | finishedInfo: { | 75 | finishedInfo: { |
| 76 | finishedTaskSet: result.finishedActivityIds, | 76 | finishedTaskSet: result.finishedActivityIds, |
| 77 | unfinishedTaskSet: result.runningActivityIds, | 77 | unfinishedTaskSet: result.runningActivityIds, |
| 78 | rejectedTaskSet: result.rejectedTaskSet, | 78 | rejectedTaskSet: {}, |
| 79 | finishedSequenceFlowSet: result.finishedSequenceFlowIds | 79 | finishedSequenceFlowSet: result.finishedSequenceFlowIds |
| 80 | }, | 80 | }, |
| 81 | allCommentList: result.historyTaskList | 81 | handlinglist:result.runningTasks, |
| 82 | }, '80%', true) | 82 | allCommentList: result.finishedTasks |
| 83 | }) | 83 | }, '80%', true) |
| 84 | break; | 84 | }) |
| 85 | break; | ||
| 85 | case "B2": //材料分屏按钮 | 86 | case "B2": //材料分屏按钮 |
| 86 | 87 | ||
| 87 | this.closefp() | 88 | this.closefp() | ... | ... |
-
Please register or sign in to post a comment