|
@@ -35,7 +35,8 @@ module.exports = app => {
|
|
|
try {
|
|
|
// 获取用户新建标段权利
|
|
|
const accountInfo = await this.ctx.service.projectAccount.getDataById(this.ctx.session.sessionUser.accountId);
|
|
|
- const userPermission = accountInfo !== undefined && accountInfo.permission !== '' ? JSON.parse(accountInfo.permission) : null;
|
|
|
+ const userPermission = accountInfo !== undefined && accountInfo.permission !== ''
|
|
|
+ ? JSON.parse(accountInfo.permission) : null;
|
|
|
|
|
|
const tenderList = await this.ctx.service.tender.getList('', userPermission);
|
|
|
|
|
@@ -50,7 +51,10 @@ module.exports = app => {
|
|
|
t.lastStage = await this.ctx.service.stage.getLastestStage(t.id, true);
|
|
|
|
|
|
if (!t.lastStage) continue;
|
|
|
- if (t.lastStage.status === auditConst.stage.status.uncheck && t.lastStage.user_id !== this.ctx.session.sessionUser.accountId) { t.lastStage = await this.ctx.service.stage.getLastestStage(t.id); }
|
|
|
+ if (t.lastStage.status === auditConst.stage.status.uncheck &&
|
|
|
+ t.lastStage.user_id !== this.ctx.session.sessionUser.accountId) {
|
|
|
+ t.lastStage = await this.ctx.service.stage.getLastestStage(t.id);
|
|
|
+ }
|
|
|
|
|
|
if (!t.lastStage) continue;
|
|
|
await this.ctx.service.stage.checkStageGatherData(t.lastStage);
|