Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f7a2949a
authored
Feb 15, 2025
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【代码评审】BPM:办理人的逻辑
parent
f91868b4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
16 deletions
+12
-16
src/components/SimpleProcessDesignerV2/src/nodes-config/UserTaskNodeConfig.vue
+5
-9
src/components/SimpleProcessDesignerV2/src/nodes/UserTaskNode.vue
+2
-1
src/views/bpm/processInstance/detail/ProcessInstanceOperationButton.vue
+5
-6
No files found.
src/components/SimpleProcessDesignerV2/src/nodes-config/UserTaskNodeConfig.vue
View file @
f7a2949a
...
...
@@ -679,12 +679,12 @@ const {
const
userTaskListenerRef
=
ref
()
/
/ 节点类型名称
/
** 节点类型名称 */
const
nodeTypeName
=
computed
(()
=>
{
return
currentNode
.
value
.
type
===
NodeType
.
TRANSACTOR_NODE
?
'办理'
:
'审批'
})
/
/ 保存配置
/
** 保存配置 */
const
saveConfig
=
async
()
=>
{
// activeTabName.value = 'user'
// 设置审批节点名称
...
...
@@ -770,7 +770,7 @@ const saveConfig = async () => {
return
true
}
/
/ 显示审批节点配置, 由父组件传过来
/
** 显示审批节点配置, 由父组件传过来 */
const
showUserTaskNodeConfig
=
(
node
:
SimpleFlowNode
)
=>
{
nodeName
.
value
=
node
.
name
// 1 审批类型
...
...
@@ -849,9 +849,7 @@ const showUserTaskNodeConfig = (node: SimpleFlowNode) => {
defineExpose
({
openDrawer
,
showUserTaskNodeConfig
})
// 暴露方法给父组件
/**
* @description 操作按钮设置
*/
/** 操作按钮设置 */
function
useButtonsSetting
()
{
const
buttonsSetting
=
ref
<
ButtonSetting
[]
>
()
// 操作按钮显示名称可编辑
...
...
@@ -872,9 +870,7 @@ function useButtonsSetting() {
}
}
/**
* @description 审批人超时未处理配置
*/
/** 审批人超时未处理配置 */
function
useTimeoutHandler
()
{
// 时间单位
const
timeUnit
=
ref
(
TimeUnitType
.
HOUR
)
...
...
src/components/SimpleProcessDesignerV2/src/nodes/UserTaskNode.vue
View file @
f7a2949a
...
...
@@ -14,7 +14,8 @@
>
<span
:class=
"`iconfont $
{currentNode.type === NodeType.TRANSACTOR_NODE ? 'icon-transactor' : 'icon-approve'}`"
>
</span>
>
</span>
</div>
<input
v-if=
"!readonly && showInput"
...
...
src/views/bpm/processInstance/detail/ProcessInstanceOperationButton.vue
View file @
f7a2949a
...
...
@@ -36,10 +36,10 @@
:rule=
"approveForm.rule"
/>
</el-card>
<el-form-item
:label=
"`${
task
Name}意见`"
prop=
"reason"
>
<el-form-item
:label=
"`${
nodeType
Name}意见`"
prop=
"reason"
>
<el-input
v-model=
"approveReasonForm.reason"
:placeholder=
"`请输入${
task
Name}意见`"
:placeholder=
"`请输入${
nodeType
Name}意见`"
type=
"textarea"
:rows=
"4"
/>
...
...
@@ -547,6 +547,7 @@ const returnList = ref([] as any) // 退回节点
const
runningTask
=
ref
<
any
>
()
// 运行中的任务
const
approveForm
=
ref
<
any
>
({})
// 审批通过时,额外的补充信息
const
approveFormFApi
=
ref
<
any
>
({})
// approveForms 的 fAPi
const
nodeTypeName
=
ref
(
'审批'
)
// 节点类型名称
// 审批通过意见表单
const
reasonRequire
=
ref
()
...
...
@@ -560,7 +561,7 @@ const approveReasonForm = reactive({
const
approveReasonRule
=
computed
(()
=>
{
return
{
reason
:
[
{
required
:
reasonRequire
.
value
,
message
:
task
Name
+
'意见不能为空'
,
trigger
:
'blur'
}
{
required
:
reasonRequire
.
value
,
message
:
nodeType
Name
+
'意见不能为空'
,
trigger
:
'blur'
}
],
signPicUrl
:
[{
required
:
true
,
message
:
'签名不能为空'
,
trigger
:
'change'
}]
}
...
...
@@ -970,14 +971,12 @@ const getButtonDisplayName = (btnType: OperationButtonType) => {
return
displayName
}
const
taskName
=
ref
(
'审批'
)
const
loadTodoTask
=
(
task
:
any
)
=>
{
approveForm
.
value
=
{}
approveFormFApi
.
value
=
{}
runningTask
.
value
=
task
reasonRequire
.
value
=
task
?.
reasonRequire
??
false
task
Name
.
value
=
task
?.
nodeType
===
NodeType
.
TRANSACTOR_NODE
?
'办理'
:
'审批'
nodeType
Name
.
value
=
task
?.
nodeType
===
NodeType
.
TRANSACTOR_NODE
?
'办理'
:
'审批'
// 处理 approve 表单.
if
(
task
&&
task
.
formId
&&
task
.
formConf
)
{
const
tempApproveForm
=
{}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment