|  | @@ -0,0 +1,112 @@
 | 
	
		
			
				|  |  | +<?php
 | 
	
		
			
				|  |  | +$shop = function()
 | 
	
		
			
				|  |  | +{
 | 
	
		
			
				|  |  | +    $array = array();
 | 
	
		
			
				|  |  | +    $data = Dever::db('shop/info-state');
 | 
	
		
			
				|  |  | +    if($data)
 | 
	
		
			
				|  |  | +    {
 | 
	
		
			
				|  |  | +        $array += $data;
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +    return $array;
 | 
	
		
			
				|  |  | +};
 | 
	
		
			
				|  |  | +return array
 | 
	
		
			
				|  |  | +(
 | 
	
		
			
				|  |  | +    # 表名
 | 
	
		
			
				|  |  | +    'name' => 'member_shop_log',
 | 
	
		
			
				|  |  | +    # 显示给用户看的名称
 | 
	
		
			
				|  |  | +    'lang' => '归店记录列表',
 | 
	
		
			
				|  |  | +    'order' => 9,
 | 
	
		
			
				|  |  | +    # 数据结构
 | 
	
		
			
				|  |  | +    'struct' => array
 | 
	
		
			
				|  |  | +    (
 | 
	
		
			
				|  |  | +    
 | 
	
		
			
				|  |  | +        'id'        => array
 | 
	
		
			
				|  |  | +        (
 | 
	
		
			
				|  |  | +            'type'      => 'int-11',
 | 
	
		
			
				|  |  | +            'name'      => 'ID',
 | 
	
		
			
				|  |  | +            'default'   => '',
 | 
	
		
			
				|  |  | +            'desc'      => '',
 | 
	
		
			
				|  |  | +            'match'     => 'is_numeric',
 | 
	
		
			
				|  |  | +            'search'    => 'order',
 | 
	
		
			
				|  |  | +            'update'    => 'hidden',
 | 
	
		
			
				|  |  | +            //'list'        => true,
 | 
	
		
			
				|  |  | +        ),
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        'mid'      => array
 | 
	
		
			
				|  |  | +        (
 | 
	
		
			
				|  |  | +            'type'      => 'int-11',
 | 
	
		
			
				|  |  | +            'name'      => '代理商姓名/手机号',
 | 
	
		
			
				|  |  | +            'default'   => '-1',
 | 
	
		
			
				|  |  | +            'desc'      => '代理商',
 | 
	
		
			
				|  |  | +            'match'     => 'is_string',
 | 
	
		
			
				|  |  | +            'update'    => 'text',
 | 
	
		
			
				|  |  | +            'search'    => array
 | 
	
		
			
				|  |  | +            (
 | 
	
		
			
				|  |  | +                'api' => 'agent/member-getSearch',
 | 
	
		
			
				|  |  | +                'col' => 'col',
 | 
	
		
			
				|  |  | +                'result' => 'id',
 | 
	
		
			
				|  |  | +                'search' => 'mid',
 | 
	
		
			
				|  |  | +            ),
 | 
	
		
			
				|  |  | +            'list_name' => '代理商信息',
 | 
	
		
			
				|  |  | +            'list'      => 'Dever::load("agent/lib/member.getOne", {mid}, "agent/member", true)',
 | 
	
		
			
				|  |  | +            'list_order' => 1,
 | 
	
		
			
				|  |  | +        ),
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        'old_shop_id'      => array
 | 
	
		
			
				|  |  | +        (
 | 
	
		
			
				|  |  | +            'type'      => 'int-11',
 | 
	
		
			
				|  |  | +            'name'      => '变更前店铺名称',
 | 
	
		
			
				|  |  | +            'default'   => '',
 | 
	
		
			
				|  |  | +            'desc'      => '店铺名称',
 | 
	
		
			
				|  |  | +            'match'     => 'is_numeric',
 | 
	
		
			
				|  |  | +            'option'    => $shop,
 | 
	
		
			
				|  |  | +            'list'      => true,
 | 
	
		
			
				|  |  | +            //'list_order' => 6,
 | 
	
		
			
				|  |  | +        ),
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        'new_shop_id'      => array
 | 
	
		
			
				|  |  | +        (
 | 
	
		
			
				|  |  | +            'type'      => 'int-11',
 | 
	
		
			
				|  |  | +            'name'      => '变更后店铺名称',
 | 
	
		
			
				|  |  | +            'default'   => '',
 | 
	
		
			
				|  |  | +            'desc'      => '店铺名称',
 | 
	
		
			
				|  |  | +            'match'     => 'is_numeric',
 | 
	
		
			
				|  |  | +            'option'    => $shop,
 | 
	
		
			
				|  |  | +            'list'      => true,
 | 
	
		
			
				|  |  | +            //'list_order' => 6,
 | 
	
		
			
				|  |  | +        ),
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        'state'     => array
 | 
	
		
			
				|  |  | +        (
 | 
	
		
			
				|  |  | +            'type'      => 'tinyint-1',
 | 
	
		
			
				|  |  | +            'name'      => '状态',
 | 
	
		
			
				|  |  | +            'default'   => '1',
 | 
	
		
			
				|  |  | +            'desc'      => '请选择状态',
 | 
	
		
			
				|  |  | +            'match'     => 'is_numeric',
 | 
	
		
			
				|  |  | +        ),
 | 
	
		
			
				|  |  | +        
 | 
	
		
			
				|  |  | +        'cdate'     => array
 | 
	
		
			
				|  |  | +        (
 | 
	
		
			
				|  |  | +            'type'      => 'int-11',
 | 
	
		
			
				|  |  | +            'name'      => '归店时间',
 | 
	
		
			
				|  |  | +            'match'     => array('is_numeric', time()),
 | 
	
		
			
				|  |  | +            'desc'      => '',
 | 
	
		
			
				|  |  | +            # 只有insert时才生效
 | 
	
		
			
				|  |  | +            'insert'    => true,
 | 
	
		
			
				|  |  | +            'search'    => 'date',
 | 
	
		
			
				|  |  | +            'list'      => 'date("Y-m-d", {cdate})',
 | 
	
		
			
				|  |  | +            'order'     => 'desc',
 | 
	
		
			
				|  |  | +        ),
 | 
	
		
			
				|  |  | +    ),
 | 
	
		
			
				|  |  | +    'manage' => array
 | 
	
		
			
				|  |  | +    (
 | 
	
		
			
				|  |  | +        'edit' => false,
 | 
	
		
			
				|  |  | +        'insert' => false,
 | 
	
		
			
				|  |  | +        'delete' => false,
 | 
	
		
			
				|  |  | +    ),
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    'request' => array
 | 
	
		
			
				|  |  | +    (
 | 
	
		
			
				|  |  | +        
 | 
	
		
			
				|  |  | +    ),
 | 
	
		
			
				|  |  | +);
 |