|
@@ -58,6 +58,10 @@ let JpcJsPDFHelper = {
|
|
|
}
|
|
|
|
|
|
let newPageMergeBand = private_getIniPageMergeBorder(pageObj[JV.BAND_PROP_MERGE_BAND]);
|
|
|
+ if (current_stage_status === 3) {
|
|
|
+ rptSignatureHelper.mergeSignDate(pageObj, signatureRelArr);
|
|
|
+ // rptSignatureHelper.mergeSignature(pageObj, signatureRelArr); // 这里merge的意义不大
|
|
|
+ }
|
|
|
// let signatureCounter = {"allAmt": 0, "picAmt": 0};
|
|
|
if (pageObj && pageObj.items.length > 0 ) {
|
|
|
for(let i = 0; i < pageObj.items.length; i++) {
|
|
@@ -86,7 +90,9 @@ let JpcJsPDFHelper = {
|
|
|
}
|
|
|
// 计量有电子签名,要单独处理
|
|
|
for (let cell of page.signature_cells) {
|
|
|
- private_drawSignature(doc, ctx, cell, styles, controls, newPageMergeBand, signatureRelArr);
|
|
|
+ if (current_stage_status === 3) {
|
|
|
+ private_drawSignature(doc, ctx, cell, styles, controls, newPageMergeBand, signatureRelArr);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -128,19 +134,12 @@ let JpcJsPDFHelper = {
|
|
|
} else {
|
|
|
private_drawImage(doc, ctx, cell, control, cell.pic);
|
|
|
}
|
|
|
- //} else if (cell.path) {
|
|
|
} else {
|
|
|
// 导出PDF时,根本不需要判断cell.path是不是null or undefined
|
|
|
- let finded = false;
|
|
|
- for (const rtpSignRel of signatureRelArr) {
|
|
|
- if (!finded) {
|
|
|
- for (const signRel of rtpSignRel) {
|
|
|
- if (cell.signature_name === signRel.signature_name && signRel.sign_pic !== null && signRel.sign_pic !== undefined) {
|
|
|
- private_drawImage(doc, ctx, cell, control, signRel.sign_pic);
|
|
|
- finded = true;
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
+ for (const signRel of signatureRelArr) {
|
|
|
+ if (cell.signature_name === signRel.signature_name && signRel.sign_pic !== null && signRel.sign_pic !== undefined) {
|
|
|
+ private_drawImage(doc, ctx, cell, control, signRel.sign_pic);
|
|
|
+ break;
|
|
|
}
|
|
|
}
|
|
|
}
|