|
@@ -89,7 +89,7 @@ module.exports = app => {
|
|
|
name: stage.user.name, role: stage.user.role, company: stage.user.company
|
|
|
}]);
|
|
|
stage.finalAuditorIds = stage.userGroups[stage.userGroups.length - 1].map(x => { return x.aid; });
|
|
|
- stage.relaAuditor = stage.auditors.find(x => { return x.aid === accountId });
|
|
|
+ stage.relaAuditor = this._.findLast(stage.auditors, x => { return x.aid === accountId });
|
|
|
|
|
|
stage.assists = await this.service.stageAuditAss.getData(stage); // 全部协同人
|
|
|
stage.assists = stage.assists.filter(x => {
|