MaiXinRong 2 years ago
parent
commit
276e6b941a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/lib/rpt_data_analysis.js

+ 2 - 1
app/lib/rpt_data_analysis.js

@@ -1572,7 +1572,7 @@ const loadCooperationData = {
         if (!stageAuditAss || stageAuditAss.length === 0) return null;
         if (relaId.length > 0) {
             for (const id of relaId) {
-                const c = stageCooperation.find(x => { return x.ass_ledger_id.indexOf(id) >= 0; });
+                const c = stageAuditAss.find(x => { return x.ass_ledger_id.indexOf(id) >= 0; });
                 if (c) return c;
             }
             return null;
@@ -1598,6 +1598,7 @@ const loadCooperationData = {
             if (sa.end_time) stageAuditAss.push(data.mem_stage_audit_ass.filter(x => { return x.user_id === sa.aid; }));
             if (finish && !sa.end_time) finish = false;
         }
+
         for (const d of data[options.table]) {
             const bills = data.mem_stage_bills.find(x => { return x.id === d.lid; });
             const relaId = bills ? bills.full_path.split('-').reverse() : [];