From 6dce14520ed68048627fee15bda9c8db3c7d60c0 Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Fri, 5 Feb 2021 15:51:36 +0800 Subject: [PATCH] =?UTF-8?q?2.7=E5=8F=B7=E5=8A=9F=E8=83=BD=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CompanyStatementPoolController.class.php | 16 ++-- .../viewSpecialComplement.html | 88 ++++++++++--------- 2 files changed, 53 insertions(+), 51 deletions(-) diff --git a/Application/Admin/Controller/CompanyStatementPoolController.class.php b/Application/Admin/Controller/CompanyStatementPoolController.class.php index 377a00c0a..1fdfd90d7 100644 --- a/Application/Admin/Controller/CompanyStatementPoolController.class.php +++ b/Application/Admin/Controller/CompanyStatementPoolController.class.php @@ -2148,6 +2148,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') { @@ -2160,14 +2168,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();