|
@@ -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) {
|