Преглед на файлове

截至日期与开始日期一致

TonyKang преди 4 години
родител
ревизия
1a4c8668d5
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      app/reports/util/rpt_calculation_data_util.js

+ 3 - 0
app/reports/util/rpt_calculation_data_util.js

@@ -945,6 +945,9 @@ function ext_getSplitProperty(dataKey, propKey, splitChar, index, dftValue) {
             const splitArr = rst[idx].split(splitChar);
             if (splitArr.length > index) {
                 rst[idx] = splitArr[index];
+                if (rst[idx].trim() === '' && index === 1) {
+                    rst[idx] = splitArr[0]; // 把业务带进来了 !_!
+                }
             } else {
                 rst[idx] = dftValue;
             }