|
@@ -2,8 +2,9 @@
|
|
|
# 获取分类权限
|
|
|
$status = array
|
|
|
(
|
|
|
- 1 => '合作中',
|
|
|
- 2 => '已终止合作',
|
|
|
+ 1 => '已认证',
|
|
|
+ 2 => '认证中',
|
|
|
+ 3 => '认证失败',
|
|
|
);
|
|
|
|
|
|
return array
|
|
@@ -28,6 +29,31 @@ return array
|
|
|
'list' => true,
|
|
|
'order' => 'desc',
|
|
|
),
|
|
|
+
|
|
|
+ 'hr1' => array
|
|
|
+ (
|
|
|
+ 'name' => '工厂基本信息',
|
|
|
+ 'class' => '',//本项必须填写
|
|
|
+ 'attr' => '',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'uid' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '用户名',
|
|
|
+ 'default' => '0',
|
|
|
+ 'desc' => '请选择用户',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ //'update' => 'text',
|
|
|
+ //'search' => 'select',
|
|
|
+ 'searchs' => array
|
|
|
+ (
|
|
|
+ 'api' => 'passport/user-select',
|
|
|
+ 'col' => 'username',
|
|
|
+ 'result' => 'id',
|
|
|
+ ),
|
|
|
+ //'list' => '{uid} > 0 ? Dever::load("passport/user-find#username", {uid}) : "匿名用户"',
|
|
|
+ ),
|
|
|
|
|
|
'name' => array
|
|
|
(
|
|
@@ -41,14 +67,190 @@ return array
|
|
|
'list' => true,
|
|
|
),
|
|
|
|
|
|
+ 'truename' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-100',
|
|
|
+ 'name' => '联系人姓名',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '请输入联系人姓名',
|
|
|
+ 'match' => 'is_string',
|
|
|
+ 'update' => 'text',
|
|
|
+ 'search' => 'fulltext',
|
|
|
+ 'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'mobile' => array
|
|
|
+ (
|
|
|
+ 'type' => 'bigint-11',
|
|
|
+ 'name' => '联系人电话',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '请输入联系人电话',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'update' => 'text',
|
|
|
+ 'search' => 'fulltext',
|
|
|
+ 'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'area' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-500',
|
|
|
+ 'name' => '所在城市',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '所在城市',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'search' => 'linkage',
|
|
|
+ 'update' => 'linkage',
|
|
|
+ 'option' => Dever::url('api.get?level_total=2', 'area'),
|
|
|
+ 'list' => 'Dever::load("area/api.string", "{area}")',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'province' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '省份',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '省份',
|
|
|
+ 'match' => 'option',
|
|
|
+ //'update' => 'text',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'city' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '城市',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '城市',
|
|
|
+ 'match' => 'option',
|
|
|
+ //'update' => 'text',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'map' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-300',
|
|
|
+ 'name' => '地理位置',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '地理位置',
|
|
|
+ 'match' => 'is_string',
|
|
|
+ # 如果是map,必须在config的base.php中设置map信息
|
|
|
+ 'update' => 'map',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'lng' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-100',
|
|
|
+ 'name' => '经度',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '经度',
|
|
|
+ 'match' => 'option',
|
|
|
+ //'update' => 'text',
|
|
|
+ //'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'lat' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-100',
|
|
|
+ 'name' => '纬度',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '纬度',
|
|
|
+ 'match' => 'option',
|
|
|
+ //'update' => 'text',
|
|
|
+ //'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'address' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-1000',
|
|
|
+ 'name' => '工厂地址',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '工厂地址',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'text',
|
|
|
+ //'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'hr2' => array
|
|
|
+ (
|
|
|
+ 'name' => '工厂认证信息',
|
|
|
+ 'class' => '',//本项必须填写
|
|
|
+ 'attr' => '',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'license' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-150',
|
|
|
+ 'name' => '营业执照',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '营业执照',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'image',
|
|
|
+ 'key' => '1',
|
|
|
+ 'place' => '660*660',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'license_number' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-200',
|
|
|
+ 'name' => '营业执照号码',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '营业执照号码',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'text',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'company_name' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-200',
|
|
|
+ 'name' => '公司名称',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '公司名称',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'text',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'idcard_front' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-150',
|
|
|
+ 'name' => '身份证正面',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '身份证正面',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'image',
|
|
|
+ 'key' => '1',
|
|
|
+ 'place' => '660*660',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'idcard_back' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-150',
|
|
|
+ 'name' => '身份证背面',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '身份证背面',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'image',
|
|
|
+ 'key' => '1',
|
|
|
+ 'place' => '660*660',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'kh_license' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-150',
|
|
|
+ 'name' => '开户许可证',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '开户许可证',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'image',
|
|
|
+ 'key' => '1',
|
|
|
+ 'place' => '660*660',
|
|
|
+ ),
|
|
|
+
|
|
|
'status' => array
|
|
|
(
|
|
|
'type' => 'int-11',
|
|
|
- 'name' => '合作状态',
|
|
|
+ 'name' => '认证状态',
|
|
|
'default' => '1',
|
|
|
- 'desc' => '上线状态',
|
|
|
+ 'desc' => '认证状态',
|
|
|
'match' => 'is_numeric',
|
|
|
- //'update' => 'select',
|
|
|
+ 'update' => 'select',
|
|
|
'option' => $status,
|
|
|
'search' => 'select',
|
|
|
'list' => true,
|
|
@@ -90,21 +292,15 @@ return array
|
|
|
),
|
|
|
),
|
|
|
|
|
|
- # 默认值
|
|
|
- 'default' => array
|
|
|
+ 'manage' => array
|
|
|
(
|
|
|
- 'col' => 'name,reorder,state,cdate',
|
|
|
- 'value' => array
|
|
|
+ 'list_button' => array
|
|
|
(
|
|
|
- '"默认工厂",1,1,' . time(),
|
|
|
+ 'list1' => array('账号管理', '"member&search_option_shop_id={id}&oper_table=info"'),
|
|
|
+ 'list4' => array('订货单', '"order&search_option_shop_id={id}&oper_table=info"'),
|
|
|
),
|
|
|
),
|
|
|
|
|
|
- 'manage' => array
|
|
|
- (
|
|
|
-
|
|
|
- ),
|
|
|
-
|
|
|
'request' => array
|
|
|
(
|
|
|
|