Tony Kang 4 ساعت پیش
والد
کامیت
b297ae32cf
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      app/controller/stage_controller.js

+ 2 - 2
app/controller/stage_controller.js

@@ -564,7 +564,7 @@ module.exports = app => {
                 }
                 }
                 if (!ctx.stage.update_expr_calc_time || (ctx.stage.update_calc_time && ctx.stage.update_expr_calc_time < ctx.stage.update_calc_time)) {
                 if (!ctx.stage.update_expr_calc_time || (ctx.stage.update_calc_time && ctx.stage.update_expr_calc_time < ctx.stage.update_calc_time)) {
                     const expr = await ctx.service.expr.getAllDataByCondition({ where: { tid: ctx.stage.tid, calc_module: 'stage' } });
                     const expr = await ctx.service.expr.getAllDataByCondition({ where: { tid: ctx.stage.tid, calc_module: 'stage' } });
-                    const exprCount = expr.filter(x => { return !!x.expr }).length;
+                    const exprCount = expr.filter(x => { return !!x.expr; }).length;
                     if (exprCount > 0) {
                     if (exprCount > 0) {
                         checkData.checkResult.error.push({ errorType: 'expr_no_calc', name: '修改数据后,未计算本期合同计量' });
                         checkData.checkResult.error.push({ errorType: 'expr_no_calc', name: '修改数据后,未计算本期合同计量' });
                     }
                     }
@@ -1526,7 +1526,7 @@ module.exports = app => {
 
 
                 await ctx.service.stageAudit.check(ctx.stage.id, data, ctx.stage.times);
                 await ctx.service.stageAudit.check(ctx.stage.id, data, ctx.stage.times);
                 // // 这里要调用签名的service,重设签名日期
                 // // 这里要调用签名的service,重设签名日期
-                // const rstMsg = await ctx.service.roleRptRel.refreshSignatureDate(ctx.tender.data.id, ctx.stage.id, 'stage', -1);
+                const rstMsg = await ctx.service.roleRptRel.refreshSignatureDate(ctx.tender.data.id, ctx.stage.id, 'stage', -1);
                 // console.log(rstMsg);
                 // console.log(rstMsg);
                 ctx.body = { err: 0, msg: '', data: [] };
                 ctx.body = { err: 0, msg: '', data: [] };
             } catch (err) {
             } catch (err) {