import moment from "moment";
export const searchFormConfig = {
    labelWidth: '120px',
    itemStyle: {
        padding: '0px',
    },
    colLayout: {
        span: 6,
    },
    formItems: [{
            field: 'note',
            type: 'select',
            label: '接线医院',
            placeholder: '请选择接线医院',
            clearable: true,
            options: [
                { title: '八院', value: '1' },
                { title: '九院', value: '2' },
            ],
        },
        {
            field: 'caller',
            type: 'input',
            label: '主叫号码',
            placeholder: '请输入来电号码',
        },
        {
            field: 'callee',
            type: 'input',
            label: '被叫号码',
            placeholder: '请输入来电号码',
        },
        {
            field: 'callType',
            type: 'select',
            label: '呼叫类型',
            placeholder: '请选择呼叫类型',
            clearable: true,
            options: [
                { title: '呼入', value: 1 },
                { title: '呼出', value: 2 },
            ],
        },
        {
            field: 'isAnswer',
            type: 'select',
            label: '呼叫状态',
            placeholder: '请选择呼叫状态',
            clearable: true,
            options: [
                { title: '未接通', value: 0 },
                { title: '已接通', value: 1 },
            ],
        },
        {
            field: 'agent',
            type: 'input',
            label: '坐席',
            placeholder: '请输入坐席工号',
        },
        // {
        //   field: 'agent',
        //   type: 'input',
        //   label: '工号',
        //   placeholder: '请输入工号',
        // },
        {
            field: 'timeRange',
            type: 'datepicker',
            label: '操作时间',
            placeholder: '请选择时间',
            otherOptions: {
                'range-separator': '至',
                type: 'datetimerange',
                'value-format': 'YYYY-MM-DD HH:mm:ss',
            },
            fieldArray: ['startTime', 'endTime'],
            resFormat: (time) => {
                return moment(time).format('YYYY-MM-DD HH:mm:ss');
            },
        },
    ],
};