|
@@ -1289,7 +1289,8 @@ function _checkAndSetSignatureCache(pageData, signKeyArr, signPathArr, roleRel,
|
|
|
for (const role of chkRoles) {
|
|
|
if (signatureCell.signature_name === role.signature_name) {
|
|
|
if (!(role.signature_name.indexOf(JV.SIGNATURE_NAME_DUMMY) < 0 && role.sign_output.indexOf('normal_sign') < 0)) {
|
|
|
- if (!checkAudit || role.signature_name.indexOf(JV.SIGNATURE_NAME_DUMMY) >= 0 || _chkIfAudit(role)) {
|
|
|
+ if (!checkAudit || role.signature_name.indexOf(JV.SIGNATURE_NAME_DUMMY) >= 0 || rptSignatureHelper._chkIfAudit(role)) {
|
|
|
+ // if (!checkAudit || role.signature_name.indexOf(JV.SIGNATURE_NAME_DUMMY) >= 0 || _chkIfAudit(role)) {
|
|
|
// 如果签名但用户并没有选择显示签名,则不输出!
|
|
|
if (signatureCell.isStamp) {
|
|
|
//签章不能用role的图片!!!
|
|
@@ -1356,37 +1357,6 @@ function _checkAndSetSignatureCache(pageData, signKeyArr, signPathArr, roleRel,
|
|
|
return rst;
|
|
|
}
|
|
|
|
|
|
-function _chkIfAudit(role_rel) {
|
|
|
- // STAGE_AUDIT, STAGE_LIST 已在index.ejs定义
|
|
|
- let rst = false;
|
|
|
- for (const stg_audit of STAGE_AUDIT) {
|
|
|
- if (role_rel.acc_id === stg_audit.aid) {
|
|
|
- if (stg_audit.status === 3) {
|
|
|
- rst = true;
|
|
|
- } else {
|
|
|
- rst = false;
|
|
|
- }
|
|
|
- // break; //因为实际业务中会有反复,所以就不break了,一直判断,以最后一个为准
|
|
|
- }
|
|
|
- }
|
|
|
- if (!rst) {
|
|
|
- // 还有原报需要检测
|
|
|
- for (const stg_ort_rpt of STAGE_LIST) {
|
|
|
- if (role_rel.acc_id === stg_ort_rpt.user_id) {
|
|
|
- if (stg_ort_rpt.status !== 1 && stg_ort_rpt.status !== 4) {
|
|
|
- // 只要不是待上报(1)、退回审批(4) 状态,都需要显示
|
|
|
- rst = true;
|
|
|
- } else {
|
|
|
- rst = false;
|
|
|
- }
|
|
|
- // break; //因为实际业务中会有反复,所以就不break了,一直判断,以最后一个为准
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- // rst = true; //测试,未来将屏蔽
|
|
|
- return rst;
|
|
|
-}
|
|
|
-
|
|
|
const excelExportUtil = {
|
|
|
exportExcel: async function(pageData, paperSize, fName, options, custSheetNames, custSheetMergeBands, roleRel, callback, checkAudit = false) {
|
|
|
const rptOptions = ({ singlePage: false, fileName: 'report' });
|