diff --git a/ruoyi-system/src/main/resources/mapper/flowable/FlowBusinessKeyMapper.xml b/ruoyi-system/src/main/resources/mapper/flowable/FlowBusinessKeyMapper.xml index 625e1675..7a0a29e8 100644 --- a/ruoyi-system/src/main/resources/mapper/flowable/FlowBusinessKeyMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/flowable/FlowBusinessKeyMapper.xml @@ -74,7 +74,7 @@ and fa.businessKey in (select DISTINCT projectId from sur_project_unit_info where unitId=#{nowDept} and del_flag=0) - and fa.businessKey in (select DISTINCT projectId from sur_project_userinfo where user_id=#{nowUser} and is_del=0) + and fa.businessKey in (select DISTINCT project_id from sur_project_userinfo where user_id=#{nowUser} and is_del=0) AND (fa.ASSIGNEE_ = #{nowUser} OR ( fa.ASSIGNEE_ IS NULL diff --git a/ruoyi-ui/src/views/flowable/task/myProcess/detail/detailLeaveDrawer.vue b/ruoyi-ui/src/views/flowable/task/myProcess/detail/detailLeaveDrawer.vue new file mode 100644 index 00000000..bc3b3c0f --- /dev/null +++ b/ruoyi-ui/src/views/flowable/task/myProcess/detail/detailLeaveDrawer.vue @@ -0,0 +1,496 @@ + + + + + \ No newline at end of file diff --git a/ruoyi-ui/src/views/flowable/task/todo/detail/approveDrawer.vue b/ruoyi-ui/src/views/flowable/task/todo/detail/approveDrawer.vue index ed666fec..df7a5d27 100644 --- a/ruoyi-ui/src/views/flowable/task/todo/detail/approveDrawer.vue +++ b/ruoyi-ui/src/views/flowable/task/todo/detail/approveDrawer.vue @@ -96,10 +96,10 @@ rows="5" /> - +
- 通过 - 驳回 + 任务转办 + 审批通过 + 退回任务 + 驳回上级
+
+

“审批通过” 操作后,代表您对当前任务满意,任务进入下一阶段。

+

“退回任务” 操作后,代表您对当前任务不满意,任务进入您选择的阶段,或者直接退回给申请人重新申请。

+

“驳回上级” 操作后,代表您对当前任务不满意,任务退回到上一阶段继续处理。

+
@@ -126,7 +133,7 @@ import store from "@/store"; import { flowXmlAndNode } from "@/api/flowable/definition"; import { CustomViewer as BpmnViewer } from "@/components/customBpmn"; -import { complete, rejectTask, returnList } from "@/api/flowable/todo"; +import { complete, rejectTask, returnTask, returnList } from "@/api/flowable/todo"; import {findCommentByProcInsId,findFormDatasByProcInsId} from "@/api/flowable/businessKey"; export default { components: {}, @@ -157,6 +164,10 @@ export default { }, ], }, + queryParams:{ + nickName:null, + phonenumber:null, + }, bpmnViewer: null, options: {}, flowRecordList: [], @@ -165,7 +176,8 @@ export default { labelStyle: { width: "180px" }, initData:{}, returnTaskList: [], // 回退列表数据 - returnTask:false + returnTask:false, + returnTaskBtn:false }; }, computed: {}, @@ -218,9 +230,44 @@ export default { } }); }, + /** 退回任务 */ + handleBack(){ + if(!this.returnTask){ + this.returnTask=true; + this.$modal.msgWarning("请选择退回节点"); + return; + } + this.$refs["form"].validate((valid) => { + if (valid) { + if(!this.form.targetKey){ + this.$modal.msgWarning("请选择退回节点"); + return; + } + this.$confirm('是否确认退回当前流程申请?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.loading=true; + returnTask(this.form).then(res => { + this.$modal.msgSuccess("任务退回成功"); + this.loading = false; + //关闭并刷新列表 + this.$refs.drawer.closeDrawer(); + }); + }).catch(() => { + console.log("取消操作"); + }); + } + }); + }, initReturnList(){ returnList(this.form).then(res => { this.returnTaskList = res.data; + //退回节点>1时,可显示退回按钮 + if(res.data.length>1){ + this.returnTaskBtn=true; + } }) }, initFormDate(){ @@ -231,6 +278,9 @@ export default { this.form.procInsId = this.options.procInsId; this.form.instanceId = this.options.procInsId; this.form.executionId = this.options.procInsId; + this.returnTask=false; + this.returnTaskBtn=false; + this.initReturnList(); }, setIcon(row) { if (row.endTime) { @@ -562,4 +612,12 @@ export default { } } } +.page-warning { + padding: 8px 16px; + background-color: #f0f9eb; + border-radius: 4px; + border-left: 5px solid #67C23A; + margin: 20px 0; + font-size: 13px; +} diff --git a/ruoyi-ui/src/views/flowable/task/todo/detail/approveLeaveDrawer.vue b/ruoyi-ui/src/views/flowable/task/todo/detail/approveLeaveDrawer.vue new file mode 100644 index 00000000..2ade5844 --- /dev/null +++ b/ruoyi-ui/src/views/flowable/task/todo/detail/approveLeaveDrawer.vue @@ -0,0 +1,655 @@ + + + + diff --git a/ruoyi-ui/src/views/project/projectChecking/projectCheckingDrawer.vue b/ruoyi-ui/src/views/project/projectChecking/projectCheckingDrawer.vue index e0e18d7c..e7b9e481 100644 --- a/ruoyi-ui/src/views/project/projectChecking/projectCheckingDrawer.vue +++ b/ruoyi-ui/src/views/project/projectChecking/projectCheckingDrawer.vue @@ -299,7 +299,6 @@