<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/5/10 0010
 * Time: 14:13
 */

namespace App\Http\Requests\Report;

use App\Http\Requests\Request;

class SummaryRequest extends Request
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        if (!$this->ajax()) {
            return [];
        }
        return [
            'dataList' => 'nullable|array',
            'remark' => 'nullable',
            'fileList' => 'nullable|array',
            'selectManageList'=>'nullable|array',
            'selectCustomerList'=>'nullable|array',
        ];
    }

    public function attributes()
    {
        return [
            'dataList' => '月底总结表格',
            'remark' => '月度总结内容',
            'fileList' => '文件',
        ];
    }
}