Sfoglia il codice sorgente

复制审批流程后,重新加载读取的审批人数据

MaiXinRong 1 anno fa
parent
commit
5e2ce95dd2
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      app/middleware/stage_check.js

+ 2 - 2
app/middleware/stage_check.js

@@ -99,7 +99,7 @@ module.exports = options => {
                     stage.assist = ass;
                     stage.curOrder = stage.curAuditors[0].order;
                 } else {
-                    stage.curOrder = stage.curAuditors[0].order - 1;
+                    stage.curOrder = stage.curAuditors[0].order - 1
                 }
                 stage.readOnly = stage.readOnly && _.isEqual(stage.flowAuditorIds, stage.curAuditorIds);
             }
@@ -148,6 +148,7 @@ module.exports = options => {
                     }
                     if (!sameAudit) {
                         yield this.service.stageAudit.updateNewAuditList(stage, shenpiList);
+                        yield this.service.stage.loadStageUser(stage);
                     }
                 } else if (shenpi_status === shenpiConst.sp_status.gdzs) {
                     const shenpiInfo = yield this.service.shenpiAudit.getDataByCondition({ tid: stage.tid, sp_type: shenpiConst.sp_type.stage, sp_status: shenpi_status });
@@ -163,7 +164,6 @@ module.exports = options => {
             }
             yield next;
         } catch (err) {
-            console.log(err);
             this.helper.log(err);
             // 输出错误到日志
             if (err.stack) {