소스 검색

动态投资,读值调整

MaiXinRong 3 일 전
부모
커밋
5dfd792396
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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) : [];
     }
 }