rabin 2 years ago
parent
commit
d6301817af
2 changed files with 26 additions and 1 deletions
  1. 1 1
      service/agent/database/member.php
  2. 25 0
      service/option/database/account.php

+ 1 - 1
service/agent/database/member.php

@@ -325,7 +325,7 @@ return array
             'desc'      => '是否有代理区域',
             'match'     => 'is_numeric',
             'option'    => $is_area,
-            //'update'    => 'radio',
+            'update'    => 'radio',
         ),
 
         'area'       => array

+ 25 - 0
service/option/database/account.php

@@ -49,6 +49,14 @@ $is_idcard = array
     2 => '未上传',
 );
 
+$agreement_status = array
+(
+    0 => '合同审核状态',
+    1 => '待签署',
+    2 => '有效',
+    3 => '作废',
+);
+
 $col = Dever::input('col');
 
 # 权限设置 1是审核列表、2是账户列表、3是展示列表
@@ -297,7 +305,24 @@ return array
             'default'   => '',
             'match'     => 'is_numeric',
             'desc'      => '审核时间',
+        ),
 
+        'option-agreement-status'=> array
+        (
+            'name'      => '名称',
+            'default'   => '',
+            'desc'      => '手机号',
+            'match'     => 'option',
+            'search'    => $search_auth == 3 ? array
+            (
+                'api' => 'option/agreement-select',
+                'col' => 'status',
+                'result' => 'aid',
+                'search' => 'id',
+                'option' => $agreement_status,
+            ) : 'hidden',
+            # 读取另外表的关联方式
+            'sync'      => array('id', 'aid'),
             'list_name' => '合同审核状态',
             'list'      => $search_auth == 3 ? 'Dever::load("option/lib/account.getAgreementStatus", {id})' : false,
             'list_order' => 10,