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
0c7043e1
Commit
0c7043e1
authored
Mar 14, 2022
by
Joey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(@gms/gms-plugin-billexpand): 提交、同意、驳回换接口
parent
9cba7d81
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
8 deletions
+26
-8
agreeAction.js
...lop/@gms/gms-plugin-billexpand/src/actions/agreeAction.js
+5
-1
rejectAction.js
...op/@gms/gms-plugin-billexpand/src/actions/rejectAction.js
+5
-1
submitAction.js
...op/@gms/gms-plugin-billexpand/src/actions/submitAction.js
+12
-6
errorMessageUtil.js
...ms-plugin-billexpand/src/actions/util/errorMessageUtil.js
+4
-0
No files found.
develop/@gms/gms-plugin-billexpand/src/actions/agreeAction.js
View file @
0c7043e1
...
...
@@ -152,9 +152,13 @@ export default {
approval
:
function
(
bill
,
param
)
{
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=1&comments='
+
comments
).
then
(
GMS
.
$http
.
post
(
'/
rbc/workflow/approve
/completed/'
+
taskId
+
'?result=1&comments='
+
comments
).
then
(
function
(
response
)
{
if
(
response
.
status
==
200
||
response
.
statusText
==
'OK'
)
{
if
(
response
.
data
.
code
!=
0
)
{
GMS
.
$hideContainer
.
$Message
.
error
(
response
.
data
.
message
)
return
}
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
true
)
// console.log('审批成功');
...
...
develop/@gms/gms-plugin-billexpand/src/actions/rejectAction.js
View file @
0c7043e1
...
...
@@ -68,9 +68,13 @@ export default {
}
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
(
GMS
.
$http
.
post
(
'/
rbc/workflow/approve
/completed/'
+
taskId
+
'?result=3&comments='
+
comments
).
then
(
function
(
response
)
{
if
(
response
.
status
==
200
||
response
.
statusText
==
'OK'
)
{
if
(
response
.
data
.
code
!=
0
)
{
GMS
.
$hideContainer
.
$Message
.
error
(
response
.
data
.
message
)
return
}
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
true
)
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"loading"
,
false
)
GMS
.
vbus
.
$emit
(
'change-form-state'
,
{
state
:
'readOnly'
})
...
...
develop/@gms/gms-plugin-billexpand/src/actions/submitAction.js
View file @
0c7043e1
...
...
@@ -69,13 +69,19 @@ export default {
});
},
submitExecute
(
bill
,
param
){
let
postData
=
{
updatebillState
:
"2"
,
actions
:
"workflow.submitToFlow"
}
if
(
bill
)
{
bill
.
setControlsSate
(
param
[
"_control_name_"
],
'enable'
,
false
)
bill
.
executeServerAction
(
postData
,
function
(
code
,
data
)
{
let
postData
=
{
data
:
bill
.
getBuillData
(),
};
let
url
=
`/rbc/bill/workflowAction/executed/
${
param
.
define
}
/workflow.submitToFlow?transmission=total`
;
window
.
GMS
.
$http
.
post
(
url
,
JSON
.
stringify
(
postData
)).
then
((
response
)
=>
{
const
data
=
response
.
data
let
code
=
200
if
(
data
.
code
!=
0
)
{
code
=
201
}
bill
.
setControlsSate
(
param
[
"_control_name_"
],
'enable'
,
true
)
if
(
code
===
200
)
{
const
id
=
data
.
content
.
billData
.
id
;
...
...
@@ -92,7 +98,7 @@ export default {
GMS
.
$hideContainer
.
$Spin
.
hide
();
GMS
.
$hideContainer
.
$Message
.
error
(
"暂存单据异常请联系管理员"
);
}
}
.
bind
(
this
));
}
)
}
else
{
GMS
.
$hideContainer
.
$Spin
.
hide
();
alert
(
'缺少参数'
);
...
...
develop/@gms/gms-plugin-billexpand/src/actions/util/errorMessageUtil.js
View file @
0c7043e1
...
...
@@ -83,6 +83,10 @@ export default {
{
preMessage
:
"No participant founds for user task"
,
convertMessage
:
"提交失败,没有找到下一步审批人"
,
},
{
preMessage
:
"单据已提交,不能再次提交"
,
convertMessage
:
"单据已提交,不能再次提交"
,
}
],
getErrorMessage
(
a
)
{
...
...
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