|
@@ -186,11 +186,12 @@ module.exports = app => {
|
|
|
if (datas.length === 0) return;
|
|
|
|
|
|
const updateDatas = [];
|
|
|
+ const times = this.ctx.stage.curTimes, order = this.ctx.stage.curOrder;
|
|
|
for (const d of datas) {
|
|
|
const history = d.shistory && d.shistory !== '' ? JSON.parse(d.shistory) : [];
|
|
|
const his = history.find(function (x) {
|
|
|
- return x.stimes && x.stimes === this.ctx.stage.curTimes
|
|
|
- && x.sorder && x.sorder === this.ctx.stage.curOrder;
|
|
|
+ return x.stimes && x.stimes === times
|
|
|
+ && x.sorder && x.sorder === order;
|
|
|
});
|
|
|
if (his) {
|
|
|
his.arrive_qty = d.arrive_qty;
|