瀏覽代碼

季华报表,判断配置的审批人是否存在

MaiXinRong 4 年之前
父節點
當前提交
790594d67e
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      app/lib/rptCustomData.js

+ 2 - 0
app/lib/rptCustomData.js

@@ -242,6 +242,7 @@ class jhHelper {
         ];
         for (const dc of gsDefine.defaultCompare) {
             const auditor = auditors[dc];
+            if (!auditor) continue;
             const auditorStage = await this.ctx.service.stageBills.getAuditorStageData(tender.id, stage.id, auditor.times, auditor.order);
             loadData.push({ data: auditorStage, fields: this.billsQueryField, prefix: `r${dc}_`, relaId: 'lid' });
         }
@@ -260,6 +261,7 @@ class jhHelper {
         ];
         for (const dc of gsDefine.defaultCompare) {
             const auditor = auditors[dc];
+            if (!auditor) continue;
             const auditorStage = await this.ctx.service.stagePos.getAuditorStageData2(tender.id, stage.id, auditor.times, auditor.order);
             loadData.push({ data: auditorStage, fields: ['qc_qty'], prefix: `r${dc}_`, relaId: 'pid' });
         }