interface FormItem {
    prop: string;
    label?: string;
    placeholder?: string;
    type: string;
    isCopy?: boolean;
    optionProps?: any;
    startPlaceholder?: string;
    endPlaceholder?: string;
    options?: any;
    isArray?: boolean;
    startDate?: string; //开始时间(传入后台需要的参数)
    endDate?: string; //结束时间(传入后台需要的参数)
    startProp?: string;
    endProp?: string;
    isInteger?: boolean;
}
export const FORM_DATA: FormItem[] = [
    {
        prop: "securityNumbers",
        placeholder: "请输入防伪码",
        type: "input",
        isArray: true,
        label: "防伪码: "
    },
    {
        prop: "Time",
        type: "daterange",
        options: [],
        startPlaceholder: "生成开始日期",
        endPlaceholder: "生成结束日期",
        startDate: "createBeginDate",
        endDate: "createEndDate",
        label: "生成时间: "
    },

    {
        prop: "generateComplete",
        placeholder: "请选择条码生成状态",
        type: "select",
        options: [
            {
                value: true,
                label: "已完成"
            },
            {
                value: false,
                label: "生成中"
            }
        ],
        label: "条码生成状态: "
    },

    {
        prop: "lotNumbers",
        placeholder: "请输入防伪码批次号",
        type: "input",
        isArray: true,
        label: "防伪码批号: "
    },
    {
        prop: "materialNumber",
        placeholder: "请输入規格型号",
        type: "selectRemote1",
        isArray: true,
        options: [],
        label: "规格型号: "
    },
    {
        prop: "createUser",
        placeholder: "请输入生成人",
        type: "input",
        label: "生成人: "
    }
];

export const RULE_FORM = {
    pageNo: 1,
    pageSize: 50,
    orgCode: 0
    // createUser: ""
};
export const DOWN_FORM_DATA: any[] = [
    {
        prop: "isDownLoad",
        placeholder: "请选择防伪码下载状态",
        type: "select",
        label: "防伪码下载状态: ",
        options: [
            {
                value: true,
                label: "已下载"
            },
            {
                value: false,
                label: "未下载"
            }
        ]
    },
    {
        prop: "Time",
        type: "daterange",
        options: [],
        label: "下载时间: ",
        startPlaceholder: "下载开始日期",
        endPlaceholder: "下载结束日期",
        startDate: "downLoadBeginDate",
        endDate: "downLoadEndDate"
    },

    {
        prop: "securityNumbers",
        placeholder: "请输入防伪码",
        type: "input",
        isArray: true,
        label: "防伪码: "
    },
    {
        startProp: "idBegin",
        endProp: "idEnd",
        startPlaceholder: "流水号区间值",
        endPlaceholder: "流水号区间值",
        type: "inputs",
        // isInteger: true,
        label: "流水号区间: "
    }
];
export const DOWN_RULE_FORM = {
    pageNo: 1,
    pageSize: 50,
    orgCode: 0,
    generateRecordId: 0
};
