| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141 | 
							- <?php
 
- $status = array
 
- (
 
-     1 => '待处理',
 
-     2 => '配送中',
 
-     3 => '已配送',
 
-     4 => '未配送',
 
- );
 
- $service = function()
 
- {
 
-     $info = Dever::db('scm_role/servicer')->select();
 
-     return $info;
 
- };
 
- return array
 
- (
 
-     # 表名
 
-     'name' => 'sell_ps',
 
-     # 显示给用户看的名称
 
-     'lang' => '订单配送表',
 
-     'menu' => false,
 
-     'status' => $status,
 
-     'end' => array
 
-     (
 
-         'insert' => 'scm_order/lib/sell.ps',
 
-         'update' => 'scm_order/lib/sell.ps',
 
-     ),
 
-     # 数据结构
 
-     'struct' => array
 
-     (
 
-     
 
-         'id'        => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => 'ID',
 
-             'default'   => '',
 
-             'desc'      => '',
 
-             'match'     => 'is_numeric',
 
-             'search'    => 'order',
 
-             'update'    => 'hidden',
 
-             //'list'        => true,
 
-         ),
 
-         'order_id'      => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '订单表id',
 
-             'default'   => '',
 
-             'desc'      => '订单表id',
 
-             'match'     => 'is_numeric',
 
-             'update'      => 'hidden',
 
-             'value'     => Dever::input('search_option_order_id'),
 
-         ),
 
-         'service_id'      => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '配送服务商',
 
-             'default'   => '-1',
 
-             'desc'      => '配送服务商',
 
-             'match'     => 'is_numeric',
 
-             'update'    => 'select',
 
-             'option'    => $service,
 
-         ),
 
-         'order_num'      => array
 
-         (
 
-             'type'      => 'varchar-500',
 
-             'name'      => '快递单号',
 
-             'default'   => '',
 
-             'desc'      => '快递单号',
 
-             'match'     => 'is_string',
 
-             'update'    => 'text',
 
-         ),
 
-         'status'        => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '状态',
 
-             'default'   => '1',
 
-             'desc'      => '状态',
 
-             'match'     => 'is_numeric',
 
-             //'update'  => 'select',
 
-             'option'    => $status,
 
-             'search'    => 'select',
 
-             'list'      => true,
 
-             'edit'      => true,
 
-         ),
 
-         'qu_date'     => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '取件时间',
 
-             'default'   => '',
 
-             'match'     => 'is_numeric',
 
-             'desc'      => '取件时间',
 
-         ),
 
-         'qs_date'     => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '签收时间',
 
-             'default'   => '',
 
-             'match'     => 'is_numeric',
 
-             'desc'      => '签收时间',
 
-         ),
 
-         '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
 
-     (
 
-         
 
-     ),
 
- );
 
 
  |