Selaa lähdekoodia

汇总合同支付,兼容多期汇总表

MaiXinRong 5 vuotta sitten
vanhempi
commit
3bdeb4d1a1
1 muutettua tiedostoa jossa 8 lisäystä ja 0 poistoa
  1. 8 0
      app/lib/rpt_data_analysis.js

+ 8 - 0
app/lib/rpt_data_analysis.js

@@ -857,6 +857,13 @@ const gatherStagePay = {
             }
         }
     },
+    _completeStageSumInfo(d, source) {
+        for (const f in source) {
+            if (/^t_[0-9]*_order$/.test(f)) {
+                d[f] = source[f];
+            }
+        }
+    },
     fun: function (ctx, data, fields, options) {
         if (!options || !options.table || !options.custom) return;
 
@@ -877,6 +884,7 @@ const gatherStagePay = {
                     this._gatherFields(ctx, cData, gatherData, calcFields);
                 }
                 if (options.table.indexOf('mem_gather') >= 0) this._completeGatherInfo(cData, gatherData[0]);
+                if (options.table.indexOf('mem_stage_sum_') >= 0) this._completeStageSumInfo(cData, gatherData[0]);
                 result.push(cData);
             }
         }