| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292 | 
							- <?php
 
- return array
 
- (
 
-     # 表名
 
-     'name' => 'area_stat',
 
-     # 显示给用户看的名称
 
-     'lang' => '区域分润管理统计',
 
-     'order' => 79,
 
-     'menu' => 'agent',
 
-     // 'end' => array
 
-     // (
 
-     //     'insert' => 'mail/lib/manage.updateArea_stat', 
 
-     // ),
 
-     # 数据结构
 
-     'struct' => array
 
-     (
 
-     
 
-         'id'        => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => 'ID',
 
-             'default'   => '',
 
-             'desc'      => '',
 
-             'match'     => 'is_numeric',
 
-             'search'    => 'order',
 
-             //'list'        => true,
 
-         ),
 
-         'month'     => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '月份',
 
-             'default'   => '',
 
-             'match'     => 'is_numeric',
 
-             'desc'      => '',
 
-             'update'    => 'month',
 
-             'search'    => 'month-start',
 
-             'list'      => 'date("Y-m", {month})',
 
-         ),
 
-         'name'       => array
 
- 	    (
 
- 	        'type'      => 'varchar-500',
 
- 	        'name'      => '区域',
 
- 	        'default'   => '',
 
- 	        'desc'      => '区域',
 
- 	        'match'     => 'option',
 
- 	        'update'    => 'linkage',
 
-             'search'    => 'linkage',
 
- 	        'list'      => 'Dever::load("area/api.string", "{area}")',
 
-             'option'    => Dever::url('api.get?level_total=4', 'area'),
 
- 	    ),
 
-         'parent_id'       => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '上级id',
 
-             'default'   => -1,
 
-             'desc'      => '请选择上级id',
 
-             'match'     => 'is_numeric',
 
-         ),
 
-         'mid'      => array
 
-         (
 
-             'type'      => 'int-11',
 
-             'name'      => '收益代理商姓名/电话',
 
-             'default'   => '-1',
 
-             'desc'      => '代理商',
 
-             'match'     => 'is_string',
 
-             // 'update'    => 'text',
 
-             'search'    => array
 
-             (
 
-                 'api' => 'agent/member-getSearch',
 
-                 'col' => 'col',
 
-                 'result' => 'id',
 
-                 'search' => 'mid',
 
-             ),
 
-             'list_name' => '收益代理商',
 
-             'list'      => 'Dever::load("mail/lib/manage.area_member", {id})',
 
-             'list_order' => 15,
 
-         ),
 
-         'mobile'      => array
 
-         (
 
-             'type'      => 'bigint-11',
 
-             'name'      => '代理商手机号',
 
-             'default'   => '',
 
-             'desc'      => '请输入手机号',
 
-             'match'     => Dever::rule('mobile'),
 
-             'update'    => 'text',
 
-             # 绑定js脚本,更新时使用,第一个参数是执行的方式,第二个参数执行的方法,第三个参数是传值。
 
-             'bind'        => array('onblur', 'loading', array('url' => Dever::url("lib/soft_cash.search", 'agent'))),
 
-             //'search'    => 'fulltext',
 
-             //'list'      => true,
 
-         ),
 
-         'num'      => array
 
-         (
 
-             'type'      => 'decimal-11',
 
-             'name'      => '店铺数量',
 
-             'default'   => '0',
 
-             'desc'      => '店铺数量',
 
-             'match'     => 'is_numeric',
 
-             'update'    => 'text',
 
-             // 'list'      => true,
 
-         ),
 
-         'c_price'      => array
 
-         (
 
-             'type'      => 'decimal-11,2',
 
-             'name'      => '采购金额',
 
-             'default'   => '0',
 
-             'desc'      => '采购金额',
 
-             'match'     => 'is_numeric',
 
-             // 'update'    => 'text',
 
-             // 'list'      => true,
 
-             // 'list_order' => 4,
 
-         ),
 
-         't_num'      => array
 
-         (
 
-             'type'      => 'decimal-11',
 
-             'name'      => '体验店数量',
 
-             'default'   => '0',
 
-             'desc'      => '体验店数量',
 
-             'match'     => 'is_numeric',
 
-             // 'update'    => 'text',
 
-             'list'      => true,
 
-         ),
 
-         't_price'      => array
 
-         (
 
-             'type'      => 'decimal-11,2',
 
-             'name'      => '体验店采购金额',
 
-             'default'   => '0',
 
-             'desc'      => '体验店采购金额',
 
-             'match'     => 'is_numeric',
 
-             // 'update'    => 'text',
 
-             'list'      => true,
 
-         ),
 
