Ver código fonte

汇总表,补差bug相关

MaiXinRong 2 anos atrás
pai
commit
fd1169c133
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      app/service/rpt_gather_memory.js

+ 2 - 2
app/service/rpt_gather_memory.js

@@ -374,7 +374,7 @@ module.exports = app => {
                 const curStage = stage.readOnly
                     ? await this.ctx.service.stageBills.getAuditorStageData2(tender.id, stage.id, stage.curTimes, stage.curOrder)
                     : await this.ctx.service.stageBills.getLastestStageData2(tender.id, stage.id);
-                const bpcStage = await this.ctx.service.stageBillsPc.getAllDataByCondition({ where: { sid: this.ctx.stage.id } });
+                const bpcStage = await this.ctx.service.stageBillsPc.getAllDataByCondition({ where: { sid: stage.id } });
                 sumAssignRelaData(billsIndexData, [
                     {data: curStage, fields: ['contract_qty', 'contract_tp', 'qc_qty', 'qc_tp'], prefix: '', relaId: 'lid'},
                     { data: bpcStage, fields: ['contract_pc_tp', 'qc_pc_tp', 'pc_tp'], prefix: '', relaId: 'lid' },
@@ -389,7 +389,7 @@ module.exports = app => {
 
             billsTree.loadDatas(billsData);
             billsTree.calculateAll();
-            pos.LoadDatas(posData);
+            pos.loadDatas(posData);
             this.resultTree.loadGatherTree(billsTree, function (gatherNode, sourceNode) {
                 gatherUtils.gatherZone(tender, gatherNode, sourceNode, completeData.prefix, helper);
             }, function (gatherNode, sourceNode) {