|
|
@@ -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)) {
|
|
|
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) {
|
|
|
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);
|
|
|
// // 这里要调用签名的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);
|
|
|
ctx.body = { err: 0, msg: '', data: [] };
|
|
|
} catch (err) {
|