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
0f58e968
authored
Jan 21, 2025
by
Lesan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: BPM-更多设置-自动去重
parent
187fa085
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
1 deletions
+29
-1
src/utils/constants.ts
+6
-0
src/views/bpm/model/form/ExtraSettings.vue
+21
-0
src/views/bpm/model/form/index.vue
+2
-1
No files found.
src/utils/constants.ts
View file @
0f58e968
...
@@ -457,3 +457,9 @@ export const BpmProcessInstanceStatus = {
...
@@ -457,3 +457,9 @@ export const BpmProcessInstanceStatus = {
REJECT
:
3
,
// 审批不通过
REJECT
:
3
,
// 审批不通过
CANCEL
:
4
// 已取消
CANCEL
:
4
// 已取消
}
}
export
const
BpmAutoApproveType
=
{
NONE
:
1
,
// 不自动通过
APPROVE_ALL
:
2
,
// 仅审批一次,后续重复的审批节点均自动通过
APPROVE_SEQUENT
:
3
,
// 仅针对连续审批的节点自动通过
}
src/views/bpm/model/form/ExtraSettings.vue
View file @
0f58e968
...
@@ -58,11 +58,29 @@
...
@@ -58,11 +58,29 @@
</div>
</div>
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
class=
"mb-20px"
>
<
template
#
label
>
<el-text
size=
"large"
tag=
"b"
>
自动去重
</el-text>
</
template
>
<div
class=
"flex flex-col"
>
<div>
<el-text>
同一审批人在流程中重复出现时:
</el-text>
</div>
<el-radio-group
v-model=
"modelData.autoApprovalType"
>
<div
class=
"flex flex-col"
>
<el-radio
:value=
"1"
>
不自动通过
</el-radio>
<el-radio
:value=
"2"
>
仅审批一次,后续重复的审批节点均自动通过
</el-radio>
<el-radio
:value=
"3"
>
仅针对连续审批的节点自动通过
</el-radio>
</div>
</el-radio-group>
</div>
</el-form-item>
</el-form>
</el-form>
</template>
</template>
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
dayjs
from
'dayjs'
import
dayjs
from
'dayjs'
import
{
BpmAutoApproveType
}
from
'@/utils/constants'
const
modelData
=
defineModel
<
any
>
()
const
modelData
=
defineModel
<
any
>
()
...
@@ -130,6 +148,9 @@ const initData = () => {
...
@@ -130,6 +148,9 @@ const initData = () => {
length
:
5
length
:
5
}
}
}
}
if
(
!
modelData
.
value
.
autoApprovalType
)
{
modelData
.
value
.
autoApprovalType
=
BpmAutoApproveType
.
NONE
}
}
}
defineExpose
({
initData
})
defineExpose
({
initData
})
</
script
>
</
script
>
src/views/bpm/model/form/index.vue
View file @
0f58e968
...
@@ -153,7 +153,8 @@ const formData: any = ref({
...
@@ -153,7 +153,8 @@ const formData: any = ref({
infix
:
''
,
infix
:
''
,
postfix
:
''
,
postfix
:
''
,
length
:
5
length
:
5
}
},
autoApprovalType
:
1
})
})
//流程数据
//流程数据
...
...
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