Преглед изворни кода

fix: 紧急rollback TASK 5597

Tony Kang пре 1 недеља
родитељ
комит
82d034f41f
1 измењених фајлова са 4 додато и 3 уклоњено
  1. 4 3
      app/reports/rpt_component/jpc_flow_tab.js

+ 4 - 3
app/reports/rpt_component/jpc_flow_tab.js

@@ -1176,7 +1176,7 @@ JpcFlowTabSrv.prototype.createNew = function() {
         //     假如:第一列的前3个数据(1、2、3)是相同的,第二列中第2、3、4行数据相同,那么第二列只能合并2、3行的数据,不能合并到第四行
         //     同理如此类推第三列...n列
         // 另:要考虑紧密输出情况,需要重新拆分数据
-        const regSplit = new RegExp('\\|', 'g');
+        // const regSplit = new RegExp('\\|', 'g');
         const _splitValues = function(oCell) {
             // JpcFieldHelper.setValue(data_field, theRecIdx, value);
             const values = (typeof oCell.Value === 'string') ? oCell.Value.split('|') : [oCell.Value];
@@ -1314,14 +1314,15 @@ JpcFlowTabSrv.prototype.createNew = function() {
                             if (preCell.Value === '') {
                                 preCell = rstPageCells[cacheObj.hCache[hStr][cIdx]];
                             } else {
-                                if ((preCell.Value || ' ').replace(regSplit, '') === (rstPageCells[cacheObj.hCache[hStr][cIdx]].Value || '  ').replace(regSplit, '')) {
+                                if (preCell.Value === rstPageCells[cacheObj.hCache[hStr][cIdx]].Value) {
+                                // if ((preCell.Value || ' ').replace(regSplit, '') === (rstPageCells[cacheObj.hCache[hStr][cIdx]].Value || '  ').replace(regSplit, '')) {
                                     if (preCell[JV.PROP_AREA][JV.PROP_RIGHT] < rstPageCells[cacheObj.hCache[hStr][cIdx]][JV.PROP_AREA][JV.PROP_RIGHT]) {
                                         preCell[JV.PROP_AREA][JV.PROP_RIGHT] = rstPageCells[cacheObj.hCache[hStr][cIdx]][JV.PROP_AREA][JV.PROP_RIGHT];
                                     } else {
                                         preCell[JV.PROP_AREA][JV.PROP_LEFT] = rstPageCells[cacheObj.hCache[hStr][cIdx]][JV.PROP_AREA][JV.PROP_LEFT];
                                     }
                                     removeCellIds.push(cacheObj.hCache[hStr][cIdx]);
-                                    preCell.Value = (preCell.Value || '').replace(regSplit, '');
+                                    // preCell.Value = (preCell.Value || '').replace(regSplit, '');
                                 } else {
                                     preCell = rstPageCells[cacheObj.hCache[hStr][cIdx]];
                                 }