|
@@ -228,6 +228,10 @@ module.exports = app => {
|
|
const insertBillsData = [], insertPosData = [], insertChangeData = [];
|
|
const insertBillsData = [], insertPosData = [], insertChangeData = [];
|
|
|
|
|
|
const bills = await this.ctx.service.ledger.getAllDataByCondition({ where: { tender_id: stage.tid, is_leaf: true } });
|
|
const bills = await this.ctx.service.ledger.getAllDataByCondition({ where: { tender_id: stage.tid, is_leaf: true } });
|
|
|
|
+ const extraData = await this.ctx.service.ledgerExtra.getData(stage.tid, ['id', 'is_tp']);
|
|
|
|
+ this.ctx.helper.assignRelaData(bills, [
|
|
|
|
+ { data: extraData, fields: ['is_tp'], prefix: '', relaId: 'id' },
|
|
|
|
+ ]);
|
|
const pos = await this.ctx.service.pos.getAllDataByCondition({ where: { tid: stage.tid } });
|
|
const pos = await this.ctx.service.pos.getAllDataByCondition({ where: { tid: stage.tid } });
|
|
|
|
|
|
const said = this.ctx.session.sessionUser.accountId;
|
|
const said = this.ctx.session.sessionUser.accountId;
|