Browse Source

报表,期,加载历史台账

MaiXinRong 2 years ago
parent
commit
27d31631f5
1 changed files with 5 additions and 0 deletions
  1. 5 0
      app/service/stage.js

+ 5 - 0
app/service/stage.js

@@ -139,6 +139,11 @@ module.exports = app => {
             if (!time) time = stage.in_time ? stage.in_time : new Date();
             stage.cacheTime = time.getTime();
 
+            // 历史台账
+            if (stage.status === status.checked) {
+                stage.ledgerHis = await this.service.ledgerHistory.getDataById(stage.his_id);
+            }
+
             return stage;
         }