Browse Source

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

ellisran 6 months ago
parent
commit
1a60ce4902
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/service/material_audit.js

+ 1 - 1
app/service/material_audit.js

@@ -1172,7 +1172,7 @@ module.exports = app => {
                 const auditors = await this.getAuditGroupByList(materialId, times);
                 const now_audit = this._.find(auditors, { aid: data.old_aid });
                 if (data.operate !== 'del') {
-                    const exist = await this.getDataByCondition({ mid: materialId, times, aid: data.new_aid });
+                    const exist = await this.getDataByCondition({ mid: materialId, times, aid: data.new_aid, is_old: 0 });
                     if (exist) throw '该审核人已存在,请勿重复添加';
                 }
                 if (data.operate === 'add') {