Browse Source

Merge branch 'dev' of http://192.168.1.41:3000/maixinrong/Calculation into dev

MaiXinRong 7 months ago
parent
commit
1ac2885cb1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/service/material_audit.js

+ 1 - 1
app/service/material_audit.js

@@ -1255,7 +1255,7 @@ module.exports = app => {
                 }
                 if (this.ctx.tender.info.shenpi.material === shenpiConst.sp_status.gdspl) {
                     const newAuditors = await transaction.select(this.tableName, { where: { mid: materialId, times } });
-                    const newAuditorGroup = this.ctx.helper.groupAuditors(newAuditors);
+                    const newAuditorGroup = this.ctx.helper.groupAuditors(newAuditors.filter(x => { return x.is_old === 0; }));
                     const uniqNewAuditorGroup = this.ctx.helper.groupAuditorsUniq(newAuditorGroup);
                     await this.ctx.service.shenpiAudit.updateAuditListWithAuditType(transaction, this.ctx.tender.id, this.ctx.tender.info.shenpi.material, shenpiConst.sp_type.material, uniqNewAuditorGroup, sp_group);
                 } else if (this.ctx.tender.info.shenpi.material === shenpiConst.sp_status.gdzs) {