MaiXinRong 4 anos atrás
pai
commit
c3f720bd08
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      app/service/stage_detail.js

+ 1 - 1
app/service/stage_detail.js

@@ -129,8 +129,8 @@ module.exports = app => {
             if (data.uuid) {
                 const org = await this.getLastestImStageData(this.ctx.tender.id, this.ctx.stage.id, data.lid, data.uuid);
                 const order = this.ctx.stage.curAuditor ? this.ctx.stage.curAuditor.order : 0;
-                delete org.flow;
                 if (org.times === this.ctx.stage.times && org.order === order) {
+                    delete org.flow;
                     const newData = this._.assign(org, data);
                     await this.db.update(this.tableName, newData);
                     return newData;