diff --git a/Application/Admin/Controller/CompanyStatementPoolController.class.php b/Application/Admin/Controller/CompanyStatementPoolController.class.php index cd69965b1..3f2f439c2 100644 --- a/Application/Admin/Controller/CompanyStatementPoolController.class.php +++ b/Application/Admin/Controller/CompanyStatementPoolController.class.php @@ -2157,6 +2157,14 @@ class CompanyStatementPoolController extends ThinkController $optist = array_diff($optist, ["cancelPool","reCount"]); } + if ($info['withdraw_type'] == "特殊补点") { + $optist = array_diff($optist, ["cancelPool"]); + + if ($info['verify_status'] == '0') { + array_push($optist,"cancelPool"); + } + } + if ($info['withdraw_type'] == "特殊补点") { $optist = array_diff($optist, ["reCount"]); if ($info['company_type'] == 2 && $info['verify_status'] == '0') { @@ -2169,14 +2177,6 @@ class CompanyStatementPoolController extends ThinkController array_push($optist,"editPool"); } - if ($info['withdraw_type'] == "特殊补点") { - $optist = array_diff($optist, ["cancelPool"]); - - if ($info['verify_status'] == '0') { - array_push($optist,"cancelPool"); - } - } - if(empty($info['ext_file'])){ //未上传凭证 $optist = array_diff($optist, ["viewVoucher", "editVoucher"]); diff --git a/Application/Admin/View/CompanyStatement/viewSpecialComplement.html b/Application/Admin/View/CompanyStatement/viewSpecialComplement.html index 2fa9cef34..020731214 100644 --- a/Application/Admin/View/CompanyStatement/viewSpecialComplement.html +++ b/Application/Admin/View/CompanyStatement/viewSpecialComplement.html @@ -637,46 +637,7 @@ }) }); - function checkInput() { - $(".ali_user").off("blur"); - $(".ali_account").off("blur"); - $(".ali_user").bind("blur", function(){ - var name = $(this).val(); - - if(!(\/^[\\u4e00-\\u9fa5]+$\/i.test(name))&&name.length>0){ - $(this).val(""); - layer.msg('支付宝真实姓名错误'); - } - - if (name.length>10) { - $(this).val(name.substr(0,10)); - layer.msg('字符输入超过10位'); - return; - } - }); - - - $(".ali_account").bind("blur", function(){ - var strEmail = $(this).val(); - - var flagPhone=\/^(\\d{11})$\/; - - var flagEmail = \/^\\w+((-\\w+)|(\\.\\w+))*\\@[A-Za-z0-9]+((\\.|-)[A-Za-z0-9]+)*\\.[A-Za-z0-9]+$\/; - - - if (strEmail.length>50) { - $(this).val(""); - layer.msg('字符输入超过50位'); - return; - } - - if(flagPhone.test(strEmail)==false && flagEmail.test(strEmail) == false && strEmail.length>0) { - $(this).val(""); - layer.msg('支付宝账号格式不正确'); - } - }); - } function isPaymentChange() { $(".is_payment").off("change"); @@ -778,15 +739,15 @@ "" + "" +"" + "" + - "" + + "" + "" + "" + "" + - "" + + "" + "" + "" + "" + - "" + + "" + ""; var next_company = $(this).parent().parent().next().find(".company_id").text(); @@ -796,7 +757,7 @@ $(this).parent().parent().next().prepend(html); $(this).parent().parent().next().find(".delete").parent().before(payinfo); isPaymentChange(); - checkInput(); + checkInput(); } } else { @@ -818,6 +779,47 @@ } + function checkInput() { + $(".ali_user").off("blur"); + $(".ali_account").off("blur"); + + $(".ali_user").bind("blur", function(){ + var name = $(this).val(); + + if(!(\/^[\\u4e00-\\u9fa5]+$\/i.test(name))&&name.length>0){ + $(this).val(""); + layer.msg('支付宝真实姓名错误'); + } + + if (name.length>10) { + $(this).val(name.substr(0,10)); + layer.msg('字符输入超过10位'); + return; + } + }); + + + $(".ali_account").bind("blur", function(){ + var strEmail = $(this).val(); + + var flagPhone=\/^(\\d{11})$\/; + + var flagEmail = \/^\\w+((-\\w+)|(\\.\\w+))*\\@[A-Za-z0-9]+((\\.|-)[A-Za-z0-9]+)*\\.[A-Za-z0-9]+$\/; + + + if (strEmail.length>50) { + $(this).val(""); + layer.msg('字符输入超过50位'); + return; + } + + if(flagPhone.test(strEmail)==false && flagEmail.test(strEmail) == false && strEmail.length>0) { + $(this).val(""); + layer.msg('支付宝账号格式不正确'); + } + }); + } + var company_id = "{$_GET['company_id']??0}"; $("#company_type").on("change",function(){ var val = $(this).find("option:selected").val();