Bläddra i källkod

签章改进(支持个人、公司签章同时选择)

Tony Kang 3 år sedan
förälder
incheckning
1343664bac
1 ändrade filer med 13 tillägg och 12 borttagningar
  1. 13 12
      app/public/report/js/rpt_signature.js

+ 13 - 12
app/public/report/js/rpt_signature.js

@@ -313,7 +313,8 @@ let rptSignatureHelper = {
         elementsStrArr.push(`           <label class="form-check-label" for="${idSuffixStr}_sign1">签字</label>`);
         elementsStrArr.push('       </div>');
         const hasIndividualStamp = (userAcc.stamp_path && userAcc.stamp_path !== ''); //用户账号的stamp_path是属于用户自己的私章,不是公司章
-        let chkType = hasIndividualStamp ? `radio` : 'checkbox';
+        // let chkType = hasIndividualStamp ? `radio` : 'checkbox';
+        const chkType = 'checkbox';
         let rdoNameStr = `dtp_${role_rel.signature_name}_${rptSignatureHelper.currentSelectedESignParentDivId}`;
         if (hasIndividualStamp) {
             elementsStrArr.push('       <div class="form-check form-check-inline mx-1">');
@@ -845,17 +846,17 @@ let rptSignatureHelper = {
                         roleRel.sign_output.splice(idx, 1);
                     }
                 }
-                if (chkStr === COMPANY_SIGN_STR) {
-                    let idx = roleRel.sign_output.indexOf(PRIVATE_SIGN_STR);
-                    if (idx >= 0) {
-                        roleRel.sign_output.splice(idx, 1);
-                    }
-                } else if (chkStr === PRIVATE_SIGN_STR) {
-                    let idx = roleRel.sign_output.indexOf(COMPANY_SIGN_STR);
-                    if (idx >= 0) {
-                        roleRel.sign_output.splice(idx, 1);
-                    }
-                }
+                // if (chkStr === COMPANY_SIGN_STR) {
+                //     let idx = roleRel.sign_output.indexOf(PRIVATE_SIGN_STR);
+                //     if (idx >= 0) {
+                //         roleRel.sign_output.splice(idx, 1);
+                //     }
+                // } else if (chkStr === PRIVATE_SIGN_STR) {
+                //     let idx = roleRel.sign_output.indexOf(COMPANY_SIGN_STR);
+                //     if (idx >= 0) {
+                //         roleRel.sign_output.splice(idx, 1);
+                //     }
+                // }
                 break;
             }
         }