|
@@ -769,7 +769,7 @@ module.exports = app => {
|
|
|
for (const t of tenders) {
|
|
|
t.measure_type_str = t.measure_type === measureType.tz.value ? measureType.tz.title : measureType.gcl.title;
|
|
|
const stages = await ctx.service.stage.getAllDataByCondition({ where: { tid: t.id } });
|
|
|
- t.stage_count_str = `第${stages.count || 0}期`;
|
|
|
+ t.stage_count_str = `第${stages.length || 0}期`;
|
|
|
const user = await ctx.service.projectAccount.getAccountInfoById(t.user_id);
|
|
|
t.user_str = user.name + '-' + user.company;
|
|
|
t.show_time = stages.length > 0 ? stages[stages.length - 1].cache_time_r || stages[stages.length - 1].in_time : t.create_time;
|