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
81e81079
Commit
81e81079
authored
Jun 26, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码格式话修改
parent
419f7ac0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
53 deletions
+53
-53
index.vue
...kflow/task-center/myPlanTask/outStorageUseApply/index.vue
+53
-53
No files found.
applications/dee-task-center/src/views/workflow/task-center/myPlanTask/outStorageUseApply/index.vue
View file @
81e81079
...
@@ -159,63 +159,63 @@ export default {
...
@@ -159,63 +159,63 @@ export default {
this
.
dialogVisible
=
true
this
.
dialogVisible
=
true
},
},
confirm
()
{
confirm
()
{
let
isUrgentUse
=
0
let
isUrgentUse
=
0
this
.
selectionRows
.
forEach
(
item
=>
{
this
.
selectionRows
.
forEach
(
item
=>
{
if
(
item
.
typeName
!==
'UrgentUse'
)
{
if
(
item
.
typeName
!==
'UrgentUse'
)
{
isUrgentUse
++
isUrgentUse
++
}
}
})
})
if
(
isUrgentUse
===
0
)
{
if
(
isUrgentUse
===
0
)
{
// 紧急领用选人
// 紧急领用选人
this
.
dialogVisible
=
false
this
.
setPersonVisible
=
true
}
else
if
(
isUrgentUse
===
this
.
selectionRows
.
length
)
{
post
(
'/DxWorkflowTask/apply/batchPass?applyIds='
+
this
.
selectionRows
.
map
(
item
=>
({
'taskId'
:
item
.
processTaskId
,
'pboId'
:
item
.
id
}))).
then
(
res
=>
{
this
.
$utils
.
showMessageSuccess
(
'提交成功'
)
this
.
$refs
.
applyTable
.
$refs
.
asCom
.
getData
()
}).
catch
(()
=>
{
this
.
$utils
.
showMessageWarning
(
'出现异常,提交失败'
)
}).
finally
(()
=>
{
this
.
dialogVisible
=
false
this
.
dialogVisible
=
false
this
.
setPersonVisible
=
true
})
}
else
if
(
isUrgentUse
===
this
.
selectionRows
.
length
)
{
}
else
{
post
(
'/DxWorkflowTask/apply/batchPass?applyIds='
+
this
.
selectionRows
.
map
(
item
=>
({
'taskId'
:
item
.
processTaskId
,
'pboId'
:
item
.
id
}))).
then
(
res
=>
{
this
.
dialogVisible
=
false
this
.
$utils
.
showMessageSuccess
(
'提交成功'
)
this
.
$utils
.
showMessageWarning
(
'紧急领用不能和其他领用类型一起提交'
)
}
},
cancle
()
{
this
.
dialogVisible
=
false
},
setPersonConfirm
()
{
const
ids
=
[]
if
(
this
.
selectionRows
&&
this
.
selectionRows
.
length
)
{
this
.
selectionRows
.
forEach
(
item
=>
ids
.
push
(
item
.
id
))
}
if
(
this
.
form
.
userIds
&&
this
.
form
.
userIds
.
length
!==
0
)
{
post
(
'/OutStorageRequest/creator/batchApply?userIds='
+
this
.
form
.
userIds
,
ids
).
then
(
res
=>
{
this
.
$utils
.
showMessageSuccess
(
'提交成功'
)
setTimeout
(()
=>
{
this
.
$refs
.
applyTable
.
$refs
.
asCom
.
getData
()
this
.
$refs
.
applyTable
.
$refs
.
asCom
.
getData
()
}).
catch
(()
=>
{
},
1500
)
this
.
$utils
.
showMessageWarning
(
'出现异常,提交失败'
)
}).
catch
(
err
=>
{
}).
finally
(()
=>
{
this
.
$utils
.
showMessageWarning
(
'出现异常,提交失败'
)
this
.
dialogVisible
=
false
console
.
log
(
err
)
})
}).
finally
(()
=>
{
}
else
{
this
.
dialogVisible
=
false
this
.
dialogVisible
=
false
this
.
$utils
.
showMessageWarning
(
'紧急领用不能和其他领用类型一起提交'
)
this
.
setPersonVisible
=
false
}
this
.
$set
(
this
.
form
,
'userIds'
,
''
)
},
})
cancle
()
{
}
else
{
this
.
dialogVisible
=
false
this
.
$utils
.
showMessageWarning
(
'请选择审批领导'
)
},
setPersonConfirm
()
{
const
ids
=
[]
if
(
this
.
selectionRows
&&
this
.
selectionRows
.
length
)
{
this
.
selectionRows
.
forEach
(
item
=>
ids
.
push
(
item
.
id
))
}
if
(
this
.
form
.
userIds
&&
this
.
form
.
userIds
.
length
!==
0
)
{
post
(
'/OutStorageRequest/creator/batchApply?userIds='
+
this
.
form
.
userIds
,
ids
).
then
(
res
=>
{
this
.
$utils
.
showMessageSuccess
(
'提交成功'
)
setTimeout
(()
=>
{
this
.
$refs
.
applyTable
.
$refs
.
asCom
.
getData
()
},
1500
)
}).
catch
(
err
=>
{
this
.
$utils
.
showMessageWarning
(
'出现异常,提交失败'
)
console
.
log
(
err
)
}).
finally
(()
=>
{
this
.
dialogVisible
=
false
this
.
setPersonVisible
=
false
this
.
$set
(
this
.
form
,
'userIds'
,
''
)
})
}
else
{
this
.
$utils
.
showMessageWarning
(
'请选择审批领导'
)
}
},
setPersonCancle
()
{
this
.
setPersonVisible
=
false
this
.
$set
(
this
.
form
,
'userIds'
,
''
)
},
selectionChange
(
val
)
{
this
.
selectionRows
=
val
}
}
},
setPersonCancle
()
{
this
.
setPersonVisible
=
false
this
.
$set
(
this
.
form
,
'userIds'
,
''
)
},
selectionChange
(
val
)
{
this
.
selectionRows
=
val
}
}
}
}
}
</
script
>
</
script
>
...
...
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