|
@@ -111,7 +111,7 @@ module.exports = app => {
|
|
|
const stages = await ctx.service.stage.getAllDataByCondition({ where: { tid: ctx.tender.id }});
|
|
|
const unCompleteStageCount = stages.filter(s => { return s.status !== auditConst.status.checked; }).length;
|
|
|
if (unCompleteStageCount.length > 0) {
|
|
|
- if (ctx.session.sessionProject.page_show.openMultiStageCalc) {
|
|
|
+ if (ctx.subProject.page_show.openMultiStageCalc) {
|
|
|
if (unCompleteStageCount >= ctx.session.sessionProject.page_show.maxMultiStageCount)
|
|
|
throw `最多只可同时进行${ctx.session.sessionProject.page_show.maxMultiStageCount}期计量`;
|
|
|
} else {
|