123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224 |
- <?php
- if (Dever::load('manage/auth')->checkFunc('bill.shop_stat', 'editSout', '导出数据')) {
- 'button' => array
- (
- '数据导出' => array('excel','bill/lib/manage.out_shop_stat'),
- ),
- }
- $shop = function()
- {
- $array = array();
- $data = Dever::db('shop/info-state');
- if($data)
- {
- $array += $data;
- }
- return $array;
- };
- $config = array
- (
- # 表名
- 'name' => 'shop_stat',
- # 显示给用户看的名称
- 'lang' => '归店统计',
- 'order' => -10,
- # 数据结构 不同的字段放这里
- 'struct' => array
- (
- 'id' => array
- (
- 'type' => 'int-11',
- 'name' => 'ID',
- 'default' => '',
- 'desc' => '',
- 'match' => 'is_numeric',
- //'list' => true,
- ),
- 'month' => array
- (
- 'type' => 'int-11',
- 'name' => '月份',
- 'default' => '',
- 'match' => 'is_numeric',
- 'desc' => '',
- 'search' => 'month',
- 'list' => 'date("Y-m", {month})',
- ),
- 'shop_id' => array
- (
- 'type' => 'int-11',
- 'name' => '店铺名称',
- 'default' => '',
- 'desc' => '店铺名称',
- 'match' => 'is_numeric',
- 'option' => $shop,
- 'list' => true,
- //'list_order' => 6,
- ),
- 'num' => array
- (
- 'type' => 'int-11',
- 'name' => '代理商总数量',
- 'default' => '0',
- 'desc' => '代理商总数量',
- 'match' => 'is_numeric',
- 'search' => 'order',
- // 'list' => true,
- ),
- 'dl_num' => array
- (
- 'type' => 'int-11',
- 'name' => '代理商<br/>数量-除掉创v的数量',
- 'default' => '0',
- 'desc' => '代理商数量',
- 'match' => 'is_numeric',
- // 'search' => 'order',
- 'list' => true,
- ),
- 'v_num' => array
- (
- 'type' => 'int-11',
- 'name' => '创V总数量',
- 'default' => '0',
- 'desc' => '创V总数量',
- 'match' => 'is_numeric',
- // 'search' => 'order',
- // 'list' => true,
- ),
- 'out_num' => array
- (
- 'type' => 'int-11',
- 'name' => '创V名额<br/>外数量',
- 'default' => '0',
- 'desc' => '创V名额外数量',
- 'match' => 'is_numeric',
- // 'search' => 'order',
- 'list' => true,
- ),
- 'nei_num' => array
- (
- 'type' => 'int-11',
- 'name' => '创V名额<br/>内数量',
- 'default' => '0',
- 'desc' => '创V名额内数量',
- 'match' => 'is_numeric',
- // 'search' => 'order',
- 'list' => true,
- ),
- 'money' => array
- (
- 'type' => 'decimal-11,2',
- 'name' => '代理商的总业绩',
- 'default' => '0',
- 'desc' => '代理商的总业绩',
- 'match' => 'is_numeric',
- 'update' => 'text',
- // 'list' => true,
- ),
- 'dl_money' => array
- (
- 'type' => 'decimal-11,2',
- 'name' => '代理商<br/>业绩',
- 'default' => '0',
- 'desc' => '代理商业绩',
- 'match' => 'is_numeric',
- 'update' => 'text',
- 'list' => true,
- ),
- 'v_money' => array
- (
- 'type' => 'decimal-11,2',
- 'name' => '创V总业绩',
- 'default' => '0',
- 'desc' => '创V总业绩',
- 'match' => 'is_numeric',
- 'update' => 'text',
- // 'list' => true,
- ),
- 'out_money' => array
- (
- 'type' => 'decimal-11,2',
- 'name' => '创V名额<br/>外业绩',
- 'default' => '0',
- 'desc' => '创V名额外业绩',
- 'match' => 'is_numeric',
- 'update' => 'text',
- 'list' => true,
- ),
- 'nei_money' => array
- (
- 'type' => 'decimal-11,2',
- 'name' => '创V名额<br/>内业绩',
- 'default' => '0',
- 'desc' => '创V名额内业绩',
- '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' => '',
- # 只有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' => $excel,
- 'button' => $button,
-
- ),
- # request 请求接口定义
- 'request' => array
- (
- 'getExcelAll' => array
- (
- # 匹配的正则或函数 选填项
- 'option' => array
- (
- 'start' => array('yes-month', '>='),
- 'end' => array('yes-month', '<='),
- 'state' => 1,
- ),
- 'type' => 'all',
- 'col' => '*',
- ),
- ),
- );
- return $config;
|