|
@@ -335,16 +335,19 @@ module.exports = app => {
|
|
|
await this.ctx.service.stage.checkStageGatherData(lastStage);
|
|
|
}
|
|
|
const stage = lastStage;
|
|
|
+ await ctx.service.stage.loadStageAuditViewData(stage);
|
|
|
const renderData = {
|
|
|
+ moment,
|
|
|
tender,
|
|
|
stage,
|
|
|
auditConst: auditConst.stage,
|
|
|
+ auditType,
|
|
|
};
|
|
|
- const times = renderData.stage.status === auditConst.stage.status.checkNo ? renderData.stage.times - 1 : renderData.stage.times;
|
|
|
- renderData.stage.user = await ctx.service.projectAccount.getAccountInfoById(renderData.stage.user_id);
|
|
|
- renderData.stage.auditors = await ctx.service.stageAudit.getAuditors(renderData.stage.id, times);
|
|
|
- // 获取审批流程中左边列表
|
|
|
- renderData.stage.auditors2 = await ctx.service.stageAudit.getAuditGroupByList(renderData.stage.id, times);
|
|
|
+ // const times = renderData.stage.status === auditConst.stage.status.checkNo ? renderData.stage.times - 1 : renderData.stage.times;
|
|
|
+ // renderData.stage.user = await ctx.service.projectAccount.getAccountInfoById(renderData.stage.user_id);
|
|
|
+ // renderData.stage.auditors = await ctx.service.stageAudit.getAuditors(renderData.stage.id, times);
|
|
|
+ // // 获取审批流程中左边列表
|
|
|
+ // renderData.stage.auditors2 = await ctx.service.stageAudit.getAuditGroupByList(renderData.stage.id, times);
|
|
|
renderData.stage.lastAuditors = await ctx.service.stageAudit.getAuditorsByStatus(stage.id, stage.status, stage.times);
|
|
|
await ctx.render('wap/shenpi_stage.ejs', renderData);
|
|
|
} catch (err) {
|