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
84a2de49
Commit
84a2de49
authored
Mar 25, 2022
by
Joey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(@gms/gms-plugin-billexpand): 同意按钮先调后端校验,后走选择审批人逻辑
parent
eb909d88
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
agreeAction.js
...lop/@gms/gms-plugin-billexpand/src/actions/agreeAction.js
+6
-5
No files found.
develop/@gms/gms-plugin-billexpand/src/actions/agreeAction.js
View file @
84a2de49
...
@@ -84,6 +84,7 @@ export default {
...
@@ -84,6 +84,7 @@ export default {
})
})
},
},
approvalLogical
:
function
(
bill
,
param
)
{
approvalLogical
:
function
(
bill
,
param
)
{
const
getApprovalList
=
()
=>
{
let
taskId
=
bill
.
getGlobalParam
(
'reviewParam'
).
taskId
;
let
taskId
=
bill
.
getGlobalParam
(
'reviewParam'
).
taskId
;
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
false
)
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
false
)
let
selectedApprovers
=
[]
let
selectedApprovers
=
[]
...
@@ -140,15 +141,15 @@ export default {
...
@@ -140,15 +141,15 @@ export default {
}).
catch
(()
=>
{
}).
catch
(()
=>
{
GMS
.
$hideContainer
.
$Message
.
error
(
'未找到下一节点的审批人'
);
GMS
.
$hideContainer
.
$Message
.
error
(
'未找到下一节点的审批人'
);
})
})
},
}
executeApproval
:
function
(
bill
,
param
)
{
if
(
param
.
param
.
actions
)
{
if
(
param
.
param
.
actions
)
{
let
saveParam
=
{
let
saveParam
=
{
actions
:
param
.
param
.
actions
actions
:
param
.
param
.
actions
}
}
bill
.
executeServerAction
(
saveParam
,
function
(
code
,
data
)
{
bill
.
executeServerAction
(
saveParam
,
function
(
code
,
data
)
{
if
(
code
===
200
)
{
if
(
code
===
200
)
{
this
.
approval
(
bill
,
param
);
getApprovalList
()
}
else
{
}
else
{
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
true
)
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
true
)
if
(
data
.
message
.
includes
(
'还款金额不能大于未还金额'
))
{
if
(
data
.
message
.
includes
(
'还款金额不能大于未还金额'
))
{
...
@@ -160,10 +161,10 @@ export default {
...
@@ -160,10 +161,10 @@ export default {
}
}
}.
bind
(
this
));
}.
bind
(
this
));
}
else
{
}
else
{
this
.
approval
(
bill
,
param
);
getApprovalList
()
}
}
},
},
approval
:
function
(
bill
,
param
)
{
executeApproval
:
function
(
bill
,
param
)
{
let
taskId
=
bill
.
getGlobalParam
(
'reviewParam'
).
taskId
;
let
taskId
=
bill
.
getGlobalParam
(
'reviewParam'
).
taskId
;
let
comments
=
bill
.
getGlobalParam
(
'reviewParam'
).
suggestions
?
bill
.
getGlobalParam
(
'reviewParam'
).
suggestions
:
""
;
let
comments
=
bill
.
getGlobalParam
(
'reviewParam'
).
suggestions
?
bill
.
getGlobalParam
(
'reviewParam'
).
suggestions
:
""
;
GMS
.
$http
.
post
(
'/rbc/workflow/approve/completed/'
+
taskId
+
'?result=1&comments='
+
comments
).
then
(
GMS
.
$http
.
post
(
'/rbc/workflow/approve/completed/'
+
taskId
+
'?result=1&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