rabin 2 years ago
parent
commit
1dd4249d11
1 changed files with 8 additions and 6 deletions
  1. 8 6
      service/bill/database/sell_stat.php

+ 8 - 6
service/bill/database/sell_stat.php

@@ -36,23 +36,24 @@ return array
         'mid'      => array
         'mid'      => array
         (
         (
             'type'      => 'int-11',
             'type'      => 'int-11',
-            'name'      => '手机号',
+            'name'      => '代理商姓名/手机号',
             'default'   => '-1',
             'default'   => '-1',
             'desc'      => '代理商',
             'desc'      => '代理商',
             'match'     => 'is_string',
             'match'     => 'is_string',
             'update'    => 'text',
             'update'    => 'text',
             'search'    => array
             'search'    => array
             (
             (
-                'api' => 'agent/member-find',
-                'col' => 'mobile',
+                'api' => 'agent/member-getSearch',
+                'col' => 'col',
                 'result' => 'id',
                 'result' => 'id',
                 'search' => 'mid',
                 'search' => 'mid',
             ),
             ),
-            // 'list_name' => '手机号',
-            // 'list'      => 'Dever::load("agent/member-find#mobile", {mid})',
-            // 'list_order' => 4,
+            'list_name' => '代理商信息',
+            'list'      => $admin_auth ? 'Dever::load("agent/lib/member.getOne", {mid}, "agent/member", true,true)' : 'Dever::load("agent/lib/member.getOne", {mid}, "agent/member", true)',
+            'list_order' => 1,
         ),
         ),
 
 
+        /*
         'agent-member-name'=> array
         'agent-member-name'=> array
         (
         (
             'name'      => '姓名',
             'name'      => '姓名',
@@ -74,6 +75,7 @@ return array
             'list'      => 'Dever::load("agent/lib/member.daili", {mid})',
             'list'      => 'Dever::load("agent/lib/member.daili", {mid})',
             'list_order' => 3,
             'list_order' => 3,
         ),
         ),
+        */
         'agent-member-mobile'=> array
         'agent-member-mobile'=> array
         (
         (
             'name'      => '上级代理商信息',
             'name'      => '上级代理商信息',