|
@@ -1662,7 +1662,7 @@ function mergeTextSignature(isTxtSignature, status, pageData, singleRoleRel, rpt
|
|
|
let needTransferText = true;
|
|
|
for (const role_rel of roleRelContent) {
|
|
|
if (sCell.signature_name === role_rel.signature_name) {
|
|
|
- if (!checkAudit || _chkIfAudit(role_rel, stgAudit, stageList)) {
|
|
|
+ if (!checkAudit || _chkIfAudit(role_rel, stgAudit || [], stageList || [])) {
|
|
|
sCell.Value = role_rel.user_name; // 只有审核通过了才需要文本签名内容
|
|
|
if (role_rel.sign_output && role_rel.sign_output.indexOf(NORMAL_SIGN_STR) < 0) {
|
|
|
// 用户选择不签名,则不迁移
|
|
@@ -1720,7 +1720,7 @@ function mergeTextSignature(isTxtSignature, status, pageData, singleRoleRel, rpt
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-function _chkIfAudit(role_rel, STAGE_AUDIT, STAGE_LIST) {
|
|
|
+function _chkIfAudit(role_rel, STAGE_AUDIT = [], STAGE_LIST = []) {
|
|
|
let rst = false;
|
|
|
for (const stg_audit of STAGE_AUDIT) {
|
|
|
if (role_rel.acc_id === stg_audit.aid) {
|
|
@@ -1839,7 +1839,7 @@ async function mergeStampSignature(ctx, status, pageData, singleRoleRel, rpt_ids
|
|
|
const sCell = page.signature_cells[scIdx];
|
|
|
for (const role_rel of roleRelContent) {
|
|
|
if (sCell.signature_name === role_rel.signature_name) {
|
|
|
- if (!checkAudit || _chkIfAudit(role_rel, stgAudit, stageList)) {
|
|
|
+ if (!checkAudit || _chkIfAudit(role_rel, stgAudit || [], stageList || [])) {
|
|
|
if (Array.isArray(role_rel.sign_output) && role_rel.sign_output.length > 0) {
|
|
|
for (const signType of role_rel.sign_output) {
|
|
|
switch (signType) {
|