<?php
$extend = Dever::load('common', 'manage')->extend();
$seller_id = $extend['data_id'];
return array
(
    'source' => 'seller/log',
    'list' => array
    (
        'where' => array('seller_id' => $seller_id),
        'stat' => 'seller/manage.showLogStat',
        'field'      => array
        (
            'type' => array
            (
                'width' => '120',
            ),
            'cash' => array
            (
                'width' => '150',
            ),
            //'yue',
            'desc' => array
            (
                'name' => '操作备注/订单号',
                'show' => '"{desc}" ? "{desc}" : Dever::load("manage", "seller")->showOrder({order_id})',
            ),
            'cdate' => array
            (
                'name' => '时间',
                'width' => '150',
            ),
        ),
        'data_button' => array
        (
            
        ),
        'button' => array
        (
            //'账户操作' => array('fastadd', array('seller_id' => $seller_id)),
        ),
        'export' => array
        (
            //'out' => '导出',
            //'manage/common.out' => '自定义导出',
        ),
        'search' => array
        (
            'type',
            //'desc',
            'order_id' => array
            (
                'name' => '系统订单号',
                'search' => array
                (
                    'table' => 'seller/order',
                    'where' => array('order_num' => '{value}'),
                    'set' => array(),
                    'field' => 'id',
                ),
            ),
            'cdate' => array
            (
                'name' => '时间',
                'type' => 'date',
                'date_type' => 'datetimerange',
                'value_format' => 'YYYY-MM-DD HH:mm:ss',
                'start_placeholder' => '开始时间',
                'end_placeholder' => '结束时间',
                'range_separator' => '至',
            ),
        ),
    ),
);