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
5ef5ee6e
authored
Oct 13, 2024
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【功能修复】工作流:业务表单 + 字段可编辑场景,审批、不审批点击没效果
parent
2aefcd90
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
src/views/bpm/processInstance/detail/index.vue
+9
-5
No files found.
src/views/bpm/processInstance/detail/index.vue
View file @
5ef5ee6e
...
...
@@ -250,10 +250,12 @@ const handleAudit = async (task, pass) => {
if
(
!
elForm
)
return
let
valid
=
await
elForm
.
validate
()
if
(
!
valid
)
return
// 校验申请表单
if
(
!
fApi
.
value
)
return
valid
=
await
fApi
.
value
.
validate
()
if
(
!
valid
)
return
// 校验申请表单(可编辑字段)
// TODO @jason:之前这里是 if (!fApi.value) return;针对业务表单的情况下,会导致没办法审核,可能要看下。我这里改了点,看看是不是还有别的地方兼容性
if
(
fApi
.
value
)
{
valid
=
await
fApi
.
value
.
validate
()
if
(
!
valid
)
return
}
// 2.1 提交审批
const
data
=
{
...
...
@@ -269,7 +271,9 @@ const handleAudit = async (task, pass) => {
data
.
variables
=
approveForms
.
value
[
index
].
value
}
// 获取表单可编辑字段的值
data
.
variables
=
getWritableValueOfForm
(
task
.
fieldsPermission
)
if
(
fApi
.
value
)
{
data
.
variables
=
getWritableValueOfForm
(
task
.
fieldsPermission
)
}
await
TaskApi
.
approveTask
(
data
)
message
.
success
(
'审批通过成功'
)
...
...
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