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 @@
+
+
+
+
+ 流程详情 【{{ title }}】 - 当前进度【{{ jdtitle }}】 - 当前节点【{{options.taskName}}】
+
+
+
+
+
+
+
+ {{ getSort(index) }}{{item.taskName}}{{item.commentResult}}
+
+
+
+ 办理人
+ {{item.assigneeName}}
+ {{item.deptName}}
+
+
+ 候选办理
+ {{item.candidate}}
+
+
+ 驳回节点
+ {{getDeleteReason(item.deleteReason)}}
+
+
+ 接收时间
+ {{item.startTime}}
+
+
+ 处理时间
+ {{item.endTime}}
+
+
+ 处理耗时
+ {{getDurationDate(item.duration)}}
+
+
+ 处理意见
+ {{item.message}}
+
+
+
+
+
+
+
+
+
+
+
+
+ 所属项目
+
+ {{ initData.projectName }}
+
+
+
+
+ 申请单位
+
+ {{ options.startDeptName }}
+
+
+
+
+ 申请事项
+
+ {{ title }}
+
+
+
+
+ 申请人
+
+ {{ options.startUserName }}
+
+
+
+
+ 申请日期
+
+ {{ initData.date }}
+
+
+
+
+ 请假日期
+
+ {{ initData.beginDate }} - {{ initData.endDate }}
+
+
+
+
+ 请假时间
+
+ 共 {{initData.day}} 天
+
+
+
+
+ 请假事由
+
+ {{initData.remark}}
+
+
+
+
+ 关 闭
+
+
+
+
+
+
+
+
+
+
\ 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 @@
+