|
|
@@ -85,7 +85,7 @@ JpcFlowTabSrv.prototype.createNew = function(){
|
|
|
if (segAutoHeightInfo[segIdx].length > startRecIdx + vi) {
|
|
|
couldBreak = private_addAutoHeightPageValue(vi);
|
|
|
// if (couldBreak) break;
|
|
|
- } else if (vIdx.length < maxRecPerPage) {
|
|
|
+ } else if (vIdx.length > 0 && vIdx.length < maxRecPerPage) {
|
|
|
vIdx.push([followMode, JV.DISPLAY_VAL_TYPE_NORMAL, JV.BLANK_VALUE_INDEX]);
|
|
|
}
|
|
|
} else {
|
|
|
@@ -637,7 +637,7 @@ JpcFlowTabSrv.prototype.createNew = function(){
|
|
|
if (currentRecAmt + accAutoHeightAmt + adHocAutoHeightAmt + maxRowRec >= ttlSegRecAmt) {
|
|
|
pageStatus[JV.STATUS_SEGMENT_END] = true;
|
|
|
private_resetBandArea();
|
|
|
- let hasAdHocRow = !JpcFlowTabHelper.chkSegEnd(bands, rptTpl, ttlSegRecAmt, currentRecAmt + adHocAutoHeightAmt, maxRowRec, me.isEx);
|
|
|
+ let hasAdHocRow = !JpcFlowTabHelper.chkSegEnd(bands, rptTpl, ttlSegRecAmt, currentRecAmt + accAutoHeightAmt + adHocAutoHeightAmt, maxRowRec, me.isEx);
|
|
|
if (hasAdHocRow) {
|
|
|
//add page info(pre segment end)
|
|
|
pageStatus[JV.STATUS_SEGMENT_END] = false;
|
|
|
@@ -655,7 +655,7 @@ JpcFlowTabSrv.prototype.createNew = function(){
|
|
|
if (currentRecAmt + accAutoHeightAmt + adHocAutoHeightAmt + maxRowRec >= ttlSegRecAmt) {
|
|
|
pageStatus[JV.STATUS_SEGMENT_END] = true;
|
|
|
private_resetBandArea();
|
|
|
- let hasAdHocRow = !JpcFlowTabHelper.chkSegEnd(bands, rptTpl, ttlSegRecAmt, currentRecAmt + adHocAutoHeightAmt, maxRowRec, me.isEx);
|
|
|
+ let hasAdHocRow = !JpcFlowTabHelper.chkSegEnd(bands, rptTpl, ttlSegRecAmt, currentRecAmt + accAutoHeightAmt + adHocAutoHeightAmt, maxRowRec, me.isEx);
|
|
|
if (hasAdHocRow) {
|
|
|
//add page info(pre segment end)
|
|
|
pageStatus[JV.STATUS_SEGMENT_END] = false;
|
|
|
@@ -668,7 +668,8 @@ JpcFlowTabSrv.prototype.createNew = function(){
|
|
|
//纯 followTabEx 数据啦
|
|
|
private_addPage(segIdx, null, true, false, -1);
|
|
|
} else {
|
|
|
- private_addPage(segIdx, grpSeqInfo, false, true, ttlSegRecAmtNormal);
|
|
|
+ let splitPoint = ttlSegRecAmtNormal - handledRowAmt ;
|
|
|
+ private_addPage(segIdx, grpSeqInfo, false, true, splitPoint);
|
|
|
}
|
|
|
} else {
|
|
|
//在这里要考虑如果有多页正常的流水数据情况,那么就得考虑这页有多少条普通流水记录,不应该一刀切地用ttlSegRecAmtNormal
|