| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 | 
							- <?php
 
- return array
 
- (
 
-     # 表名
 
-     'name' => 'servicer',
 
-     # 显示给用户看的名称
 
-     'lang' => '经销商配送商关系表',
 
-     'menu' => false,
 
-     # 数据结构
 
-     'struct' => array
 
-     (
 
-     
 
-         'id'        => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => 'ID',
 
-             'default'   => '',
 
-             'desc'      => '',
 
-             'match'     => 'is_numeric',
 
-             'search'    => 'order',
 
-             'update'    => 'hidden',
 
-             //'list'        => true,
 
-         ),
 
-         'seller_id'		=> array
 
- 		(
 
- 			'type' 		=> 'int-11',
 
- 			'name' 		=> '经销商ID',
 
- 			'default' 	=> '-1',
 
- 			'desc' 		=> '经销商ID',
 
- 			'match' 	=> 'is_numeric',
 
- 			'update'	=> 'hidden',
 
- 			'value'		=> Dever::input('search_option_seller_id'),
 
- 		),
 
-         'servicer_id'      => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '配送商ID',
 
-             'default'   => '',
 
-             'desc'      => '配送商ID',
 
-             'match'     => 'is_numeric',
 
-             'update'    => 'hidden',
 
-             'search'    => 'hidden',
 
-             'value'     => Dever::input('search_option_servicer_id'),
 
-             'list'      => 'Dever::load("scm_supplier/info-one#name", {servicer_id})',
 
-         ),
 
-         '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 H:i:s", {cdate})',
 
-         ),
 
-     ),
 
-     'manage' => array
 
-     (
 
-         
 
-     ),
 
-     'request' => array
 
-     (
 
-         'getAll' => array
 
-         (
 
-             'option' => array
 
-             (
 
-                 'seller_id' => 'yes',
 
-                 'state' => 1,
 
-             ),
 
-             'type' => 'all',
 
-             'col' => '*|servicer_id',
 
-         ),
 
-         'getData' => array
 
-         (
 
-             # 匹配的正则或函数 选填项
 
-             'option' => array
 
-             (
 
-                 'seller_id' => array('yes-t_1.seller_id'),
 
-                 'state' => 'yes-t_2.state-1',
 
-                 'state_1' => 'yes-t_1.state-1',
 
-             ),
 
-             # 联表
 
-             'join' => array
 
-             (
 
-                 array
 
-                 (
 
-                     'table' => 'scm_servicer/info',
 
-                     'type' => 'left join',
 
-                     'on' => array('servicer_id','id'),
 
-                     'col' => 'servicer_id',
 
-                 ),
 
-             ),
 
-             'type' => 'all',
 
-             'order' => array('t_2.reorder' => 'desc', 't_2.id' => 'desc'),
 
-             'col' => '*,t_2.name,t_2.id as id|id',
 
-         ),
 
-     ),
 
- );
 
 
  |