From 0c0d59dd4330bee04911bd99db9eb5e1319d904b Mon Sep 17 00:00:00 2001 From: chenxiaojun <956334972@qq.com> Date: Thu, 9 Jan 2020 09:45:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A2=E5=8A=A1=E7=AE=A1=E7=90=86--=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Home/Controller/FinanceController.class.php | 11 ++++++++++- .../Home/View/default/Finance/settlementDtl.html | 12 ++++++------ .../Home/View/default/Finance/withdrawRecord.html | 12 ++++++++++++ 3 files changed, 28 insertions(+), 7 deletions(-) diff --git a/Application/Home/Controller/FinanceController.class.php b/Application/Home/Controller/FinanceController.class.php index 24015b034..cb7da8c13 100644 --- a/Application/Home/Controller/FinanceController.class.php +++ b/Application/Home/Controller/FinanceController.class.php @@ -2,6 +2,7 @@ namespace Home\Controller; +use Admin\Model\WithdrawModel; use Base\Model\Model; use OT\DataDictionary; use Base\Repository\PromoteRepository; @@ -395,6 +396,7 @@ class FinanceController extends BaseController $begTime = strtotime(date('Y-m-d', strtotime($initBegTime))); $endTime = strtotime(date('Y-m-d', strtotime($initEndTime))) + 3600 * 24; $status = ''; + $settlementType = intval(I('settlement_type', 0)); $parameter['p'] = $page; $parameter['row'] = $row; @@ -419,8 +421,11 @@ class FinanceController extends BaseController $map['status'] = $status; } } + if (!empty($settlementType)) { + $map['settlement_type'] = $settlementType; + } - $data = $model->field('id, widthdraw_number, create_time, settlement_begin_time, settlement_end_time, sum_money, status, respond, transfer_proof, op_id, op_type, last_op_id, last_op_type') + $data = $model->field('id, widthdraw_number, create_time, settlement_begin_time, settlement_end_time, sum_money, status, respond, transfer_proof, op_id, op_type, last_op_id, last_op_type, settlement_type') ->where($map) ->order('id desc') ->page($page, $row) @@ -439,6 +444,7 @@ class FinanceController extends BaseController $list['last_op_id'] = $this->getOpIdByType($list['last_op_id'], $list['last_op_type']); $list['op_type'] = getPromoteWithdrawOpType($list['op_type']); $list['last_op_type'] = getPromoteWithdrawOpType($list['last_op_type']); + $list['settlement_type_text'] = WithdrawModel::$settlementTypeList[$list['settlement_type']] ?? '未知'; switch ($list['status']) { case -2: $list['status_name'] = '' . $list['status_name'] . ''; @@ -454,6 +460,8 @@ class FinanceController extends BaseController $page = set_pagination($count, $row, $parameter); + $settlementTypeList = WithdrawModel::$settlementTypeList; + $this->assign('listData', $data); $this->assign('count', $count); $this->assign('initBegTime', $initBegTime); @@ -462,6 +470,7 @@ class FinanceController extends BaseController $this->assign('_page', $page); $this->assign('meta_title', $metaTitle); $this->assign('modelList', $modelList); + $this->assign('settlementTypeList', $settlementTypeList); $this->display(); } diff --git a/Application/Home/View/default/Finance/settlementDtl.html b/Application/Home/View/default/Finance/settlementDtl.html index f8aecb696..dbb999a1b 100644 --- a/Application/Home/View/default/Finance/settlementDtl.html +++ b/Application/Home/View/default/Finance/settlementDtl.html @@ -143,8 +143,8 @@