From e7501be7c3453c254b2e929feefc0d2d773e3456 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Tue, 24 Nov 2020 15:46:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AE=A1=E6=A0=B8=E6=B5=81?= =?UTF-8?q?=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CompanyStatementPoolController.class.php | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/Application/Admin/Controller/CompanyStatementPoolController.class.php b/Application/Admin/Controller/CompanyStatementPoolController.class.php index c16ff2776..9b707e6fe 100644 --- a/Application/Admin/Controller/CompanyStatementPoolController.class.php +++ b/Application/Admin/Controller/CompanyStatementPoolController.class.php @@ -170,7 +170,7 @@ class CompanyStatementPoolController extends ThinkController }elseif($v['verify_status'] == 1){ $ts = "打款信息确认"; }elseif($v['verify_status'] == 2){ - $ts = "打款信息确认"; + $ts = "待打款"; }elseif($v['verify_status'] == 3){ $ts = "打款中"; }elseif($v['verify_status'] == 4){ @@ -995,7 +995,8 @@ class CompanyStatementPoolController extends ThinkController //审批通过 public function verifyAgree(){ - $this->setVerifyStatus([1,6],2,"verify"); + $this->setVerifyStatus(6,1,"payment",false); + $this->setVerifyStatus(1,2,"verify"); } public function verifyRefuse(){ $this->setVerifyStatus([1,6],-1,"verify"); @@ -1052,7 +1053,7 @@ class CompanyStatementPoolController extends ThinkController } - protected function setVerifyStatus($old_status,$change_status,$op_pre) + protected function setVerifyStatus($old_status,$change_status,$op_pre,$ajaxreturn=true) { if(!isset($_REQUEST['ids'])) $this->error("参数错误"); $ids = $_REQUEST['ids']; @@ -1073,10 +1074,13 @@ class CompanyStatementPoolController extends ThinkController $opname = $this->VerifyStatus[$change_status]; addOperationLog(['op_type'=>1,'key'=>$v['id'],"op_name"=>$opname,'url'=>U('lists')]); } - $this->ajaxReturn(array( - 'status' => 1, - "info"=>$opname."成功" - )); + if($ajaxreturn){ + $this->ajaxReturn(array( + 'status' => 1, + "info"=>$opname."成功" + )); + } + } protected function setOneVerifyStatus($change_status,$op_pre,$id,$mgs = "操作") @@ -1564,7 +1568,7 @@ class CompanyStatementPoolController extends ThinkController case '-2': case '-1': case '0': - $optist = ["viewPool","reCount","cancelPool","setPayment"]; + $optist = ["viewPool","reCount","cancelPool"]; break; case '1': $optist = ["viewPool","addRemark","viewRemark","editRemark","viewVoucher","editVoucher","uploadVoucher","editPayment","setUlPayment"]; @@ -1608,7 +1612,7 @@ class CompanyStatementPoolController extends ThinkController } if ($info['withdraw_type'] == "特殊补点") { - $optist = ['viewPool','cancelPool']; + $optist = array_diff($optist, ["reCount"]); if ($info['company_type'] == 2 && $info['verify_status'] == '0') { array_push($optist,'editSpecialPuPool'); }