浏览代码

计算程序取费率补漏

TonyKang 5 年之前
父节点
当前提交
60aa10bfb6
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      modules/reports/util/rpt_construct_data_util.js

+ 5 - 1
modules/reports/util/rpt_construct_data_util.js

@@ -1430,7 +1430,11 @@ function ext_getCalcProperty(templateIDs, calcItemKey, calcItemKeyVal, calcItemR
         if (calcTplObj) {
             for (let calcItem of calcTplObj.calcItems) {
                 if (calcItem[calcItemKey] === calcItemKeyVal) {
-                    rst.push(calcItem[calcItemRstKey]);
+                    if (calcItem[calcItemRstKey] !== undefined && calcItem[calcItemRstKey] !== null) {
+                        rst.push(calcItem[calcItemRstKey]);
+                    } else {
+                        rst.push(calcItem['feeRate']); //业务特点,如果上述key没有值的话,直接取‘feeRate’的value,省的去改指标定义了
+                    }
                     break;
                 }
             }