|
@@ -1005,7 +1005,8 @@ module.exports = app => {
|
|
|
// 判断条件修订可上报条件
|
|
|
// 1.有原报,不管有无其他人 可以添加原报作为审核人,但是不能只原报上报
|
|
|
// 2.无原报,有其他人 不可以添加原报
|
|
|
- const noYBUidList = ctx.change.status === audit.flow.status.revise ? ctx.helper._.initial(ctx.helper._.tail(lastUidList)) : ctx.helper._.tail(lastUidList);
|
|
|
+ // const noYBUidList = ctx.change.status === audit.flow.status.revise ? ctx.helper._.initial(ctx.helper._.tail(lastUidList)) : ctx.helper._.tail(lastUidList);
|
|
|
+ const noYBUidList = ctx.helper._.tail(lastUidList);
|
|
|
// if (!ctx.helper._.isEqual(lastUidList, nowUidList) && ctx.helper._.includes(noYBUidList, lastUidList[0]) && nowUidList.length === 2 && nowUidList[0] === nowUidList[1]) {
|
|
|
if (nowUidList.length === 2 && nowUidList[0] === nowUidList[1]) {
|
|
|
throw '该变更令不能指定原报人为单独审批人';
|