|
@@ -226,7 +226,13 @@ class ReportMemoryMaterial {
|
|
|
|
|
|
async getMaterialGlDetail(tender_id, material_order, fields) {
|
|
|
const material = await this.ctx.service.material.getDataByCondition({tid: tender_id, order: material_order});
|
|
|
- return material ? await this.ctx.service.materialList.getMaterialData(tender_id, material.id) : [];
|
|
|
+ if (!material) return [];
|
|
|
+
|
|
|
+ if (material.is_stage_self) {
|
|
|
+ return await this.ctx.service.materialList.getMaterialStageData(tender_id, material.id);
|
|
|
+ } else {
|
|
|
+ return await this.ctx.service.materialList.getMaterialData(tender_id, material.id);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
async getMaterialBills(tender_id, material_order, fields, showLevel) {
|