From 5bdc0e6f6ee745a16d707a35ce4ae2ac9f506214 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Mon, 23 Nov 2020 16:27:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=B1=87=E6=80=BB=E6=96=B9?= =?UTF-8?q?=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CompanyStatementPoolController.class.php | 25 ++++++++++++------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/Application/Admin/Controller/CompanyStatementPoolController.class.php b/Application/Admin/Controller/CompanyStatementPoolController.class.php index 631db6259..1cb535800 100644 --- a/Application/Admin/Controller/CompanyStatementPoolController.class.php +++ b/Application/Admin/Controller/CompanyStatementPoolController.class.php @@ -112,7 +112,7 @@ class CompanyStatementPoolController extends ThinkController $data = $this->DBModel ->field("*") ->where($map) - ->order("FIELD(verify_status,0,1,-1,-2,2,3,4,5),id desc") + ->order("id desc") ->page($page,$row)->select(); foreach($data as $k => &$v) { @@ -991,7 +991,7 @@ class CompanyStatementPoolController extends ThinkController //审批通过 public function verifyAgree(){ - $this->setVerifyStatus([1,6],1,"verify"); + $this->setVerifyStatus([1,6],2,"verify"); } public function verifyRefuse(){ $this->setVerifyStatus([1,6],-1,"verify"); @@ -1121,6 +1121,7 @@ class CompanyStatementPoolController extends ThinkController public function editPayment(){ if(!isset($_REQUEST['info'])) $this->error("参数错误"); $info = $_REQUEST['info']; + $pool_id = $_REQUEST['pool_id']; $CompanyInfo = M("company_statement_info","tab_"); //循环保存 foreach($info as $k=>$v){ @@ -1148,12 +1149,15 @@ class CompanyStatementPoolController extends ThinkController } $CompanyInfo->save($savedata); } - $this->ajaxReturn(array( - 'status' => 1, - "info"=>"打款信息编辑成功" - )); - //修改状态 - // $this->setOneVerifyStatus(2,"payment",$_REQUEST['pool_id'],$mgs = "打款信息确认"); + $verify_status = $this->DBModel->field("verify_status")->where("id = {$pool_id}")->find()['verify_status']; + if( $verify_status == 6){ + $this->setOneVerifyStatus(1,"payment",$_REQUEST['pool_id'],$mgs = "打款信息确认"); + }else{ + $this->ajaxReturn(array( + 'status' => 1, + "info"=>"打款信息编辑成功" + )); + } } //查看打款信息 public function viewPayment(){ @@ -1573,6 +1577,9 @@ class CompanyStatementPoolController extends ThinkController case '5': $optist = ["viewPool","addRemark","viewRemark","editRemark","reCount","cancelPool"]; break; + case '6': + $optist = ["viewPool","addRemark","viewRemark","editRemark","reCount","cancelPool","setPayment"]; + break; default: break; } @@ -1600,7 +1607,7 @@ class CompanyStatementPoolController extends ThinkController $optist = ['viewPool','cancelPool','editSpecialPuPool']; } - if($info['company_type'] == 2 && $info['verify_status'] == '0'&&$info['withdraw_type'] != "特殊补点") { + if($info['company_type'] == 2 && ($info['verify_status'] == '6' || $info['verify_status'] == '0') &&$info['withdraw_type'] != "特殊补点") { array_push($optist,"editPool"); }