|
|
@@ -56,6 +56,7 @@ module.exports = app => {
|
|
|
for (const t of tenderList) {
|
|
|
await this.ctx.service.tenderCache.loadTenderCache(t, this.ctx.session.sessionUser.accountId);
|
|
|
t.canFinish = await this.ctx.service.tender.checkTenderCanFinish(t);
|
|
|
+ [t.change_tp, t.change_p_tp, t.change_n_tp, t.change_valuation_tp, t.change_unvaluation_tp] = await this.ctx.service.change.getChangeTp(t.id);
|
|
|
}
|
|
|
const categoryData = await this.ctx.service.category.getAllCategory(this.ctx.subProject);
|
|
|
const valuations = await this.ctx.service.valuation.getProjectValidValuation(this.ctx.session.sessionProject.id);
|
|
|
@@ -95,6 +96,7 @@ module.exports = app => {
|
|
|
for (const t of tenderList) {
|
|
|
await this.ctx.service.tenderCache.loadTenderCache(t, this.ctx.session.sessionUser.accountId);
|
|
|
t.canFinish = await this.ctx.service.tender.checkTenderCanFinish(t);
|
|
|
+ [t.change_tp, t.change_p_tp, t.change_n_tp, t.change_valuation_tp, t.change_unvaluation_tp] = await this.ctx.service.change.getChangeTp(t.id);
|
|
|
}
|
|
|
const categoryData = await this.ctx.service.category.getAllCategory(this.ctx.subProject);
|
|
|
const valuations = await this.ctx.service.valuation.getProjectValidValuation(this.ctx.session.sessionProject.id);
|
|
|
@@ -132,6 +134,7 @@ module.exports = app => {
|
|
|
t.visitor = (await this.ctx.service.tenderTourist.getTourists(t.id)).map(x => { return x.user_name; });
|
|
|
await this.ctx.service.tenderCache.loadTenderCache(t, this.ctx.session.sessionUser.accountId);
|
|
|
t.canFinish = await this.ctx.service.tender.checkTenderCanFinish(t);
|
|
|
+ [t.change_tp, t.change_p_tp, t.change_n_tp, t.change_valuation_tp, t.change_unvaluation_tp] = await this.ctx.service.change.getChangeTp(t.id);
|
|
|
}
|
|
|
renderData.categoryData = await this.ctx.service.category.getAllCategory(this.ctx.subProject);
|
|
|
renderData.valuations = await this.ctx.service.valuation.getProjectValidValuation(this.ctx.session.sessionProject.id);
|
|
|
@@ -162,6 +165,7 @@ module.exports = app => {
|
|
|
t.visitor = (await this.ctx.service.tenderTourist.getTourists(t.id)).map(x => { return x.user_name; });
|
|
|
await this.ctx.service.tenderCache.loadTenderCache(t, this.ctx.session.sessionUser.accountId);
|
|
|
t.canFinish = await this.ctx.service.tender.checkTenderCanFinish(t);
|
|
|
+ [t.change_tp, t.change_p_tp, t.change_n_tp, t.change_valuation_tp, t.change_unvaluation_tp] = await this.ctx.service.change.getChangeTp(t.id);
|
|
|
}
|
|
|
renderData.categoryData = await this.ctx.service.category.getAllCategory(this.ctx.subProject);
|
|
|
renderData.valuations = await this.ctx.service.valuation.getProjectValidValuation(this.ctx.session.sessionProject.id);
|