|
@@ -1292,8 +1292,8 @@ module.exports = app => {
|
|
|
|
|
|
const data = await this.ctx.service.stageYjcl.getStageData(this.ctx.stage);
|
|
|
for (const d of data) {
|
|
|
- d.end_qty = this.ctx.helper.add(d.pre_qty, qty);
|
|
|
- d.end_tp = this.ctx.helper.add(d.pre_tp, tp);
|
|
|
+ d.end_qty = this.ctx.helper.add(d.pre_qty, d.qty);
|
|
|
+ d.end_tp = this.ctx.helper.add(d.pre_tp, d.tp);
|
|
|
}
|
|
|
return data;
|
|
|
} catch (err) {
|