Browse Source

动态投资,读值调整

MaiXinRong 3 days ago
parent
commit
5dfd792396
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/lib/rm/tender_budget.js

+ 2 - 1
app/lib/rm/tender_budget.js

@@ -64,7 +64,7 @@ class reportMemoryBudget {
     async _getTenderBudget(tid) {
         if (this.getBudget) return;
 
-        if (this.ctx.subProject) this.budget = await this.ctx.service.budget.getDataById(this.ctx.subProject.id);
+        if (this.ctx.subProject) this.budget = await this.ctx.service.budget.getDataById(this.ctx.subProject.budget_id);
         if (!this.budget) {
             const budgets = await this.ctx.service.budget.getBudget(true);
             this.budget = budgets.find(x => {
@@ -102,6 +102,7 @@ class reportMemoryBudget {
 
     async tenderFinal(tid, filter = false) {
         await this._getTenderBudget(tid);
+        console.log(this.budget);
         return this.budget ? await this.budgetFinal(this.budget.id, filter) : [];
     }
 }