Explorar o código

期计量,最新期当前操作人,当前期统计数据显示不正确

MaiXinRong %!s(int64=5) %!d(string=hai) anos
pai
achega
21f2755f2f
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      app/service/stage.js

+ 2 - 0
app/service/stage.js

@@ -107,6 +107,8 @@ module.exports = app => {
                 const curAuditor = await this.ctx.service.stageAudit.getCurAuditor(stage.id, stage.times);
                 const isActive = curAuditor ? curAuditor.id === this.ctx.session.sessionUser.accountId : stage.user_id === this.ctx.session.sessionUser.accountId;
                 if (isActive) {
+                    stage.curTimes = stage.times;
+                    stage.curOrder = curAuditor ? curAuditor.order : 0;
                     const tpData = await this.ctx.service.stageBills.getSumTotalPrice(stage);
                     stage.contract_tp = tpData.contract_tp;
                     stage.qc_tp = tpData.qc_tp;