Browse Source

增加催办

zhanglei
yunuo970428 2 years ago
parent
commit
aa1017f997
  1. 12
      anrui-system-ui/src/api/flow/todo.js
  2. 14
      anrui-system-ui/src/views/flow/doneList.vue

12
anrui-system-ui/src/api/flow/todo.js

@ -108,6 +108,18 @@ export function breakProcess(params) {
})
}
// 已办任务列表--催办
export function manualReminder(params) {
return request({
url: '/message/v1/MessageUrgeList/manualReminder',
method: 'post',
data: params,
headers: {
'Content-Type': 'application/json'
}
})
}
// 审批记录--保存评论
export function commentSave(data) {
return request({

14
anrui-system-ui/src/views/flow/doneList.vue

@ -33,9 +33,10 @@
<div class="listcon">
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width:100%" @selection-change="handleSelectionChange">
<el-table-column width="60px" label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column width="180px" label="操作" align="center">
<el-table-column width="230" label="操作" align="center">
<template slot-scope="scope">
<el-button type="primary" size="small" @click="handleCheck(scope.row)">详情</el-button>
<el-button type="primary" size="small" v-if="scope.row.endTime == null" @click="handlePress(scope.row)">催办</el-button>
<el-button type="danger" v-show="scope.row.endTime === null && scope.row.startUserSid === listQuery.params.userSid" size="small" @click="handleTerminate(scope.row)">终止
</el-button>
</template>
@ -145,7 +146,7 @@ import flowRecords from '@/components/flow/flowRecord'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import { getStorage } from '@/utils/auth'
import { getList, selectUrl, readXml, getFlowViewer, breakProcess, commentSave, sysstaffinfo } from '@/api/flow/todo'
import { getList, selectUrl, readXml, getFlowViewer, manualReminder, commentSave, sysstaffinfo } from '@/api/flow/todo'
import { flowRecord } from '@/api/workflow/finished'
import { loginDetails } from '@/api/user'
import upload from '@/components/uploadFile/upload'
@ -344,6 +345,15 @@ export default {
this.url = ''
this.centerDialogVisible = false
},
handlePress(row) {
manualReminder({ proDefId: row.procDefId, procInstId: row.procInsId }).then((resp) => {
if (resp.success) {
this.$message({ showClose: true, type: 'success', message: ' 催办成功' })
} else {
this.$message({ showClose: true, type: 'error', message: ' 操作失败' })
}
})
},
handleTerminate(row) {
this.breakProcessVisible = true
this.dialogList.comment = ''

Loading…
Cancel
Save