|
@@ -49,6 +49,15 @@ module.exports = app => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ async _chkIfStageAuditor(ctx, stage) {
|
|
|
+ //
|
|
|
+ }
|
|
|
+
|
|
|
+ async _filterStageList(ctx, stageList) {
|
|
|
+ //
|
|
|
+ // throw
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 报表显示页面
|
|
|
*
|
|
@@ -61,8 +70,23 @@ module.exports = app => {
|
|
|
const pageShow = ctx.session.sessionProject.page_show;
|
|
|
const tender = ctx.tender;
|
|
|
const stage = ctx.stage;
|
|
|
- // console.log(tender.data);
|
|
|
- // console.log(tender.info);
|
|
|
+ // console.log('this.ctx.session.sessionUser.accountId: ' + this.ctx.session.sessionUser.accountId);
|
|
|
+ if (stage && stage.status === auditConst.stage.status.uncheck) {
|
|
|
+ // 得判断账号是否在审核人列表中(不含原报)
|
|
|
+ if (stage.auditorList === undefined || stage.auditorList === null) {
|
|
|
+ stage.auditorList = await ctx.service.stageAudit.getAuditors(ctx.stage.id, ctx.stage.times);
|
|
|
+ }
|
|
|
+ let isAudit = false;
|
|
|
+ for (const audit of stage.auditorList) {
|
|
|
+ if (audit.aid === this.ctx.session.sessionUser.accountId) {
|
|
|
+ isAudit = true;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (!isAudit) {
|
|
|
+ // throw
|
|
|
+ }
|
|
|
+ }
|
|
|
let stage_id = -1;
|
|
|
let stage_order = -1;
|
|
|
let sorder = -1;
|