| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212 | 
							- <?php
 
- $config = array
 
- (
 
-     # 表名
 
-     'name' => 'cash_in_stat',
 
-     # 显示给用户看的名称
 
-     'lang' => '财务收入报表',
 
-     'order' => -10,
 
-     # 数据结构 不同的字段放这里
 
-     'struct' => array
 
-     (
 
-         'id'        => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => 'ID',
 
-             'default'   => '',
 
-             'desc'      => '',
 
-             'match'     => 'is_numeric',
 
-             //'list'        => true,
 
-         ),
 
-         'day'     => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '日期',
 
-             'default'   => '',
 
-             'match'     => 'is_numeric',
 
-             'desc'      => '',
 
-             'search'    => 'day',
 
-             'search_button' => array
 
-             (
 
-                 'sum' => 'cash,daili_cash,soft_cash,goods_cash,zt_cash,sc_cash,hd_cash,sd_cash',
 
-                 'option' => array(
 
-                     'day' => '按天',
 
-                     'week' => '按周',
 
-                     'month' => '按月',
 
-                 ),
 
-                 'group' => '',
 
-             ),
 
-             'order'     => 'desc',
 
-             'list'      => 'Dever::showDay("{day}")',
 
-         ),
 
-         'cash'        => array
 
-         (
 
-             'type'      => 'decimal-11,2',
 
-             'name'      => '总收入',
 
-             'default'   => '0',
 
-             'desc'      => '总收入',
 
-             'match'     => 'is_numeric',
 
-             'search'    => 'order',
 
-             'list'      => true,
 
-         ),
 
-         'daili_cash'        => array
 
-         (
 
-             'type'      => 'decimal-11,2',
 
-             'name'      => '代理费',
 
-             'default'   => '0',
 
-             'desc'      => '代理费',
 
-             'match'     => 'is_numeric',
 
-             'search'    => 'order',
 
-             'list'      => true,
 
-         ),
 
-         'soft_cash'        => array
 
-         (
 
-             'type'      => 'decimal-11,2',
 
-             'name'      => '软件服务费',
 
-             'default'   => '0',
 
-             'desc'      => '代软件服务费理费',
 
-             'match'     => 'is_numeric',
 
-             'search'    => 'order',
 
-             'list'      => true,
 
-         ),
 
-         'goods_cash'        => array
 
-         (
 
-             'type'      => 'decimal-11,2',
 
-             'name'      => '赠送商品价值',
 
-             'default'   => '0',
 
-             'desc'      => '赠送商品价值',
 
-             'match'     => 'is_numeric',
 
-             'search'    => 'order',
 
-             'list'      => true,
 
-         ),
 
-         'zt_cash'        => array
 
-         (
 
-             'type'      => 'decimal-11,2',
 
-             'name'      => '直推佣金',
 
-             'default'   => '0',
 
-             'desc'      => '直推佣金',
 
-             'match'     => 'is_numeric',
 
-             'search'    => 'order',
 
-             'list'      => true,
 
-         ),
 
-         'sc_cash'        => array
 
-         (
 
-             'type'      => 'decimal-11,2',
 
-             'name'      => '市场培训费',
 
-             'default'   => '0',
 
-             'desc'      => '市场培训费',
 
-             'match'     => 'is_numeric',
 
-             'search'    => 'order',
 
-             'list'      => true,
 
-         ),
 
-         'hd_cash'        => array
 
-         (
 
-             'type'      => 'decimal-11,2',
 
-             'name'      => '活动佣金',
 
-             'default'   => '0',
 
-             'desc'      => '活动佣金',
 
-             'match'     => 'is_numeric',
 
-             'search'    => 'order',
 
-             'list'      => true,
 
-         ),
 
-         'sd_cash'        => array
 
-         (
 
-             'type'      => 'decimal-11,2',
 
-             'name'      => '手动发放',
 
-             'default'   => '0',
 
-             'desc'      => '手动发放',
 
-             'match'     => 'is_numeric',
 
-             'search'    => 'order',
 
-             'list'      => true,
 
-         ),
 
-         'jt_cash'        => array
 
-         (
 
-             'type'      => 'decimal-11,2',
 
-             'name'      => '区域管理收益',
 
-             'default'   => '0',
 
-             'desc'      => '区域管理收益',
 
-             'match'     => 'is_numeric',
 
-             'search'    => 'order',
 
-             'list'      => 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
 
-     (
 
-         'insert' => false,
 
-         'edit' => false,
 
-         'delete' => false,
 
-         'num' => false,
 
-         'excel' => true,
 
-     ),
 
-     # request 请求接口定义
 
-     'request' => array
 
-     (
 
-         'list' => array
 
-         (
 
-             # 匹配的正则或函数 选填项
 
-             'option' => array
 
-             (
 
-                 'start_day' => array('yes-day', '>='),
 
-                 'end_day' => array('yes-day', '<='),
 
-                 'state' => 1,
 
-             ),
 
-             'type' => 'all',
 
-             'order' => array('time' => 'desc', 'cdate' => 'desc'),
 
-             'page' => array(20, 'list'),
 
-             'group' => 'day',//cash,daili_cash,soft_cash,goods_cash,zt_cash,sc_cash
 
-             'col' => '*,min(day) as time, sum(cash) as cash, sum(daili_cash) as daili_cash, sum(soft_cash) as soft_cash, sum(zt_cash) as zt_cash, sum(goods_cash) as goods_cash, sum(sc_cash) as sc_cash, sum(hd_cash) as hd_cash, sum(sd_cash) as sd_cash',
 
-         ),
 
-         'all' => array
 
-         (
 
-             # 匹配的正则或函数 选填项
 
-             'option' => array
 
-             (
 
-                 'start_day' => array('yes-day', '>='),
 
-                 'end_day' => array('yes-day', '<='),
 
-                 'state' => 1,
 
-             ),
 
-             'type' => 'all',
 
-             'order' => array('time' => 'desc', 'cdate' => 'desc'),
 
-             'group' => 'day',//cash,daili_cash,soft_cash,goods_cash,zt_cash,sc_cash
 
-             'col' => '*,min(day) as time, sum(cash) as cash, sum(daili_cash) as daili_cash, sum(soft_cash) as soft_cash, sum(zt_cash) as zt_cash, sum(goods_cash) as goods_cash, sum(sc_cash) as sc_cash, sum(hd_cash) as hd_cash, sum(sd_cash) as sd_cash',
 
-         ),
 
-     ),
 
- );
 
- return $config;
 
 
  |