|
|
@@ -181,7 +181,7 @@ module.exports = app => {
|
|
|
}
|
|
|
await ctx.service.tenderCache.loadTenderCaches(allTenders, user.accountId);
|
|
|
const allChanges = !options.summary && status === '在建' && allTenders.length ? await ctx.service.change.getAllCheckedChanges(allTenders.map(t => t.id)) : [];
|
|
|
- const allProgress = !options.summary && selectedNodes.length && status !== '已建' ? await ctx.service.subProjProgress.getAllDataByCondition({ where: { spid: selectedNodes.map(n => n.id) }, orders: [['update_time', 'desc'], ['id', 'asc']] }) : [];
|
|
|
+ const allProgress = !options.summary && selectedNodes.length ? await ctx.service.subProjProgress.getAllDataByCondition({ where: { spid: selectedNodes.map(n => n.id) }, orders: [['update_time', 'desc'], ['id', 'asc']] }) : [];
|
|
|
for (const node of selectedNodes) {
|
|
|
const info = infos.find(i => i.id === node.id);
|
|
|
if (!info) continue;
|