|
@@ -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') {
|