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
a769d436
Commit
a769d436
authored
Mar 15, 2022
by
袁成
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix同意驳回
parent
f26f1564
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
7 deletions
+35
-7
agreeAction.js
...lop/@gms/gms-plugin-billexpand/src/actions/agreeAction.js
+18
-4
rejectAction.js
...op/@gms/gms-plugin-billexpand/src/actions/rejectAction.js
+17
-3
No files found.
develop/@gms/gms-plugin-billexpand/src/actions/agreeAction.js
View file @
a769d436
...
@@ -191,10 +191,23 @@ export default {
...
@@ -191,10 +191,23 @@ export default {
}.
bind
(
this
)
}.
bind
(
this
)
);
);
},
},
isApproverEqulloginer
:
async
function
(
bill
,
param
)
{
isApproverEqulloginer
:
function
(
bill
,
param
)
{
const
loginer
=
GMS
.
userContext
&&
GMS
.
userContext
.
id
const
loginer
=
GMS
.
userContext
&&
GMS
.
userContext
.
id
const
res
=
await
GMS
.
$http
.
get
(
`/rbc/workflow/confirmApprover/getUserId/
${
bill
.
getGlobalParam
(
'reviewParam'
).
taskId
}
`
)
let
approver
=
[]
const
approver
=
res
.
data
.
ownerIds
[
0
]
$
.
ajax
({
return
loginer
===
approver
type
:
"GET"
,
url
:
`
${
osConfig
.
baseUrl
}
/rbc/workflow/confirmApprover/getUserId/
${
bill
.
getGlobalParam
(
'reviewParam'
).
taskId
}
`
,
async
:
false
,
contentType
:
"application/json;"
,
beforeSend
:
function
(
request
)
{
request
.
setRequestHeader
(
"Authorization"
,
GMS
.
util
.
getAuthorization
());
},
success
:
function
(
data1
)
{
approver
=
data1
.
ownerIds
},
error
:
function
()
{
}
})
return
approver
.
includes
(
loginer
)
}
}
}
}
\ No newline at end of file
develop/@gms/gms-plugin-billexpand/src/actions/rejectAction.js
View file @
a769d436
...
@@ -106,8 +106,21 @@ export default {
...
@@ -106,8 +106,21 @@ export default {
},
},
isApproverEqulloginer
:
async
function
(
bill
,
param
)
{
isApproverEqulloginer
:
async
function
(
bill
,
param
)
{
const
loginer
=
GMS
.
userContext
&&
GMS
.
userContext
.
id
const
loginer
=
GMS
.
userContext
&&
GMS
.
userContext
.
id
const
res
=
await
GMS
.
$http
.
get
(
`/rbc/workflow/confirmApprover/getUserId/
${
bill
.
getGlobalParam
(
'reviewParam'
).
taskId
}
`
)
let
approver
=
[]
const
approver
=
res
.
data
.
ownerIds
[
0
]
$
.
ajax
({
return
loginer
===
approver
type
:
"GET"
,
url
:
`
${
osConfig
.
baseUrl
}
/rbc/workflow/confirmApprover/getUserId/
${
bill
.
getGlobalParam
(
'reviewParam'
).
taskId
}
`
,
async
:
false
,
contentType
:
"application/json;"
,
beforeSend
:
function
(
request
)
{
request
.
setRequestHeader
(
"Authorization"
,
GMS
.
util
.
getAuthorization
());
},
success
:
function
(
data1
)
{
approver
=
data1
.
ownerIds
},
error
:
function
()
{
}
})
return
approver
.
includes
(
loginer
)
}
}
}
}
\ No newline at end of file
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