Browse Source

合同支付问题

MaiXinRong 5 years ago
parent
commit
1c8745b8ec
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/controller/stage_controller.js

+ 1 - 1
app/controller/stage_controller.js

@@ -578,7 +578,7 @@ module.exports = app => {
                     (ctx.stage.status === auditConst.status.checkNoPre && ctx.session.sessionUser.accountId === ctx.stage.curAuditor.aid) ||
                     (ctx.stage.status === auditConst.status.checkNoPre && ctx.session.sessionUser.accountId === ctx.stage.curAuditor.aid) ||
                     (ctx.stage.status === auditConst.status.checking && ctx.stage.curAuditor && ctx.stage.curAuditor.aid === ctx.session.sessionUser.accountId);
                     (ctx.stage.status === auditConst.status.checking && ctx.stage.curAuditor && ctx.stage.curAuditor.aid === ctx.session.sessionUser.accountId);
 
 
-                if (!stage.readOnly) {
+                if (!ctx.stage.readOnly) {
                     // 计算 本期金额
                     // 计算 本期金额
                     const payCalculator = new PayCalculator(ctx, ctx.stage, ctx.tender.info);
                     const payCalculator = new PayCalculator(ctx, ctx.stage, ctx.tender.info);
                     await payCalculator.calculateAll(renderData.dealPay);
                     await payCalculator.calculateAll(renderData.dealPay);