From 041006e1b4be9f824ca2c0e0a6d2ea49080e66ef Mon Sep 17 00:00:00 2001 From: zyx Date: Thu, 1 Oct 2020 15:57:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B1=87=E6=80=BB=E7=8A=B6=E6=80=81=E7=9A=84?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AggregateFinanceStatementController.class.php | 6 +++++- .../Admin/View/AggregateFinanceStatement/editStatement.html | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Application/Admin/Controller/AggregateFinanceStatementController.class.php b/Application/Admin/Controller/AggregateFinanceStatementController.class.php index 202a0055f..2fb7f7874 100644 --- a/Application/Admin/Controller/AggregateFinanceStatementController.class.php +++ b/Application/Admin/Controller/AggregateFinanceStatementController.class.php @@ -190,6 +190,10 @@ class AggregateFinanceStatementController extends ThinkController $this->error("参数错误"); } + if (!$_REQUEST['first_partner_id']) { + $this->error("编辑失败,聚合公司绑定关系未添加,请添加公司绑定关系后重算"); + } + if ($_REQUEST['is_edit']) { $verify_status = 0; } else { @@ -453,7 +457,7 @@ class AggregateFinanceStatementController extends ThinkController if (!$value['first_party_info']) { $this->ajaxReturn(array( 'status' => 1, - "info"=>"审批失败,存在没有绑定关系的对账单,请绑定关系后重算" + "info"=>"审批失败,聚合公司绑定关系未添加,请添加公司绑定关系后重算" )); } diff --git a/Application/Admin/View/AggregateFinanceStatement/editStatement.html b/Application/Admin/View/AggregateFinanceStatement/editStatement.html index 0a4759a80..309cef1f3 100644 --- a/Application/Admin/View/AggregateFinanceStatement/editStatement.html +++ b/Application/Admin/View/AggregateFinanceStatement/editStatement.html @@ -684,7 +684,7 @@ window.parent.reload(); },350); }else{ - alert("添加失败,请联系管理员") + alert(data.info) } }); //发送添加请求