|
@@ -221,6 +221,16 @@ module.exports = app => {
|
|
|
const tp = await this.ctx.service.stagePay.getSpecialTotalPrice(stage);
|
|
|
stage.yf_tp = tp.yf;
|
|
|
stage.sf_tp = tp.sf;
|
|
|
+ } else if (stage.tp_history) {
|
|
|
+ const his = this.ctx.helper._.find(stage.tp_history, {times: stage.curTimes, order: stage.curOrder});
|
|
|
+ if (his) {
|
|
|
+ stage.contract_tp = his.contract_tp;
|
|
|
+ stage.qc_tp = his.qc_tp;
|
|
|
+ stage.yf_tp = his.yf_tp;
|
|
|
+ stage.sf_tp = his.sf_tp;
|
|
|
+ stage.tp = this.ctx.helper.add(stage.contract_tp, stage.qc_tp);
|
|
|
+ stage.end_tp = this.ctx.helper.add(stage.pre_tp, stage.tp);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|