Przeglądaj źródła

修复期数问题

laiguoran 3 lat temu
rodzic
commit
015b4176e1
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      app/controller/report_archive_controller.js

+ 3 - 1
app/controller/report_archive_controller.js

@@ -413,7 +413,7 @@ module.exports = app => {
          */
         async signReport(ctx) {
             const tender = ctx.tender;
-            const stage = ctx.stage;
+            let stage = ctx.stage;
             let stage_id = -1;
             let stage_order = -1;
             let stage_times = -1;
@@ -448,6 +448,8 @@ 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];
+                        ctx.stage = stageList[sidx];
                         break;
                     }
                 }