|
|
@@ -358,7 +358,7 @@ module.exports = app => {
|
|
|
phasePay.curAuditors = phasePay.auditors.filter(x => { return x.audit_status === audit.status.checking; });
|
|
|
phasePay.curAuditorIds = phasePay.curAuditors.map(x => { return x.audit_id; });
|
|
|
phasePay.flowAuditors = phasePay.curAuditors.length === 0 ? [] : phasePay.auditors.filter(x => { return x.active_order === phasePay.curAuditors[0].active_order; });
|
|
|
- phasePay.flowAuditorIds = phasePay.curAuditors.map(x => { return x.audit_id; });
|
|
|
+ phasePay.flowAuditorIds = phasePay.flowAuditors.map(x => { return x.audit_id; });
|
|
|
phasePay.nextAuditors = phasePay.curAuditors.length > 0 ? phasePay.auditors.filter(x => { return x.active_order === phasePay.curAuditors[0].active_order + 1; }) : [];
|
|
|
phasePay.nextAuditorIds = this._.map(phasePay.nextAuditors, 'audit_id');
|
|
|
phasePay.auditorGroups = this.ctx.helper.groupAuditors(phasePay.auditors, 'active_order');
|