Browse Source

归档期显示

TonyKang 3 years ago
parent
commit
df7824f130
1 changed files with 3 additions and 2 deletions
  1. 3 2
      app/controller/report_archive_controller.js

+ 3 - 2
app/controller/report_archive_controller.js

@@ -19,7 +19,7 @@ module.exports = app => {
 
         async index(ctx) {
             const tender = ctx.tender;
-            let stage = ctx.stage;
+            const stage = ctx.stage;
             let stage_id = -1;
             let stage_order = -1;
             let stage_times = -1;
@@ -53,7 +53,7 @@ module.exports = app => {
                     if (stageList[sidx].status === 3) {
                         archives = await ctx.service.rptArchive.getPrjStgArchive(tender.data.project_id, stageList[sidx].id);
                         stage_id = stageList[sidx].id;
-                        stage = stageList[sidx];
+                        // stage = stageList[sidx];
                         ctx.stage = stageList[sidx];
                         break;
                     }
@@ -448,6 +448,7 @@ module.exports = app => {
                     if (stageList[sidx].status === 3) {
                         archives = await ctx.service.rptArchive.getPrjStgArchive(tender.data.project_id, stageList[sidx].id);
                         stage_id = stageList[sidx].id;
+                        ctx.stage = stageList[sidx];
                         break;
                     }
                 }