Ver código fonte

暂存计量相关

MaiXinRong 2 anos atrás
pai
commit
dc937300b7
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      app/service/stage_stash.js

+ 4 - 0
app/service/stage_stash.js

@@ -228,6 +228,10 @@ module.exports = app => {
             const insertBillsData = [], insertPosData = [], insertChangeData = [];
 
             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 said = this.ctx.session.sessionUser.accountId;