|
|
@@ -830,9 +830,10 @@ module.exports = app => {
|
|
|
if (!ctx.helper._.isEqual(lastUidList, nowUidList) && ctx.helper._.includes(noYBUidList, lastUidList[0]) && nowUidList.length === 2 && nowUidList[0] === nowUidList[1]) {
|
|
|
throw '该变更令不能指定原报人为单独审批人';
|
|
|
}
|
|
|
- if (!ctx.helper._.includes(noYBUidList, lastUidList[0]) && ctx.helper._.includes(ctx.helper._.tail(nowUidList), nowUidList[0])) {
|
|
|
+ if (!ctx.helper._.isEqual(lastUidList, nowUidList) && !ctx.helper._.includes(noYBUidList, lastUidList[0]) && ctx.helper._.includes(ctx.helper._.tail(nowUidList), nowUidList[0])) {
|
|
|
throw '该变更令不能指定原报为审批人,请移除';
|
|
|
}
|
|
|
+ throw 'hello';
|
|
|
}
|
|
|
await ctx.service.changeAudit.start(ctx.change.cid, ctx.change.times);
|
|
|
ctx.redirect(ctx.request.header.referer);
|