Browse Source

引入其他标段数据Bug

MaiXinRong 3 years ago
parent
commit
d698090014
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/lib/sum_load.js

+ 1 - 1
app/lib/sum_load.js

@@ -532,7 +532,7 @@ class sumLoad {
             { data: importLid, fields: ['is_import'], prefix: '', relaId: 'lid' },
             { data: stageBills, fields: ['contract_qty', 'contract_tp', 'qc_qty', 'qc_tp'], prefix: '', relaId: 'lid' },
         ]);
-        const pos = await this.ctx.service.pos.getData(this.ctx.tender.id);
+        const pos = await this.ctx.service.pos.getAllDataByCondition({ where: { tid: this.ctx.tender.id } });
         this.loadTree.loadBase(posterity, pos);
 
         for (const tender of tenders) {