|
|
@@ -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]];
|
|
|
}
|