Sfoglia il codice sorgente

限制新增多期

MaiXinRong 3 settimane fa
parent
commit
74e1e9ee93
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      app/controller/measure_controller.js

+ 2 - 0
app/controller/measure_controller.js

@@ -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 {