wupengfei 2 年 前
コミット
398a9b37e5

+ 15 - 13
application/user/controller/Deposit.php

@@ -57,6 +57,10 @@ class Deposit extends Controller
             if($type == 2)  $sel_where[] =['w.withdraw_type','=','zfb'];
             if($type == 3)  $sel_where[] =['w.withdraw_type','=','bank'];
         }
+        $sh_status = $this->request->get('sh_status',-1);
+        if($sh_status>= 0) {
+            $sel_where[] =['w.sh_status','=',$sh_status];
+        }
         $query = $this->_query($this->table)->alias('w')
             ->where($sel_where)
             ->field('w.*,m.headimg,m.openid,m.name as m_name')
@@ -176,6 +180,11 @@ class Deposit extends Controller
         if($type = $this->request->get('type')){
             if($type == 1)  $sel_where[] =['w.withdraw_type','=','wx'];
             if($type == 2)  $sel_where[] =['w.withdraw_type','=','zfb'];
+            if($type == 3)  $sel_where[] =['w.withdraw_type','=','bank'];
+        }
+        $sh_status = $this->request->get('sh_status',-1);
+        if($sh_status>= 0) {
+            $sel_where[] =['w.sh_status','=',$sh_status];
         }
         $sel_time = input('create_at');
         if($sel_time) {
@@ -196,24 +205,17 @@ class Deposit extends Controller
                 $item['sh_status'] = $sh_dsec[$item['sh_status']];
                 $item['paid'] = $item['paid'] == 1 ? '是':'否';
                 $export[] = [
-                    $item['m_name'],
-                    $item['phone'],
-                    $item['order_no'],
-                    $item['price'],
-                    $item['proportion'],
-                    $item['real_money'],
-                    $item['paid'],
-                    $item['create_at'],
-                    $item['sh_time'],
-                    $item['sh_status'],
-                    $item['sh_remark'],
-                    $item['withdraw_type'],
+                    $item['id'],
                     $item['account_name'],
                     $item['account_no'],
+                    $item['real_money'],
+                    $item['sh_remark'],
+                    $item['phone'],
                 ];
             }
         }
-        $title = ['用户名','手机号','单号','提现金额','服务费','应到账','是否到账','申请时间','审核时间','审核状态','审核备注','提现方式','收款人','收款账号'];
+       //$title = ['序号','手机号','单号','提现金额','服务费','应到账','是否到账','申请时间','审核时间','审核状态','审核备注','提现方式','收款人','收款账号'];
+        $title = ['序号(选填)','收款方姓名','收款方银行卡号(必填)','金额(必填,单位:元)','附言(选填)','收款人手机号(选填)'];
         PHPExcelService::setExcelHeader($title)
             ->setExcelTile('提现记录导出' . date('YmdHis', time()), '提现记录' . time(), ' 生成时间:' . date('Y-m-d H:i:s', time()))
             ->setExcelContent($export)

+ 17 - 0
application/user/view/deposit/index_search.html

@@ -41,6 +41,23 @@
 
 
         <div class="layui-form-item layui-inline">
+            <label class="layui-form-label">审核状态</label>
+            <div class="layui-input-inline">
+                <select class="layui-select" name="sh_status">
+                    <option  value="-1">全部</option>
+                    {foreach ['待审核','审核通过','审核拒绝'] as $k=>$v}
+                        {if $v}
+                            {if $Think.get.sh_status eq $k}
+                                <option selected value="{$k}">{$v}</option>
+                            {else}
+                                <option  value="{$k}">{$v}</option>
+                            {/if}
+                        {/if}
+                    {/foreach}
+                </select>
+            </div>
+        </div>
+        <div class="layui-form-item layui-inline">
             <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
         </div>