Browse Source

撤回金额相关

MaiXinRong 2 years ago
parent
commit
4fb9296bb2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/service/stage_audit.js

+ 2 - 2
app/service/stage_audit.js

@@ -1070,7 +1070,7 @@ module.exports = app => {
                         yf_tp: yfPay.tp,
                         sf_tp: sfPay.tp,
                     };
-                    this.ctx.stage.tp_history.push({ times, order: curAudit.order, ...stageTp });
+                    this.ctx.stage.tp_history.push({ times, order: curAudit.order, ...stageTp }, { times, order: curAudit.order, ...stageTp });
                     // 同步 期信息
                     await transaction.update(this.ctx.service.stage.tableName, {
                         id: stageId,
@@ -1209,7 +1209,7 @@ module.exports = app => {
                         yf_tp: yfPay.tp,
                         sf_tp: sfPay.tp,
                     };
-                    this.ctx.stage.tp_history.push({ times: times - 1, order: curAudit.order, ...stageTp });
+                    this.ctx.stage.tp_history.push({ times: curAudit.times, order: curAudit.order + 1, ...stageTp }, { times: curAudit.times, order: curAudit.order + 2, ...stageTp });
                     await transaction.update(this.ctx.service.stage.tableName, {
                         id: stageId,
                         times: times - 1,