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: "src_bill_no",
        placeholder: "请输入来源单号",
        type: "input",
        label: "来源单号: "
    },
    {
        prop: "supplier_number",
        placeholder: "请选择供应商",
        type: "selectRemote",
        label: "供应商: ",
        options: []
    },
    {
        prop: "inspector",
        placeholder: "请输入质检人",
        type: "input",
        label: "质检人: "
    },
    {
        prop: "Time",
        type: "daterange",
        options: [],
        startPlaceholder: "质检开始日期",
        endPlaceholder: "质检结束日期",
        startDate: "inspection_time",
        label: "质检时间: "
    },
    {
        prop: "org_number",
        placeholder: "请选择组织",
        type: "selectRemote",
        options: [],
        label: "组织: "
    },

    {
        prop: "material_number",
        placeholder: "请输入物料编码",
        type: "input",
        label: "物料编码: "
    },
    {
        prop: "status",
        placeholder: "请选择质检状态",
        type: "select",
        options: [
            { label: "已作废", value: -1 },
            { label: "待质检", value: 0 },
            { label: "部分质检", value: 1 },
            { label: "已质检", value: 2 }
        ],
        label: "质检状态: "
    }
];

export const RULE_FORM = {
    page: 1,
    size: 50
};
