Explorar o código

修复调差管理员修改流程bug

ellisran hai 8 meses
pai
achega
396fb662b7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/controller/material_controller.js

+ 1 - 1
app/controller/material_controller.js

@@ -1230,7 +1230,7 @@ module.exports = app => {
 
                 ctx.material.auditorList = await ctx.service.materialAudit.getAuditors(ctx.material.id, ctx.material.times);
                 // 检查审核人是否已存在
-                const exist = this.app._.find(ctx.material.auditorList, { aid: id });
+                const exist = this.app._.find(ctx.material.auditorList, { aid: id, is_old: 0 });
                 if (exist) {
                     throw '该审核人已存在,请勿重复添加';
                 }