Compare commits
No commits in common. "6d6a08686e97697c922688411cb92c2305dcea61" and "b34c53e264d2d39a2e847d68f7b5b2fd95c2290d" have entirely different histories.
6d6a08686e
...
b34c53e264
|
@ -186,7 +186,7 @@ END AS commentResult,
|
||||||
FROM
|
FROM
|
||||||
act_hi_taskinst ht
|
act_hi_taskinst ht
|
||||||
LEFT JOIN act_hi_comment hc ON hc.TASK_ID_ = ht.ID_ or (hc.TASK_ID_ is null and hc.PROC_INST_ID_ = ht.PROC_INST_ID_)
|
LEFT JOIN act_hi_comment hc ON hc.TASK_ID_ = ht.ID_ or (hc.TASK_ID_ is null and hc.PROC_INST_ID_ = ht.PROC_INST_ID_)
|
||||||
LEFT JOIN act_hi_identitylink hi on hi.TASK_ID_ = ht.ID_ and hi.group_Id_ IS NOT NULL
|
LEFT JOIN act_hi_identitylink hi on hi.TYPE_ = 'candidate' and hi.TASK_ID_ = ht.ID_ and hi.USER_ID_ IS NULL
|
||||||
left JOIN sys_role r on r.role_id = hi.group_Id_
|
left JOIN sys_role r on r.role_id = hi.group_Id_
|
||||||
LEFT JOIN sys_user ru ON ru.user_id = ht.ASSIGNEE_
|
LEFT JOIN sys_user ru ON ru.user_id = ht.ASSIGNEE_
|
||||||
LEFT JOIN sys_dept rd ON rd.dept_id = ru.dept_id
|
LEFT JOIN sys_dept rd ON rd.dept_id = ru.dept_id
|
||||||
|
|
|
@ -55,8 +55,8 @@ public class SysUserController extends BaseController
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取用户列表
|
* 获取用户列表
|
||||||
* @PreAuthorize("@ss.hasPermi('system:user:list')")
|
|
||||||
*/
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:user:list')")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(SysUser user)
|
public TableDataInfo list(SysUser user)
|
||||||
{
|
{
|
||||||
|
@ -96,8 +96,8 @@ public class SysUserController extends BaseController
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据用户编号获取详细信息
|
* 根据用户编号获取详细信息
|
||||||
* @PreAuthorize("@ss.hasPermi('system:user:query')")
|
|
||||||
*/
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:user:query')")
|
||||||
@GetMapping(value = { "/", "/{userId}" })
|
@GetMapping(value = { "/", "/{userId}" })
|
||||||
public AjaxResult getInfo(@PathVariable(value = "userId", required = false) Long userId)
|
public AjaxResult getInfo(@PathVariable(value = "userId", required = false) Long userId)
|
||||||
{
|
{
|
||||||
|
@ -241,8 +241,8 @@ public class SysUserController extends BaseController
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取部门树列表
|
* 获取部门树列表
|
||||||
* @PreAuthorize("@ss.hasPermi('system:user:list')")
|
|
||||||
*/
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:user:list')")
|
||||||
@GetMapping("/deptTree")
|
@GetMapping("/deptTree")
|
||||||
public AjaxResult deptTree(SysDept dept)
|
public AjaxResult deptTree(SysDept dept)
|
||||||
{
|
{
|
||||||
|
|
|
@ -100,8 +100,7 @@ public class FlowBusinessKeyController extends BaseController {
|
||||||
//超管查询所有数据
|
//超管查询所有数据
|
||||||
if(!SysUser.isAdmin(super.getUserId())){
|
if(!SysUser.isAdmin(super.getUserId())){
|
||||||
SysUser sysUser = super.getLoginUser().getUser();
|
SysUser sysUser = super.getLoginUser().getUser();
|
||||||
flowTaskEntity.setAssigneeId(sysUser.getUserId());
|
flowTaskEntity.setDeptAncestors(sysUser.getDept().getAncestors());
|
||||||
flowTaskEntity.setDeptAncestors(sysUser.getDept().getAncestors()+","+sysUser.getDeptId());
|
|
||||||
flowTaskEntity.setRoleIds(sysUser.getRoles().stream().map(role -> role.getRoleId()).collect(Collectors.toList()));
|
flowTaskEntity.setRoleIds(sysUser.getRoles().stream().map(role -> role.getRoleId()).collect(Collectors.toList()));
|
||||||
}
|
}
|
||||||
return getDataTable(flowBusinessKeyService.selectMyAwaitFlowTask(flowTaskEntity));
|
return getDataTable(flowBusinessKeyService.selectMyAwaitFlowTask(flowTaskEntity));
|
||||||
|
@ -129,11 +128,11 @@ public class FlowBusinessKeyController extends BaseController {
|
||||||
//超管查询所有数据
|
//超管查询所有数据
|
||||||
if(!SysUser.isAdmin(super.getUserId())){
|
if(!SysUser.isAdmin(super.getUserId())){
|
||||||
SysUser sysUser = super.getLoginUser().getUser();
|
SysUser sysUser = super.getLoginUser().getUser();
|
||||||
flowTaskEntity.setAssigneeId(sysUser.getUserId());
|
flowTaskEntity.setDeptAncestors(sysUser.getDept().getAncestors());
|
||||||
flowTaskEntity.setDeptAncestors(sysUser.getDept().getAncestors()+","+sysUser.getDeptId());
|
|
||||||
flowTaskEntity.setRoleIds(sysUser.getRoles().stream().map(role -> role.getRoleId()).collect(Collectors.toList()));
|
flowTaskEntity.setRoleIds(sysUser.getRoles().stream().map(role -> role.getRoleId()).collect(Collectors.toList()));
|
||||||
}
|
}
|
||||||
List<Map<String, Object>> list = flowBusinessKeyService.selectMyAwaitFlowTask(flowTaskEntity);
|
flowTaskEntity.setActiveName("await");
|
||||||
|
List<Map<String, Object>> list = flowBusinessKeyService.selectMyFinishedFlowTask(flowTaskEntity);
|
||||||
Map<String,Object> data = new HashMap<>();
|
Map<String,Object> data = new HashMap<>();
|
||||||
if(CollectionUtils.isNotEmpty(list)){
|
if(CollectionUtils.isNotEmpty(list)){
|
||||||
data.put("todo",list.size());
|
data.put("todo",list.size());
|
||||||
|
|
|
@ -454,7 +454,6 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
|
||||||
@Override
|
@Override
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public void delegateTask(FlowTaskVo flowTaskVo) {
|
public void delegateTask(FlowTaskVo flowTaskVo) {
|
||||||
taskService.addComment(flowTaskVo.getTaskId(), flowTaskVo.getInstanceId(), FlowComment.DELEGATE.getType(), flowTaskVo.getComment());
|
|
||||||
taskService.delegateTask(flowTaskVo.getTaskId(), flowTaskVo.getAssignee());
|
taskService.delegateTask(flowTaskVo.getTaskId(), flowTaskVo.getAssignee());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -480,7 +479,6 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
|
||||||
@Override
|
@Override
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public void assignTask(FlowTaskVo flowTaskVo) {
|
public void assignTask(FlowTaskVo flowTaskVo) {
|
||||||
taskService.addComment(flowTaskVo.getTaskId(), flowTaskVo.getInstanceId(), FlowComment.ASSIGN.getType(), flowTaskVo.getComment());
|
|
||||||
// 直接转派就可以覆盖掉之前的
|
// 直接转派就可以覆盖掉之前的
|
||||||
taskService.setAssignee(flowTaskVo.getTaskId(), flowTaskVo.getAssignee());
|
taskService.setAssignee(flowTaskVo.getTaskId(), flowTaskVo.getAssignee());
|
||||||
// // 删除指派人重新指派
|
// // 删除指派人重新指派
|
||||||
|
|
|
@ -125,7 +125,7 @@ public class DataScopeAspect
|
||||||
{
|
{
|
||||||
sqlString.append(StringUtils.format(
|
sqlString.append(StringUtils.format(
|
||||||
" OR {}.dept_id IN ( SELECT dept_id FROM sys_dept WHERE dept_id = {} or find_in_set( {} , ancestors ) )",
|
" OR {}.dept_id IN ( SELECT dept_id FROM sys_dept WHERE dept_id = {} or find_in_set( {} , ancestors ) )",
|
||||||
deptAlias, user.getParDeptId(), user.getParDeptId()));
|
deptAlias, user.getDeptId(), user.getDeptId()));
|
||||||
}
|
}
|
||||||
else if (DATA_SCOPE_SELF.equals(dataScope))
|
else if (DATA_SCOPE_SELF.equals(dataScope))
|
||||||
{
|
{
|
||||||
|
|
|
@ -65,8 +65,8 @@ public class ProProjectApplyController extends BaseController
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取项目申请详细信息
|
* 获取项目申请详细信息
|
||||||
* @PreAuthorize("@ss.hasPermi('project:projectApply:query')")
|
|
||||||
*/
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('project:projectApply:query')")
|
||||||
@GetMapping(value = "/{id}")
|
@GetMapping(value = "/{id}")
|
||||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||||
{
|
{
|
||||||
|
|
|
@ -51,11 +51,11 @@
|
||||||
<!-- 查询条件-项目部门 -->
|
<!-- 查询条件-项目部门 -->
|
||||||
<if test="deptAncestors != null and deptAncestors != ''"> and find_in_set(fa.businessDeptId, #{deptAncestors}) </if>
|
<if test="deptAncestors != null and deptAncestors != ''"> and find_in_set(fa.businessDeptId, #{deptAncestors}) </if>
|
||||||
<if test="roleIds !=null and roleIds.size()>0">
|
<if test="roleIds !=null and roleIds.size()>0">
|
||||||
AND (fa.ASSIGNEE_ = #{assigneeId}
|
AND (fa.ASSIGNEE_ = #{nowUser}
|
||||||
OR (
|
OR (
|
||||||
fa.ASSIGNEE_ IS NULL
|
fa.ASSIGNEE_ IS NULL
|
||||||
AND (
|
AND (
|
||||||
fa.USER_ID_ = #{assigneeId}
|
fa.USER_ID_ = #{nowUser}
|
||||||
OR (
|
OR (
|
||||||
fa.GROUP_ID_ IN
|
fa.GROUP_ID_ IN
|
||||||
<foreach collection="roleIds" item="roleId" open="(" separator="," close=")">
|
<foreach collection="roleIds" item="roleId" open="(" separator="," close=")">
|
||||||
|
|
|
@ -20,18 +20,9 @@ export function complete(data) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 委派任务
|
// 委派任务
|
||||||
export function delegateTask(data) {
|
export function delegate(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/flowable/task/delegateTask',
|
url: '/flowable/task/delegate',
|
||||||
method: 'post',
|
|
||||||
data: data
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
//转办任务
|
|
||||||
export function assignTask(data) {
|
|
||||||
return request({
|
|
||||||
url: '/flowable/task/assignTask',
|
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
v-show="showSearch"
|
v-show="showSearch"
|
||||||
label-width="68px"
|
label-width="68px"
|
||||||
>
|
>
|
||||||
<el-form-item label="流程名称" prop="name" v-if="false">
|
<el-form-item label="流程名称" prop="name">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryParams.name"
|
v-model="queryParams.name"
|
||||||
placeholder="请输入流程名称"
|
placeholder="请输入流程名称"
|
||||||
|
@ -87,17 +87,20 @@
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
:data="finishedList"
|
:data="finishedList"
|
||||||
border
|
border
|
||||||
|
@selection-change="handleSelectionChange"
|
||||||
>
|
>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="项目单位"
|
label="项目单位"
|
||||||
align="center"
|
align="center"
|
||||||
prop="businessKeyParName"
|
prop="businessKeyParName"
|
||||||
|
width="150"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="项目名称"
|
label="项目名称"
|
||||||
align="center"
|
align="center"
|
||||||
prop="businessKeyName"
|
prop="businessKeyName"
|
||||||
|
width="150"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
@ -113,7 +116,7 @@
|
||||||
prop="procDefName"
|
prop="procDefName"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column label="流程类别" align="center" prop="category" >
|
<el-table-column label="流程类别" align="center" prop="category" width="130">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<dict-tag
|
<dict-tag
|
||||||
:options="dict.type.sys_process_category"
|
:options="dict.type.sys_process_category"
|
||||||
|
@ -121,7 +124,7 @@
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="流程节点" align="center" prop="taskName" :show-overflow-tooltip="true">
|
<el-table-column label="流程节点" align="center" prop="taskName" width="110">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div v-if="scope.row.finishTime == null">{{ scope.row.taskName }}</div>
|
<div v-if="scope.row.finishTime == null">{{ scope.row.taskName }}</div>
|
||||||
<div v-if="scope.row.finishTime != null">流程结束</div>
|
<div v-if="scope.row.finishTime != null">流程结束</div>
|
||||||
|
@ -130,7 +133,7 @@
|
||||||
<el-table-column label="发起人" align="center" width="180">
|
<el-table-column label="发起人" align="center" width="180">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<label
|
<label
|
||||||
>{{ scope.row.startUserName }}<el-tag type="info" size="mini">{{
|
>{{ scope.row.startUserName }}<br /><el-tag type="info" size="mini">{{
|
||||||
scope.row.startDeptName
|
scope.row.startDeptName
|
||||||
}}</el-tag></label
|
}}</el-tag></label
|
||||||
>
|
>
|
||||||
|
@ -140,7 +143,7 @@
|
||||||
<el-table-column label="审批时间" align="center" prop="endTime" width="160" />
|
<el-table-column label="审批时间" align="center" prop="endTime" width="160" />
|
||||||
<el-table-column label="审批耗时" align="center" prop="duration" width="140">
|
<el-table-column label="审批耗时" align="center" prop="duration" width="140">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ getDurationDate(scope.row.duration) }}
|
{{ getDurationDate(scope.row) }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="流程状态" align="center" width="80">
|
<el-table-column label="流程状态" align="center" width="80">
|
||||||
|
@ -192,8 +195,6 @@
|
||||||
:limit.sync="queryParams.pageSize"
|
:limit.sync="queryParams.pageSize"
|
||||||
@pagination="getList"
|
@pagination="getList"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<detailDrawer ref="detailDrawer"></detailDrawer>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -277,8 +278,8 @@ export default {
|
||||||
this.queryParams.params["endDate"] = this.daterangeCheckTime[1];
|
this.queryParams.params["endDate"] = this.daterangeCheckTime[1];
|
||||||
}
|
}
|
||||||
myFinishedFlowTaskList(this.queryParams).then((response) => {
|
myFinishedFlowTaskList(this.queryParams).then((response) => {
|
||||||
this.finishedList = response.rows;
|
this.finishedList = response.data.records;
|
||||||
this.total = response.total;
|
this.total = response.data.total;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -343,7 +344,14 @@ export default {
|
||||||
},
|
},
|
||||||
/** 流程流转记录 */
|
/** 流程流转记录 */
|
||||||
handleFlowRecord(row) {
|
handleFlowRecord(row) {
|
||||||
this.$refs.detailDrawer.show(row);
|
this.$router.push({
|
||||||
|
path: "/flowable/task/finished/detail/index",
|
||||||
|
query: {
|
||||||
|
procInsId: row.procInsId,
|
||||||
|
deployId: row.deployId,
|
||||||
|
taskId: row.taskId,
|
||||||
|
},
|
||||||
|
});
|
||||||
},
|
},
|
||||||
/** 撤回任务 */
|
/** 撤回任务 */
|
||||||
handleRevoke(row) {
|
handleRevoke(row) {
|
||||||
|
@ -351,8 +359,8 @@ export default {
|
||||||
procInsId: row.procInsId,
|
procInsId: row.procInsId,
|
||||||
instanceId: row.procInsId,
|
instanceId: row.procInsId,
|
||||||
taskId:row.taskId,
|
taskId:row.taskId,
|
||||||
userId:this.$store.getters.userId,
|
userId:row.startUserId,
|
||||||
assignee:this.$store.getters.nickname
|
assignee:row.startUserName
|
||||||
}
|
}
|
||||||
let _this = this;
|
let _this = this;
|
||||||
_this.$confirm('是否确认撤回当前任务流程?', '提示', {
|
_this.$confirm('是否确认撤回当前任务流程?', '提示', {
|
||||||
|
|
|
@ -278,6 +278,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import store from "@/store";
|
||||||
import { definitionStart, flowXmlAndNode } from "@/api/flowable/definition";
|
import { definitionStart, flowXmlAndNode } from "@/api/flowable/definition";
|
||||||
import { CustomViewer as BpmnViewer } from "@/components/customBpmn";
|
import { CustomViewer as BpmnViewer } from "@/components/customBpmn";
|
||||||
import { getProjectApply } from "@/api/project/projectApply";
|
import { getProjectApply } from "@/api/project/projectApply";
|
||||||
|
@ -490,7 +491,7 @@ export default {
|
||||||
taskId:this.options.taskId,
|
taskId:this.options.taskId,
|
||||||
instanceId:this.options.procInsId,
|
instanceId:this.options.procInsId,
|
||||||
instanceId:this.options.procInsId,
|
instanceId:this.options.procInsId,
|
||||||
comment:this.$store.getters.name+" 重新修改并重新提交申请。",
|
comment:store.getters.name+" 重新修改并重新提交申请。",
|
||||||
proProjectApply:this.form
|
proProjectApply:this.form
|
||||||
}
|
}
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
v-show="showSearch"
|
v-show="showSearch"
|
||||||
label-width="68px"
|
label-width="68px"
|
||||||
>
|
>
|
||||||
<el-form-item label="流程名称" prop="name" v-if="false">
|
<el-form-item label="流程名称" prop="name">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryParams.name"
|
v-model="queryParams.name"
|
||||||
placeholder="请输入流程名称"
|
placeholder="请输入流程名称"
|
||||||
|
@ -247,7 +247,7 @@
|
||||||
v-show="showSearch"
|
v-show="showSearch"
|
||||||
label-width="80px"
|
label-width="80px"
|
||||||
>
|
>
|
||||||
<el-form-item label="流程名称" prop="name" v-if="false">
|
<el-form-item label="流程名称" prop="name">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryProcessParams.name"
|
v-model="queryProcessParams.name"
|
||||||
placeholder="请输入流程名称"
|
placeholder="请输入流程名称"
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
direction="rtl"
|
direction="rtl"
|
||||||
@close="closeCallBack"
|
@close="closeCallBack"
|
||||||
size="70%"
|
size="70%"
|
||||||
z-index="10002"
|
|
||||||
>
|
>
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
<div>
|
<div>
|
||||||
|
@ -204,7 +203,10 @@
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<div style="text-align: center">
|
<div style="text-align: center">
|
||||||
<el-button icon="el-icon-s-custom" plain size="mini" @click="handleDelegate"
|
<el-button
|
||||||
|
icon="el-icon-s-custom"
|
||||||
|
plain
|
||||||
|
size="mini"
|
||||||
>任务委派</el-button
|
>任务委派</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
|
@ -212,7 +214,6 @@
|
||||||
type="primary"
|
type="primary"
|
||||||
plain
|
plain
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handleAssign"
|
|
||||||
>任务转办</el-button
|
>任务转办</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
|
@ -261,26 +262,10 @@
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<!--占位使用...-->
|
<!--占位使用...-->
|
||||||
<div style="width: 100%; height: 2px"></div>
|
<div style="width:100%;height:2px;"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
<!--选择人员-->
|
|
||||||
<el-dialog
|
|
||||||
title="选择人员"
|
|
||||||
:visible.sync="userVisible"
|
|
||||||
width="60%"
|
|
||||||
:close-on-press-escape="false"
|
|
||||||
:show-close="false"
|
|
||||||
z-index="999999"
|
|
||||||
v-loading="delegateLoading"
|
|
||||||
>
|
|
||||||
<flow-user :checkType="checkType" @handleUserSelect="handleUserSelect"></flow-user>
|
|
||||||
<span slot="footer" class="dialog-footer">
|
|
||||||
<el-button @click="userVisible = false">取 消</el-button>
|
|
||||||
<el-button type="primary" @click="checkUserComplete">确 定</el-button>
|
|
||||||
</span>
|
|
||||||
</el-dialog>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -288,20 +273,12 @@
|
||||||
import store from "@/store";
|
import store from "@/store";
|
||||||
import { flowXmlAndNode } from "@/api/flowable/definition";
|
import { flowXmlAndNode } from "@/api/flowable/definition";
|
||||||
import { CustomViewer as BpmnViewer } from "@/components/customBpmn";
|
import { CustomViewer as BpmnViewer } from "@/components/customBpmn";
|
||||||
import {
|
import { complete, rejectTask, returnTask, returnList } from "@/api/flowable/todo";
|
||||||
complete,
|
|
||||||
rejectTask,
|
|
||||||
returnTask,
|
|
||||||
assignTask,
|
|
||||||
delegateTask,
|
|
||||||
returnList,
|
|
||||||
} from "@/api/flowable/todo";
|
|
||||||
import FlowUser from "@/components/flow/User";
|
|
||||||
import { findCommentByProcInsId } from "@/api/flowable/businessKey";
|
import { findCommentByProcInsId } from "@/api/flowable/businessKey";
|
||||||
import { getProjectApply } from "@/api/project/projectApply";
|
import { getProjectApply } from "@/api/project/projectApply";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { FlowUser },
|
components: {},
|
||||||
props: {
|
props: {
|
||||||
closeCallBack: {
|
closeCallBack: {
|
||||||
type: Function,
|
type: Function,
|
||||||
|
@ -313,7 +290,6 @@ export default {
|
||||||
onOpen: false,
|
onOpen: false,
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
loading: false,
|
loading: false,
|
||||||
delegateLoading: false,
|
|
||||||
// 标题
|
// 标题
|
||||||
title: "",
|
title: "",
|
||||||
jdtitle: "",
|
jdtitle: "",
|
||||||
|
@ -341,12 +317,6 @@ export default {
|
||||||
returnTask: false,
|
returnTask: false,
|
||||||
returnTaskBtn: false,
|
returnTaskBtn: false,
|
||||||
showAssetsVersion: false,
|
showAssetsVersion: false,
|
||||||
userVisible: false,
|
|
||||||
// 选类型
|
|
||||||
checkType: "single",
|
|
||||||
// 选中的值
|
|
||||||
selectValue: null,
|
|
||||||
delegateType: null,
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
|
@ -721,71 +691,6 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 任务委派
|
|
||||||
handleDelegate() {
|
|
||||||
this.delegateType = "Delegate";
|
|
||||||
this.userVisible = true;
|
|
||||||
},
|
|
||||||
//任务转办
|
|
||||||
handleAssign() {
|
|
||||||
this.delegateType = "Assign";
|
|
||||||
this.userVisible = true;
|
|
||||||
},
|
|
||||||
// 用户选中数据
|
|
||||||
handleUserSelect(selection) {
|
|
||||||
this.selectValue = null;
|
|
||||||
if (selection) {
|
|
||||||
this.selectValue = selection;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
checkUserComplete() {
|
|
||||||
if (this.selectValue) {
|
|
||||||
let param = {
|
|
||||||
taskId: this.options.taskId,
|
|
||||||
procInsId: this.options.procInsId,
|
|
||||||
instanceId: this.options.procInsId,
|
|
||||||
assignee: this.selectValue.userId
|
|
||||||
};
|
|
||||||
const that = this;
|
|
||||||
if (this.delegateType == "Delegate") {
|
|
||||||
param.comment=this.$store.getters.nickname+" 将申请流程委派到 "+ this.selectValue.nickName;
|
|
||||||
this.$modal
|
|
||||||
.confirm(
|
|
||||||
"是否确认“委派”当前申请流程给 " + this.selectValue.nickName + "处理?"
|
|
||||||
)
|
|
||||||
.then(function () {
|
|
||||||
that.delegateLoading = true;
|
|
||||||
return delegateTask(param);
|
|
||||||
})
|
|
||||||
.then(() => {
|
|
||||||
this.delegateLoading = false;
|
|
||||||
this.userVisible = false;
|
|
||||||
//关闭并刷新列表
|
|
||||||
this.$refs.drawer.closeDrawer();
|
|
||||||
})
|
|
||||||
.catch(() => {});
|
|
||||||
} else {
|
|
||||||
param.comment=this.$store.getters.nickname+" 将申请流程转办到 "+ this.selectValue.nickName;
|
|
||||||
this.$modal
|
|
||||||
.confirm(
|
|
||||||
"是否确认“转办”当前申请流程给 " + this.selectValue.nickName + "处理?"
|
|
||||||
)
|
|
||||||
.then(function () {
|
|
||||||
that.delegateLoading = true;
|
|
||||||
return assignTask(param);
|
|
||||||
})
|
|
||||||
.then(() => {
|
|
||||||
this.delegateLoading = false;
|
|
||||||
this.userVisible = false;
|
|
||||||
//关闭并刷新列表
|
|
||||||
this.$refs.drawer.closeDrawer();
|
|
||||||
})
|
|
||||||
.catch(() => {});
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
this.$modal.msgWarning("请选择人员信息");
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
v-show="showSearch"
|
v-show="showSearch"
|
||||||
label-width="68px"
|
label-width="68px"
|
||||||
>
|
>
|
||||||
<el-form-item label="流程名称" prop="name" v-if="false">
|
<el-form-item label="流程名称" prop="name">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryParams.name"
|
v-model="queryParams.name"
|
||||||
placeholder="请输入流程名称"
|
placeholder="请输入流程名称"
|
||||||
|
|
Loading…
Reference in New Issue