|
|
@@ -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) : [];
|
|
|
}
|
|
|
}
|