Commit a769d436 by 袁成

fix同意驳回

parent f26f1564
......@@ -191,10 +191,23 @@ export default {
}.bind(this)
);
},
isApproverEqulloginer:async function (bill, param) {
isApproverEqulloginer: function (bill, param) {
const loginer = GMS.userContext && GMS.userContext.id
const res = await GMS.$http.get(`/rbc/workflow/confirmApprover/getUserId/${bill.getGlobalParam('reviewParam').taskId}`)
const approver = res.data.ownerIds[0]
return loginer === approver
let approver = []
$.ajax({
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
......@@ -106,8 +106,21 @@ export default {
},
isApproverEqulloginer:async function (bill, param) {
const loginer = GMS.userContext && GMS.userContext.id
const res = await GMS.$http.get(`/rbc/workflow/confirmApprover/getUserId/${bill.getGlobalParam('reviewParam').taskId}`)
const approver = res.data.ownerIds[0]
return loginer === approver
let approver = []
$.ajax({
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment