|
@@ -112,6 +112,8 @@ module.exports = app => {
|
|
|
const unCompleteStageCount = stages.filter(s => { return s.status !== auditConst.status.checked; }).length;
|
|
|
if (unCompleteStageCount.length > 0) {
|
|
|
if (ctx.subProject.page_show.openMultiStageCalc) {
|
|
|
+ if (ctx.tender.info.calc_type === 'tp') throw `【总价合同】不允许新增下一期,请联系管理员`;
|
|
|
+ if (ctx.subProject.page_show.correctCalcContractTp) throw `【反算本期合同计量】不允许新增下一期,请联系管理员`;
|
|
|
if (unCompleteStageCount >= ctx.session.sessionProject.page_show.maxMultiStageCount)
|
|
|
throw `最多只可同时进行${ctx.session.sessionProject.page_show.maxMultiStageCount}期计量`;
|
|
|
} else {
|