|
@@ -315,14 +315,15 @@ module.exports = app => {
|
|
|
tpUnit: ctx.tender.info.decimal.tp,
|
|
|
monthProgress,
|
|
|
stagesEcharts: JSON.parse(JSON.stringify(stages)).reverse(),
|
|
|
+ auditType: auditConst.auditType,
|
|
|
};
|
|
|
if (stages.length > 0) {
|
|
|
for (const s of stages) {
|
|
|
// s.curAuditor = null;
|
|
|
// 根据期状态返回展示用户
|
|
|
- s.curAuditor = await ctx.service.stageAudit.getAuditorByStatus(s.id, s.status, s.times);
|
|
|
+ s.curAuditors = await ctx.service.stageAudit.getAuditorsByStatus(s.id, s.status, s.times);
|
|
|
if (s.status === auditConst.stage.status.checkNoPre) {
|
|
|
- s.curAuditor2 = await ctx.service.stageAudit.getAuditorByStatus(s.id, auditConst.stage.status.checking);
|
|
|
+ s.curAuditors2 = await ctx.service.stageAudit.getAuditorsByStatus(s.id, auditConst.stage.status.checking);
|
|
|
}
|
|
|
}
|
|
|
renderData.stage = stages[0];
|