瀏覽代碼

报表预处理,汇总工程量清单相关

MaiXinRong 5 年之前
父節點
當前提交
1759ba395b
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      app/lib/rpt_data_analysis.js

+ 3 - 3
app/lib/rpt_data_analysis.js

@@ -145,7 +145,7 @@ const gatherGcl = {
         '  图册号(drawing_code), 备注(memo), 节点类型(node_type), 总额计量(is_tp)\n' +
         '3. 如需汇总"未计入清单章节项",请勾选"章节编号(chapter)"字段\n',
     intro: '根据三级清单树结构,汇总平面工程量清单,目前仅支持mem_stage_bills表',
-    _gatherCalcField: function (gcl, data) {
+    _gatherCalcField: function (ctx, gcl, data) {
         for (const prop in data) {
             if (((prop === 'total_price' || prop.indexOf('tp') > 0) ||
                 (prop === 'quantity' || prop.indexOf('qty') > 0)) && data[prop])
@@ -209,12 +209,12 @@ const gatherGcl = {
                     if (tableName.indexOf('mem_gather_') >= 0) this._loadGatherInfo(gcl, b);
                     gclBills.push(gcl);
                 }
-                this._gatherCalcField(gcl, b);
+                this._gatherCalcField(ctx, gcl, b);
                 if (b.qc_bgl_code && b.qc_bgl_code !== '') {
                     gcl.qc_bgl_code = gcl.qc_bgl_code.concat(b.qc_bgl_code.split(';'));
                 }
             } else if (gatherOther) {
-                this._gatherTpField(other, b);
+                this._gatherTpField(ctx, other, b);
             }
         }
         if (gatherOther) gclBills.push(other);