| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204 | 
							- <?php
 
- $scope = array
 
- (
 
-     1 => '整个订单',
 
-     2 => '单一商品',
 
- );
 
- $type = array
 
- (
 
-     1 => '仅退款',
 
-     2 => '退货退款',
 
- );
 
- $process = array
 
- (
 
-     1 => '申请退款中',
 
-     2 => '审核通过',
 
-     3 => '审核驳回',
 
- );
 
- return array
 
- (
 
-     # 表名
 
-     'name' => 'buy_refund',
 
-     # 显示给用户看的名称
 
-     'lang' => '订单退款申请',
 
-     'menu' => false,
 
-     'set' => array
 
-     (
 
-     	'type' => $type,
 
-     	'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'      => 'decimal-11,2',
 
-             'name'      => '退款金额',
 
-             'default'   => '0',
 
-             'desc'      => '退款金额',
 
-             'match'     => 'option',
 
-             'update'    => 'text',
 
-         ),
 
-         'pay_cash'      => array
 
-         (
 
-             'type'      => 'decimal-11,2',
 
-             'name'      => '支付金额',
 
-             'default'   => '0',
 
-             'desc'      => '支付金额',
 
-             'match'     => 'option',
 
-             'update'    => 'text',
 
-             'list'        => true,
 
-         ),
 
-         'wallet_cash'      => array
 
-         (
 
-             'type'      => 'decimal-11,2',
 
-             'name'      => '钱包抵扣金额',
 
-             'default'   => '0',
 
-             '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',
 
-         ),
 
-         'scope'        => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '范围',
 
-             'default'   => '1',
 
-             'desc'      => '范围',
 
-             'match'     => 'is_numeric',
 
-             //'update'  => 'select',
 
-             'option'    => $scope,
 
-             'search'    => 'select',
 
-             'list'      => true,
 
-             //'edit'      => true,
 
-         ),
 
-         'type'        => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '类型',
 
-             'default'   => '1',
 
-             'desc'      => '类型',
 
-             'match'     => 'is_numeric',
 
-             //'update'  => 'select',
 
-             'option'    => $type,
 
-             '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
 
-     (
 
-         
 
-     ),
 
- );
 
 
  |