瀏覽代碼

修复变更修订重新上报bug

ellisran 1 年之前
父節點
當前提交
3752c3b30e
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/controller/change_controller.js

+ 2 - 1
app/controller/change_controller.js

@@ -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 '该变更令不能指定原报人为单独审批人';