Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TF-MOM-WEB
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TFMOM
TF-MOM-WEB
Commits
1cccad9e
Commit
1cccad9e
authored
Jul 09, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合并产品【12542】单个签审任务处理选中驳回后完成任务会触发审批对象里的表单校验,实际不需要<2>
parent
59353bf0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
13 deletions
+31
-13
task-detail.vue
...ask-center/src/business-components/tabCom/task-detail.vue
+31
-13
No files found.
applications/dee-task-center/src/business-components/tabCom/task-detail.vue
View file @
1cccad9e
...
...
@@ -766,6 +766,7 @@ export default {
},
// 路由切换
routeSelect
(
val
)
{
this
.
clearApprovalFormValidateStatus
()
this
.
getBizForm
(
val
)
},
// 获取业务表单
...
...
@@ -779,7 +780,8 @@ export default {
finishTask
(
flag
,
params
,
callback
,
errCallBack
)
{
this
.
$nextTick
(
function
()
{
const
validateArray
=
[]
// 审批对象表单
// 审批对象表单,路由选择驳回的情况下不校验审批对象表单
if
(
params
.
routerSelect
!==
'reject'
)
{
this
.
approvalObject
.
forEach
(
item
=>
{
const
refCom
=
this
.
$refs
[
item
.
refKey
]
if
(
!
refCom
||
!
refCom
[
0
])
return
...
...
@@ -792,6 +794,7 @@ export default {
validateArray
.
push
(
vm
.
$refs
.
asCom
.
$refs
.
deeForm
.
validate
())
}
})
}
// 任务处理
this
.
dynamicComponents
.
forEach
(
item
=>
{
if
(
this
.
$refs
.
hasOwnProperty
(
item
.
configName
))
{
...
...
@@ -868,6 +871,21 @@ export default {
})
}
})
},
// 清理审批表单校验状态
clearApprovalFormValidateStatus
()
{
this
.
approvalObject
.
forEach
(
item
=>
{
const
refCom
=
this
.
$refs
[
item
.
refKey
]
if
(
!
refCom
||
!
refCom
[
0
])
return
const
vm
=
refCom
[
0
]
if
(
vm
.
hasOwnProperty
(
'clearValidate'
))
{
vm
.
clearValidate
()
}
else
if
(
vm
.
$refs
.
asCom
&&
vm
.
$refs
.
asCom
.
hasOwnProperty
(
'clearValidate'
))
{
vm
.
$refs
.
asCom
.
clearValidate
()
}
else
if
(
vm
.
$refs
.
asCom
&&
vm
.
$refs
.
asCom
.
$refs
&&
vm
.
$refs
.
asCom
.
$refs
.
deeForm
&&
vm
.
$refs
.
asCom
.
$refs
.
deeForm
.
hasOwnProperty
(
'clearValidate'
))
{
vm
.
$refs
.
asCom
.
$refs
.
deeForm
.
clearValidate
()
}
})
}
},
filter
:
{}
...
...
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