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
e63c7ea1
Commit
e63c7ea1
authored
Mar 11, 2022
by
袁成
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:同意驳回
parent
e6ece811
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
agreeAction.js
...lop/@gms/gms-plugin-billexpand/src/actions/agreeAction.js
+8
-8
rejectAction.js
...op/@gms/gms-plugin-billexpand/src/actions/rejectAction.js
+5
-5
No files found.
develop/@gms/gms-plugin-billexpand/src/actions/agreeAction.js
View file @
e63c7ea1
...
...
@@ -26,7 +26,7 @@ export default {
GMS
.
$hideContainer
.
$Message
.
error
(
'缺少参数'
);
}
},
saveLogical
:
(
bill
,
param
,
postData
,
_this
)
=>
{
saveLogical
:
function
(
bill
,
param
,
postData
)
{
let
url
=
`/rbc/bill/action/executed/
${
param
.
define
}
/bill.Basic.save?transmission=total`
GMS
.
$http
.
post
(
url
,
JSON
.
stringify
(
postData
),
{
headers
:
{
...
...
@@ -37,7 +37,7 @@ export default {
})
.
then
((
response
)
=>
{
if
(
response
.
data
.
code
==
0
)
{
_this
.
approvalLogical
(
bill
,
param
,
_this
)
this
.
approvalLogical
(
bill
,
param
)
}
else
{
response
.
data
.
message
&&
GMS
.
vbus
.
$Message
.
error
({
content
:
response
.
data
.
message
,
...
...
@@ -46,13 +46,13 @@ export default {
}
})
},
approvalLogical
:
(
bill
,
param
,
_this
)
=>
{
approvalLogical
:
function
(
bill
,
param
)
{
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
)
{
_this
.
executeApproval
(
bill
,
param
,
_this
)
this
.
executeApproval
(
bill
,
param
)
return
}
else
if
(
res
.
data
.
code
!=
200
)
{
...
...
@@ -92,7 +92,7 @@ export default {
approvers
:
selectedApprovers
,
}
).
then
(()
=>
{
_
this
.
executeApproval
(
bill
,
param
)
this
.
executeApproval
(
bill
,
param
)
}).
catch
(()
=>
{
GMS
.
$hideContainer
.
$Message
.
error
(
'选择审批人发生错误'
)
})
...
...
@@ -104,7 +104,7 @@ export default {
GMS
.
$hideContainer
.
$Message
.
error
(
'未找到下一节点的审批人'
);
})
},
executeApproval
:
function
(
bill
,
param
,
_this
)
{
executeApproval
:
function
(
bill
,
param
)
{
if
(
param
.
param
.
actions
)
{
let
saveParam
=
{
actions
:
param
.
param
.
actions
,
...
...
@@ -117,7 +117,7 @@ export default {
}
bill
.
executeServerAction
(
saveParam
,
function
(
code
,
data
)
{
if
(
code
===
200
)
{
_
this
.
approval
(
bill
,
param
);
this
.
approval
(
bill
,
param
);
// bill.setControlsSate(param["_control_name_"], "loading", false)
}
else
{
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
true
)
...
...
@@ -126,7 +126,7 @@ export default {
}
}.
bind
(
this
));
}
else
{
_
this
.
approval
(
bill
,
param
);
this
.
approval
(
bill
,
param
);
}
},
approval
:
function
(
bill
,
param
)
{
...
...
develop/@gms/gms-plugin-billexpand/src/actions/rejectAction.js
View file @
e63c7ea1
...
...
@@ -20,7 +20,7 @@ export default {
GMS
.
$hideContainer
.
$Message
.
error
(
'缺少参数'
);
}
},
approvalLogical
:
(
bill
,
param
,
_this
)
=>
{
approvalLogical
:
function
(
bill
,
param
)
{
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
false
)
if
(
param
.
param
.
actions
){
let
saveParam
=
{
...
...
@@ -28,17 +28,17 @@ export default {
}
bill
.
executeServerAction
(
saveParam
,
function
(
code
,
data
){
if
(
code
===
200
){
_
this
.
approval
(
bill
,
param
);
this
.
approval
(
bill
,
param
);
}
else
{
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
true
)
GMS
.
$hideContainer
.
$message
.
error
(
"操作异常请联系管理员"
);
}
}.
bind
(
this
));
}
else
{
_
this
.
approval
(
bill
,
param
);
this
.
approval
(
bill
,
param
);
}
},
saveLogical
:
(
bill
,
param
,
postData
,
_this
)
=>
{
saveLogical
:
function
(
bill
,
param
,
postData
)
{
let
url
=
`/rbc/bill/action/executed/
${
param
.
define
}
/bill.Basic.save?transmission=total`
GMS
.
$http
.
post
(
url
,
JSON
.
stringify
(
postData
),
{
headers
:
{
...
...
@@ -49,7 +49,7 @@ export default {
})
.
then
((
response
)
=>
{
if
(
response
.
data
.
code
==
0
)
{
_this
.
approvalLogical
(
bill
,
param
,
_this
)
this
.
approvalLogical
(
bill
,
param
)
}
else
{
response
.
data
.
message
&&
GMS
.
vbus
.
$Message
.
error
({
content
:
response
.
data
.
message
,
...
...
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