|
@@ -74,12 +74,10 @@ class srCache {
|
|
|
|
|
|
async _loadPosData() {
|
|
|
const pos = await this.ctx.service.pos.getPosData({tid: this.stage.tid});
|
|
|
- console.log(this.stage);
|
|
|
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 } })
|
|
|
: [];
|
|
|
- console.log(curPosData);
|
|
|
this.ctx.helper.assignRelaData(pos, [
|
|
|
{ data: curPosData, fields: ['contract_qty', 'qc_qty', 'postil', 'pid'], prefix: '', relaId: 'pid' },
|
|
|
{ data: preStagePos, fields: ['contract_qty', 'qc_qty', 'postil', 'pid'], prefix: 'pre_', relaId: 'pid' },
|