'整个订单', 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 ( ), );