|
@@ -358,7 +358,7 @@ module.exports = app => {
|
|
|
const l = this.ctx.helper._.find(billsData, {id: d.id});
|
|
|
this.ctx.helper._.assignIn(l, d);
|
|
|
}
|
|
|
- const pos = new Ledger.pos(this.ctx, { id: 'id', ledgerId: 'lid' });
|
|
|
+ const pos = new Ledger.pos({ id: 'id', ledgerId: 'lid' });
|
|
|
const posData = await this.ctx.service.pos.getAllDataByCondition({ where: { tid: tender.id} });
|
|
|
let billsIndexData = {};
|
|
|
for (const bd of billsData) {
|
|
@@ -396,7 +396,7 @@ module.exports = app => {
|
|
|
const posRange = pos.getLedgerPos(sourceNode.id);
|
|
|
if (!posRange || posRange.length === 0) return;
|
|
|
resultPos.loadGatherPos(gatherNode.id, posRange, (gatherPos, sourcePos) => {
|
|
|
- gatherUtils.gatherZonePos(gatherPos, sourcePos, completeData.prefix, helper);
|
|
|
+ gatherUtils.gatherZonePos(tender, gatherPos, sourcePos, completeData.prefix, helper);
|
|
|
});
|
|
|
});
|
|
|
}
|
|
@@ -441,7 +441,7 @@ module.exports = app => {
|
|
|
const l = this.ctx.helper._.find(billsData, {id: d.id});
|
|
|
this.ctx.helper._.assignIn(l, d);
|
|
|
}
|
|
|
- const pos = new Ledger.pos(this.ctx, { id: 'id', ledgerId: 'lid' });
|
|
|
+ const pos = new Ledger.pos({ id: 'id', ledgerId: 'lid' });
|
|
|
const posData = await this.ctx.service.pos.getAllDataByCondition({ where: { tid: tender.id } });
|
|
|
if (stage) {
|
|
|
await this.ctx.service.stage.doCheckStage(stage);
|
|
@@ -475,7 +475,7 @@ module.exports = app => {
|
|
|
const posRange = pos.getLedgerPos(sourceNode.id);
|
|
|
if (!posRange || posRange.length === 0) return;
|
|
|
resultPos.loadGatherPos(gatherNode.id, posRange, (gatherPos, sourcePos) => {
|
|
|
- gatherUtils.gatherStagePos(gatherPos, sourcePos, completeData.prefix, helper);
|
|
|
+ gatherUtils.gatherStagePos(tender, gatherPos, sourcePos, completeData.prefix, helper);
|
|
|
});
|
|
|
});
|
|
|
}
|