|
@@ -677,8 +677,16 @@ let rptArchiveObj = {
|
|
if (sCell.signature_name.indexOf('dummy_pic') < 0) {
|
|
if (sCell.signature_name.indexOf('dummy_pic') < 0) {
|
|
dtlSignCells.push(sCell);
|
|
dtlSignCells.push(sCell);
|
|
pageItem.signature_cells.splice(sCellIdx, 1);
|
|
pageItem.signature_cells.splice(sCellIdx, 1);
|
|
|
|
+ if (PAGE_SHOW.closeArchiveSignature) {
|
|
|
|
+ // 如果还有closeArchiveSignature标记,那么不显示文本文档(只是清除匹配cell的Value,后续需要恢复)
|
|
|
|
+ const cCell = pageItem.cells.find(cell => cell.area.Left === sCell.area.Left && cell.area.Top === sCell.area.Top && cell.Value === sCell.Value);
|
|
|
|
+ if (cCell) {
|
|
|
|
+ txtSignCells.push({bkCell: cCell, bkValue: cCell.Value});
|
|
|
|
+ cCell.Value = '';
|
|
|
|
+ }
|
|
|
|
+ }
|
|
} else if (PAGE_SHOW.closeArchiveSignature) {
|
|
} else if (PAGE_SHOW.closeArchiveSignature) {
|
|
- // 如果还有closeArchiveSignature标记,那么不显示文本文档(需要删除cells目录下的匹配cell(Value不为空串))
|
|
|
|
|
|
+ // 这个跟上面的判断属性不同,是orgArea(签章的)
|
|
for (let cIdx = pageItem.cells.length - 1; cIdx >= 0; cIdx--) {
|
|
for (let cIdx = pageItem.cells.length - 1; cIdx >= 0; cIdx--) {
|
|
const cCell = pageItem.cells[cIdx];
|
|
const cCell = pageItem.cells[cIdx];
|
|
if (cCell.area.Left === sCell.orgArea.Left && cCell.area.Right === sCell.orgArea.Right &&
|
|
if (cCell.area.Left === sCell.orgArea.Left && cCell.area.Right === sCell.orgArea.Right &&
|