From e94994993a7dec981eb57a7deb4383e1faa5ed0d Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Mon, 31 Aug 2020 10:44:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=B9=E6=AE=8A=E8=A1=A5=E7=82=B9=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E9=87=8D=E7=AE=97=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/CompanyStatementController.class.php | 12 +++++++++++- Application/Admin/View/CompanyStatement/lists.html | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Application/Admin/Controller/CompanyStatementController.class.php b/Application/Admin/Controller/CompanyStatementController.class.php index e1a57619b..a7984ef22 100644 --- a/Application/Admin/Controller/CompanyStatementController.class.php +++ b/Application/Admin/Controller/CompanyStatementController.class.php @@ -447,7 +447,17 @@ class CompanyStatementController extends ThinkController { if(!isset($_REQUEST['ids'])) $this->error("参数错误"); $ids = $_REQUEST['ids']; - $dbres = $this->DBModel->field("id,verify_status,verify_log")->where("id in ({$ids})")->select(); + $dbres = $this->DBModel->field("id,verify_status,verify_log,withdraw_type")->where("id in ({$ids})")->select(); + foreach ($dbres as $key => $value) { + if($value['withdraw_type'] == 3) { + $this->ajaxReturn(array( + 'status' => 0, + "info"=>"特殊补点无法重算" + )); + } + } + + foreach($dbres as $k=>&$v){ // if(in_array($v['verify_status'],[3,4])) continue; //合作方确认后不进行重算 //重算 diff --git a/Application/Admin/View/CompanyStatement/lists.html b/Application/Admin/View/CompanyStatement/lists.html index bfb312e15..efbb76f37 100644 --- a/Application/Admin/View/CompanyStatement/lists.html +++ b/Application/Admin/View/CompanyStatement/lists.html @@ -478,7 +478,7 @@ var opst ="[审批通过]"; var status = [1]; }else if(id=="updateStatement"){ - var opname = "重算金额"; + var opname = "重算金额(特殊补点无法重算)"; var opurl = "{:U('updateStatement')}"; var opst ="[汇总撤销,管理员审批拒绝,未进行审批,管理员审批通过]"; var status = [-3,-2,-1,0,1];