|
@@ -152,11 +152,12 @@ module.exports = app => {
|
|
? await this.ctx.service.reviseAudit.getAuditors(preRevise.id, preRevise.ledger_times)
|
|
? await this.ctx.service.reviseAudit.getAuditors(preRevise.id, preRevise.ledger_times)
|
|
: await this.ctx.service.ledgerAudit.getAuditors(this.ctx.tender.id, this.ctx.tender.data.ledger_times);
|
|
: await this.ctx.service.ledgerAudit.getAuditors(this.ctx.tender.id, this.ctx.tender.data.ledger_times);
|
|
for (const a of auditors) {
|
|
for (const a of auditors) {
|
|
|
|
+ if (newAuditors.find(x => { return x.audit_id === a.audit_id; })) continue;
|
|
newAuditors.push({
|
|
newAuditors.push({
|
|
tender_id: this.ctx.tender.id,
|
|
tender_id: this.ctx.tender.id,
|
|
rid: rid,
|
|
rid: rid,
|
|
in_time: inTime,
|
|
in_time: inTime,
|
|
- audit_order: a.audit_order,
|
|
|
|
|
|
+ audit_order: newAuditors.length + 1,
|
|
audit_id: a.audit_id,
|
|
audit_id: a.audit_id,
|
|
times: 1,
|
|
times: 1,
|
|
status: audit.status.uncheck,
|
|
status: audit.status.uncheck,
|