|
@@ -34,7 +34,7 @@ class srCache {
|
|
|
const ledger = await this.ctx.service.ledger.getData(this.stage.tid);
|
|
|
const curBillsData = await this.ctx.service.stageBills.getLastestStageData(this.stage.tid, this.stage.id);
|
|
|
const preStageBills = this.preRelaStage
|
|
|
- ? this.ctx.service.stageRelaBillsFinal.getAllDataByCondition({ where: { sid: this.preRelaStage.sid, rela_tid: this.preRelaStage.rela_tid } })
|
|
|
+ ? await this.ctx.service.stageRelaBillsFinal.getAllDataByCondition({ where: { sid: this.preRelaStage.sid, rela_tid: this.preRelaStage.rela_tid } })
|
|
|
: [];
|
|
|
this.ctx.helper.assignRelaData(ledger, [
|
|
|
{ data: curBillsData, fields: ['contract_qty', 'qc_qty', 'postil'], prefix: '', relaId: 'lid' },
|
|
@@ -76,7 +76,7 @@ class srCache {
|
|
|
const pos = await this.ctx.service.pos.getPosData({tid: this.stage.tid});
|
|
|
const curPosData = await this.ctx.service.stagePos.getLastestStageData2(this.stage.tid, this.stage.id);
|
|
|
const preStagePos = this.preRelaStage
|
|
|
- ? this.ctx.service.stageRelaPosFinal.getAllDataByCondition({ where: { sid: this.preRelaStage.sid, rela_tid: this.preRelaStage.rela_tid } })
|
|
|
+ ? await this.ctx.service.stageRelaPosFinal.getAllDataByCondition({ where: { sid: this.preRelaStage.sid, rela_tid: this.preRelaStage.rela_tid } })
|
|
|
: [];
|
|
|
this.ctx.helper.assignRelaData(pos, [
|
|
|
{ data: curPosData, fields: ['contract_qty', 'qc_qty', 'postil', 'pid'], prefix: '', relaId: 'pid' },
|