|
@@ -1173,21 +1173,24 @@ function resetTextSignature(pageData, checkAudit = false) {
|
|
|
}
|
|
|
} else {
|
|
|
// 要创建新的文本签名cell
|
|
|
- for (let role of ROLE_REL_LIST) {
|
|
|
- if (!checkAudit || rptSignatureHelper._chkIfAudit(role)) {
|
|
|
- if (sCell.signature_name === role.signature_name && role.sign_output && role.sign_output.indexOf(NORMAL_SIGN_STR) >= 0) {
|
|
|
- const newCell = {
|
|
|
- font: 'Footer',
|
|
|
- control: sCell.control,
|
|
|
- style: sCell.style,
|
|
|
- Value: role.user_name,
|
|
|
- area: { Left: sCell.area.Left, Right: sCell.area.Right, Top: sCell.area.Top, Bottom: sCell.area.Bottom },
|
|
|
- };
|
|
|
- page.cells.push(newCell);
|
|
|
- break;
|
|
|
+ const newCell = {
|
|
|
+ font: 'Footer',
|
|
|
+ control: sCell.control,
|
|
|
+ style: sCell.style,
|
|
|
+ Value: '',
|
|
|
+ area: { Left: sCell.area.Left, Right: sCell.area.Right, Top: sCell.area.Top, Bottom: sCell.area.Bottom },
|
|
|
+ };
|
|
|
+ if (ROLE_REL_LIST) {
|
|
|
+ for (let role of ROLE_REL_LIST) {
|
|
|
+ if (!checkAudit || rptSignatureHelper._chkIfAudit(role)) {
|
|
|
+ if (sCell.signature_name === role.signature_name && role.sign_output && role.sign_output.indexOf(NORMAL_SIGN_STR) >= 0) {
|
|
|
+ newCell.Value = role.user_name;
|
|
|
+ break;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ page.cells.push(newCell); // 怎么也要有这个,哪怕没有文本也要输出,补边框用的
|
|
|
}
|
|
|
}
|
|
|
}
|