Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
zrch-risk-39
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Administrator
zrch-risk-39
Commits
5707475e
提交
5707475e
authored
3月 20, 2026
作者:
kxjia
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
http://47.97.51.208/root/zrch-risk-39
上级
08f9b5be
32dbf63d
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
33 行增加
和
18 行删除
+33
-18
StPlanManList.vue
zrch-risk-client-39/src/views/project/plan/StPlanManList.vue
+33
-18
没有找到文件。
zrch-risk-client-39/src/views/project/plan/StPlanManList.vue
浏览文件 @
5707475e
...
...
@@ -113,10 +113,10 @@
import
{
message
}
from
'ant-design-vue'
;
import
{
definitionStartByDeployId
}
from
'/@/components/Process/api/definition'
;
import
{
useRoute
}
from
'vue-router'
;
import
{
useUserStore
}
from
"/@/store/modules/user"
;
import
{
useUserStore
}
from
'/@/store/modules/user'
;
// 引入待办任务组件
import
TodoIndex
from
'../../flowable/task/todo/components/TodoIndex.vue'
;
import
{
todoList
,
getMyTaskFlow
}
from
'/@/components/Process/api/todo'
;
import
{
todoList
,
getMyTaskFlow
}
from
'/@/components/Process/api/todo'
;
const
refTodoIndex
=
ref
();
const
isShowDrawer
=
ref
(
false
);
const
startUser
=
ref
<
string
>
(
''
);
...
...
@@ -266,9 +266,7 @@
// 流程未启动时,先启动流程
const
needStartFlow
=
!
record
.
taskId
&&
!
record
.
procInsId
&&
(
record
[
'bpmStatus'
]
==
null
||
record
[
'bpmStatus'
]
==
''
||
record
[
'bpmStatus'
]
==
'1'
);
!
record
.
taskId
&&
!
record
.
procInsId
&&
(
record
[
'bpmStatus'
]
==
null
||
record
[
'bpmStatus'
]
==
''
||
record
[
'bpmStatus'
]
==
'1'
);
if
(
needStartFlow
&&
record
.
deployId
)
{
try
{
...
...
@@ -293,7 +291,7 @@
if
(
todoRow
?.
taskId
)
{
payload
=
Object
.
assign
({},
record
,
startRes
,
todoRow
);
}
}
else
{
}
else
{
//console.log("definitionStartByDeployId 返回值-payload -2");
}
...
...
@@ -316,7 +314,7 @@
//console.log("definitionStartByDeployId 返回值-payload- return");
return
;
}
console
.
log
(
"流程已启动:优先使用 record.taskId,否则尝试用 procInsId 从待办列表反查"
);
console
.
log
(
'流程已启动:优先使用 record.taskId,否则尝试用 procInsId 从待办列表反查'
);
// 流程已启动:优先使用 record.taskId,否则尝试用 procInsId 从待办列表反查
try
{
let
payload
:
any
=
{
...
record
};
...
...
@@ -346,30 +344,48 @@ console.log("流程已启动:优先使用 record.taskId,否则尝试用 proc
}
}
// 待办任务:
async
function
handleTodoDb
(
record
:
Recordable
)
{
const
dataId
=
record
.
id
;
const
deployId
=
record
.
deployId
;
if
(
!
dataId
||
!
deployId
)
{
if
(
!
dataId
||
!
deployId
)
{
message
.
error
(
'未找到业务数据标识'
);
return
;
}
const
myTaskFlow
=
await
getMyTaskFlow
({
deploymentId
:
record
.
deployId
,
dataId
:
record
.
id
});
try
{
const
myTaskFlow
=
await
getMyTaskFlow
({
deploymentId
:
record
.
deployId
,
dataId
:
record
.
id
});
console
.
log
(
'获取流程任务信息:'
,
myTaskFlow
);
// 提取任务流信息,支持多层返回结构(data/result/直接对象)
const
taskData
=
pickStartResult
(
myTaskFlow
);
if
(
!
taskData
||
!
taskData
.
taskId
)
{
message
.
error
(
'未获取到待办任务信息'
);
return
;
}
// 若未指定是否审批,则默认展示审批意见(保持与发起流程一致)
if
(
taskData
.
nodeisApprove
==
null
)
{
taskData
.
nodeisApprove
=
true
;
}
// 保存缓存
taskCache
.
set
(
String
(
dataId
),
taskData
);
async
function
handleSubmit
(
record
)
{
if
(
record
.
approveDepCode
==
''
||
record
.
approveUser
==
''
)
{
message
.
warning
(
'请选择审核部门与审核人后进行提交'
);
}
else
{
record
[
'planFlag'
]
=
'1'
;
await
handlePlan
(
record
,
handleSuccess
);
// 打开抽屉并初始化待办任务数据
startUser
.
value
=
taskData
.
startUserName
||
taskData
.
startUser
||
''
;
taskName
.
value
=
taskData
.
taskName
||
taskData
.
currentTaskName
||
''
;
isShowDrawer
.
value
=
true
;
await
nextTick
();
refTodoIndex
.
value
?.
iniData
?.(
taskData
);
}
catch
(
e
)
{
console
.
error
(
'获取流程任务信息失败:'
,
e
);
message
.
error
(
'获取任务信息失败,请重试'
);
}
}
/**
* 删除事件
*/
...
...
@@ -393,7 +409,6 @@ console.log("流程已启动:优先使用 record.taskId,否则尝试用 proc
*/
function
getTableAction
(
record
)
{
return
[
{
label
:
'发起'
,
ifShow
:
()
=>
{
...
...
@@ -405,7 +420,7 @@ console.log("流程已启动:优先使用 record.taskId,否则尝试用 proc
{
label
:
'待办'
,
ifShow
:
()
=>
{
if
(
record
[
'bpmStatus'
]
==
'2'
&&
record
[
'uid'
]
==
userStore
.
getUserInfo
.
id
)
return
true
;
if
(
record
[
'bpmStatus'
]
==
'2'
&&
record
[
'uid'
]
==
userStore
.
getUserInfo
.
id
)
return
true
;
else
return
false
;
},
onClick
:
handleTodoDb
.
bind
(
null
,
record
),
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论