From ec3491943b42f1aa3f80940322f1070ee596c3a5 Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Tue, 8 Dec 2020 10:57:06 +0800 Subject: [PATCH] =?UTF-8?q?12=E6=9C=88=E5=8A=9F=E8=83=BD=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CompanyStatementPoolController.class.php | 17 +++++++++++++++++ Application/Payment/View/Payment/edit.html | 10 ++++++++++ 2 files changed, 27 insertions(+) diff --git a/Application/Admin/Controller/CompanyStatementPoolController.class.php b/Application/Admin/Controller/CompanyStatementPoolController.class.php index ec2124064..c545dcbce 100644 --- a/Application/Admin/Controller/CompanyStatementPoolController.class.php +++ b/Application/Admin/Controller/CompanyStatementPoolController.class.php @@ -1022,6 +1022,13 @@ class CompanyStatementPoolController extends ThinkController $ids = $_REQUEST['ids']; $dbres = $this->DBModel->field("id,verify_status,verify_log")->where("id in ({$ids})")->select(); + if ($this->checkStatementPay($ids)) { + $this->ajaxReturn(array( + 'status' => 0, + "info"=>"已有打款的详单,审批撤回失败" + )); + } + foreach($dbres as $k=>&$v){ $VerifyStatus = $v['verify_status']; if(!in_array($VerifyStatus,[-1,1,2])) continue; @@ -1044,6 +1051,16 @@ class CompanyStatementPoolController extends ThinkController )); } + public function checkStatementPay($ids) { + $dbres = $this->DBModel->field("id,verify_status,verify_log")->where("id in ({$ids})")->select(); + foreach ($dbres as $k=>$v) { + if ($v['verify_status'] == 3) { + return true; + } + } + return false; + } + public function delPayInfo($id) { $company_statement_info = M("company_statement_info","tab_")->field("id")->where("pool_id={$id}")->select(); diff --git a/Application/Payment/View/Payment/edit.html b/Application/Payment/View/Payment/edit.html index 1cfc507a7..c21a77a44 100644 --- a/Application/Payment/View/Payment/edit.html +++ b/Application/Payment/View/Payment/edit.html @@ -55,6 +55,11 @@ highlight_subnav('{:U('Payment/memberList')}'); $(function(){ + var is_change = 0; + + $("#name,#mobile").change(function () { + is_change = 1; + }); $("#submit").click(function () { @@ -64,6 +69,11 @@ var url = "{:U('edit')}"; var data = {id:id,name:name,mobile:mobile}; + if (is_change == 0) { + layer.msg("姓名、电话未做编辑,请编辑后提交"); + return; + } + if (id != 1) { publicAjax(url,data,function (data) { layer.msg(data.msg);