123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197 |
- <?php
- $status = array
- (
- 1 => '退款失败',
- 2 => '退款成功',
- );
- return array
- (
- # 表名
- 'name' => 'info_refund',
- # 显示给用户看的名称
- 'lang' => '活动退款记录',
- # 后台菜单排序
- 'order' => 2,
- 'menu' => false,
- 'start' => array
- (
- 'insert' => 'active/lib/manage.insertInfoRefund',
- ),
- 'end' => array
- (
- 'insert' => 'active/lib/manage.updateInfoRefund',
- // 'update' => 'active/lib/manage.updateInfoRefund',
- ),
- # 数据结构
- 'struct' => array
- (
- 'id' => array
- (
- 'type' => 'int-11',
- 'name' => 'ID',
- 'default' => '',
- 'desc' => '',
- 'match' => 'is_numeric',
- 'search' => 'order',
- 'list' => true,
- 'order' => 'desc',
- ),
- 'order_id' => array
- (
- 'type' => 'int-11',
- 'name' => '订单id',
- 'default' => '-1',
- 'desc' => '订单id',
- 'match' => 'is_string',
- 'value' => Dever::input('search_option_order_id'),
- 'update' => 'hidden',
- // 'search' => 'text',
- // 'list' => "Dever::load('active/lib/manage.active',{active_id})",
- ),
- 'num' => array
- (
- 'type' => 'int-11',
- 'name' => '退款数量-单位:张',
- 'default' => '0',
- 'desc' => '限购数量',
- 'match' => 'option',
- 'update' => 'text',
- // 'search' => 'fulltext',
- // 'list' => true,
- ),
- 'price' => array
- (
- 'type' => 'decimal-11,2',
- 'name' => '退款金额-单张票价',
- 'default' => '0',
- 'desc' => '票价-单位:元',
- 'match' => 'option',
- 'update' => 'text',
- 'value' => Dever::input('search_option_price'),
- // 'list' => $search_auth == 1 ? true : false,
- // 'list_order' => '3',
- // 'tab' => 2,
- ),
- 'desc' => array
- (
- 'type' => 'varchar-300',
- 'name' => '退款备注',
- 'default' => '',
- 'desc' => '退款备注',
- 'match' => 'is_string',
- 'update' => 'textarea',
- // 'tab' => 3,
- ),
- 'status' => array
- (
- 'type' => 'tinyint-1',
- 'name' => '退款状态',
- 'default' => '1',
- 'desc' => '退款状态',
- 'match' => 'is_numeric',
- 'option' => $status,
- 'search' => 'select',
- // 'list' => true,
- ),
- 'audit_admin' => array
- (
- 'type' => 'int-11',
- 'name' => '退款操作人',
- 'default' => '',
- 'match' => 'is_numeric',
- 'desc' => '退款操作人',
- // 'list' => '"{audit_admin}" > 0 ? Dever::load("manage/admin-find#username", {audit_admin}) : "-"',
- ),
- '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' => 'day',
- 'list' => 'date("Y-m-d H:i:s", {cdate})',
- 'list_order' => 5,
- ),
- ),
- 'manage' => array
- (
- 'insert' => false,
- 'delete' => false,
- 'edit' => false,
- ),
- 'request' => array
- (
- 'getAll' => array
- (
- # 匹配的正则或函数 选填项
- 'option' => array
- (
- 'join_id' => 'yes',
- 'state' => 1,
- ),
- 'type' => 'all',
- 'order' => array('cdate' => 'desc'),
- 'col' => '*',
- ),
- 'getNum' => array
- (
- # 匹配的正则或函数 选填项
- 'option' => array
- (
- 'order_id' => 'yes',
- 'state' => 1,
- 'status' => 2,
- ),
- 'type' => 'one',
- 'order' => array('cdate' => 'desc'),
- 'col' => 'sum(num) as num',
- ),
- 'getSearch' => array
- (
- # 匹配的正则或函数 选填项
- 'option' => array
- (
- 'order_id' => 'yes',
- 'state' => 1,
- 'status' => 2,
- ),
- 'type' => 'all',
- 'order' => array('cdate' => 'desc'),
- 'col' => '*',
- ),
- 'getEmoney' => array
- (
- # 匹配的正则或函数 选填项
- 'option' => array
- (
- 'order_id' => 'yes',
- 'state' => 1,
- 'status' => 2,
- ),
- 'type' => 'one',
- 'order' => array('cdate' => 'desc'),
- 'col' => 'sum(price) as price',
- ),
- ),
- );
|