-         't_fprice'      => array
 
-         (
 
-             'type'      => 'decimal-11,2',
 
-             'name'      => '体验店分润金额',
 
-             'default'   => '0',
 
-             'desc'      => '体验店分润金额',
 
-             'match'     => 'is_numeric',
 
-             // 'update'    => 'text',
 
-             // 'list'      => true,
 
-         ),
 
-         'price'      => array
 
-         (
 
-             'type'      => 'decimal-11,2',
 
-             'name'      => '分润金额',
 
-             'default'   => '0',
 
-             'desc'      => '分润金额',
 
-             'match'     => 'is_numeric',
 
-             'update'    => 'text',
 
-             'list'      => true,
 
-             'list_order' => 5,
 
-         ),
 
-         'l_num'      => array
 
-         (
 
-             'type'      => 'decimal-11',
 
-             'name'      => '零售店数量',
 
-             'default'   => '0',
 
-             'desc'      => '零售店数量',
 
-             'match'     => 'is_numeric',
 
-             // 'update'    => 'text',
 
-             'list'      => true,
 
-         ),
 
-         'l_price'      => array
 
-         (
 
-             'type'      => 'decimal-11,2',
 
-             'name'      => '零售店采购金额',
 
-             'default'   => '0',
 
-             'desc'      => '零售店采购金额',
 
-             'match'     => 'is_numeric',
 
-             // 'update'    => 'text',
 
-             'list'      => true,
 
-         ),
 
-         'l_fprice'      => array
 
-         (
 
-             'type'      => 'decimal-11,2',
 
-             'name'      => '零售店分润金额',
 
-             'default'   => '0',
 
-             'desc'      => '零售店分润金额',
 
-             'match'     => 'is_numeric',
 
-             // 'update'    => 'text',
 
-             // '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'      => '',
 
-         ),
 
-     ),
 
-     'manage' => array
 
-     (
 
-         'insert' => false,
 
-         'delete' => false,
 
-         'edit' => false,
 
-         'excel' => true,
 
-         'list_type' => 'tree',
 
-     ),
 
-     'request' => array
 
-     (
 
-         'getData' => array
 
-         (
 
-             # 匹配的正则或函数 选填项
 
-             'option' => array
 
-             (
 
-                 'mid' => 'yes',
 
-                 'state' => 1,
 
-             ),
 
-             'order' => array('id' => 'desc'),
 
-             'page' => array(10, 'list'),
 
-             'type' => 'all',
 
-             'col' => '*',
 
-         ),
 
-         'prev' => array
 
-         (
 
-             # 匹配的正则或函数 选填项
 
-             'option' => array
 
-             (
 
-                 'month' => array('yes-month', '<'),
 
-                 'mid' => 'yes',
 
-                 'state' => 1,
 
-             ),
 
-             'order' => array('time' => 'desc', 'id' => 'desc'),
 
-             'type' => 'one',
 
-             'col' => '*,min(month) as time, sum(num) as num',
 
-             # 允许自定义以上配置
 
-             'config' => true,
 
-         ),
 
-         'getMoney' => array
 
-         (
 
-             # 匹配的正则或函数 选填项
 
-             'option' => array
 
-             (
 
-                 'mid' => 'yes',
 
-                 'state' => 1,
 
-             ),
 
-             'type' => 'one',
 
-             'col' => 'sum(price) as  price',
 
-         ),
 
-         'getTy' => array
 
-         (
 
-             # 匹配的正则或函数 选填项
 
-             'option' => array
 
-             (
 
-                 'mid' => 'yes',
 
-                 'state' => 1,
 
-             ),
 
-             'type' => 'one',
 
-             'group' => 'mid',
 
-             'col' => 'sum(t_fprice) as t_fprice,sum(l_fprice) as l_fprice',
 
-         ),
 
-         'getTiyan' => array
 
-         (
 
-             # 匹配的正则或函数 选填项
 
-             'option' => array
 
-             (
 
-                 'mid' => 'yes',
 
-                 'state' => 1,
 
-             ),
 
-             'type' => 'all',
 
-             'order' => array('month'=>'desc'),
 
-             'page' => array(20, 'list'),
 
-             'col' => 't_fprice,l_fprice,month',
 
-         ),
 
-     ),
 
- );
 
 
  |