rabin 2 gadi atpakaļ
vecāks
revīzija
1dd4249d11
1 mainītis faili ar 8 papildinājumiem un 6 dzēšanām
  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
         (
             'type'      => 'int-11',
-            'name'      => '手机号',
+            'name'      => '代理商姓名/手机号',
             'default'   => '-1',
             'desc'      => '代理商',
             'match'     => 'is_string',
             'update'    => 'text',
             'search'    => array
             (
-                'api' => 'agent/member-find',
-                'col' => 'mobile',
+                'api' => 'agent/member-getSearch',
+                'col' => 'col',
                 'result' => 'id',
                 '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
         (
             'name'      => '姓名',
@@ -74,6 +75,7 @@ return array
             'list'      => 'Dever::load("agent/lib/member.daili", {mid})',
             'list_order' => 3,
         ),
+        */
         'agent-member-mobile'=> array
         (
             'name'      => '上级代理商信息',