| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179 | <?php$type = array(    1 => '整个订单',    2 => '单一商品',);$status = array(    1 => '仅退款',    2 => '退货退款',);$process = array(    1 => '申请退款中',    2 => '审核通过',    3 => '审核驳回',);return array(    # 表名    'name' => 'dh_order_refund',    # 显示给用户看的名称    'lang' => '订单退款申请',    'menu' => false,    'status' => $status,    'process' => $process,    # 数据结构    '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',        ),        'order_goods_id'      => array        (            'type'      => 'varchar-300',            'name'      => '订单商品表id',            'default'   => '',            'desc'      => '订单商品表id',            'match'     => 'option',        ),        'cash'      => array        (            'type'      => 'varchar-300',            'name'      => '退款金额',            'default'   => '',            'desc'      => '退款金额',            'match'     => 'option',            'update'    => 'text',        ),        'num'        => array        (            'type'      => 'int-11',            'name'      => '退款数量',            'default'   => '',            'desc'      => '退款数量',            'match'     => 'is_numeric',        ),        'desc'      => array        (            'type'      => 'varchar-300',            'name'      => '退款描述',            'default'   => '',            'desc'      => '退款描述',            'match'     => 'option',            'update'    => 'textarea',        ),        'pic'      => array        (            'type'      => 'varchar-8000',            'name'      => '退款图片',            'default'   => '',            'desc'      => '退款图片',            'match'     => 'option',            'update'    => 'images',            'key'       => '1',            'place'     => '660*660',        ),        'type'        => array        (            'type'      => 'int-11',            'name'      => '类型',            'default'   => '1',            'desc'      => '类型',            'match'     => 'is_numeric',            //'update'  => 'select',            'option'    => $type,            'search'    => 'select',            'list'      => true,            //'edit'      => true,        ),        'status'        => array        (            'type'      => 'int-11',            'name'      => '状态',            'default'   => '1',            'desc'      => '状态',            'match'     => 'is_numeric',            //'update'  => 'select',            'option'    => $status,            'search'    => 'select',            'list'      => true,            //'edit'      => true,        ),        'process'        => array        (            'type'      => 'int-11',            'name'      => '审核进度',            'default'   => '1',            'desc'      => '审核进度',            'match'     => 'is_numeric',            //'update'  => 'select',            'option'    => $process,            'search'    => 'select',            'list'      => true,            'edit'      => true,        ),        '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    (            ),);
 |