|
@@ -45,7 +45,9 @@ module.exports = app => {
|
|
let stage_status = -1;
|
|
let stage_status = -1;
|
|
const treeNodes = await ctx.service.rptTreeNode.getNodesByProjectId([-1, tender.data.project_id]);
|
|
const treeNodes = await ctx.service.rptTreeNode.getNodesByProjectId([-1, tender.data.project_id]);
|
|
const custTreeNodes = await ctx.service.rptTreeNodeCust.getCustFoldersByUserId(this.ctx.session.sessionUser.accountId);
|
|
const custTreeNodes = await ctx.service.rptTreeNodeCust.getCustFoldersByUserId(this.ctx.session.sessionUser.accountId);
|
|
- const stageList = await ctx.service.stage.getValidStagesShort(tender.id);
|
|
|
|
|
|
+ const allArchives = await ctx.service.rptArchive.getPrjStgArchiveByBz(ctx.session.sessionProject.id, null, tender.id);
|
|
|
|
+ // const stageList = await ctx.service.stage.getValidStagesShort(tender.id);
|
|
|
|
+ const stageList = await ctx.service.stage.getListByArchives(tender.id, ctx.helper._.map(allArchives, 'stage_id'));
|
|
const isAdmin = ctx.session.sessionUser.is_admin;
|
|
const isAdmin = ctx.session.sessionUser.is_admin;
|
|
//
|
|
//
|
|
// 。。。
|
|
// 。。。
|