Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rbc-demo
Overview
Overview
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
王衍超
rbc-demo
Commits
4142bc85
Commit
4142bc85
authored
Mar 02, 2022
by
袁成
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
校验taskId
parent
1f63baee
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
+9
-1
agreeAction.js
...lop/@gms/gms-plugin-billexpand/src/actions/agreeAction.js
+5
-1
rejectAction.js
...op/@gms/gms-plugin-billexpand/src/actions/rejectAction.js
+4
-0
No files found.
develop/@gms/gms-plugin-billexpand/src/actions/agreeAction.js
View file @
4142bc85
...
...
@@ -3,8 +3,12 @@ import SelectApprovers from '../components-control/select-approvers.vue'
export
default
{
execute
:
function
(
bill
,
param
)
{
if
(
bill
)
{
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
false
)
if
(
!
bill
.
getGlobalParam
(
'reviewParam'
)
||
!
bill
.
getGlobalParam
(
'reviewParam'
).
taskId
)
{
GMS
.
$hideContainer
.
$Message
.
error
(
'请配置审批轨迹'
)
return
}
let
taskId
=
bill
.
getGlobalParam
(
'reviewParam'
).
taskId
;
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
false
)
let
selectedApprovers
=
[]
window
.
GMS
.
$http
.
get
(
`/bpm/bill/selectApprover/ApproverList/
${
taskId
}
`
).
then
((
res
)
=>
{
if
(
res
.
data
.
code
==
204
)
{
...
...
develop/@gms/gms-plugin-billexpand/src/actions/rejectAction.js
View file @
4142bc85
...
...
@@ -31,6 +31,10 @@ export default {
}
},
approval
:
function
(
bill
,
param
){
if
(
!
bill
.
getGlobalParam
(
'reviewParam'
)
||
!
bill
.
getGlobalParam
(
'reviewParam'
).
taskId
)
{
GMS
.
$hideContainer
.
$Message
.
error
(
'请配置审批轨迹'
)
return
}
let
taskId
=
bill
.
getGlobalParam
(
'reviewParam'
).
taskId
;
let
comments
=
bill
.
getGlobalParam
(
'reviewParam'
).
suggestions
?
bill
.
getGlobalParam
(
'reviewParam'
).
suggestions
:
""
;
GMS
.
$http
.
post
(
'/gms/workflow/task/completed/'
+
taskId
+
'?result=3&comments='
+
comments
).
then
(
...
...
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