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: "bill_no",
        placeholder: "请输入单据编号",
        type: "input",
        label: "单据编号: "
    },
    {
        prop: "src_bill_no",
        placeholder: "请输入来源单号",
        type: "input",
        label: "来源单号: "
    },
    {
        prop: "order_no",
        placeholder: "请输入订单单号",
        type: "input",
        label: "订单单号: "
    },

    {
        prop: "notif_ret_status",
        placeholder: "请选择推送结果",
        type: "select",
        label: "推送结果: ",
        options: [
            {
                value: 1,
                label: "成功"
            },
            {
                value: -1,
                label: "失败"
            }
        ]
    },
    {
        prop: "material",
        placeholder: "请输入物料名称/编码/规格型号",
        type: "input",
        label: "物料编码: "
    },
    {
        prop: "org_number",
        placeholder: "请选择组织",
        type: "selectMultiple",
        label: "组织: ",
        options: []
    },
    {
        prop: "warehouse_number",
        placeholder: "请选择仓库",
        type: "select",
        label: "仓库: ",
        options: []
    },
    {
        prop: "sub_warehouse_name",
        placeholder: "请输入子仓库",
        type: "input",
        label: "子仓库: "
    },

    {
        prop: "Time",
        type: "daterange",
        options: [],
        startPlaceholder: "入库开始日期",
        endPlaceholder: "入库结束日期",
        startDate: "storage_time",
        // endDate: "createEndDate",
        label: "入库日期: "
    },
    {
        prop: "subscriber_name",
        placeholder: "请输入订阅人",
        type: "input",
        label: "订阅人: "
    }
];

export const RULE_FORM = {
    page: 1,
    size: 50,
    org_number: ["101"],
    subscriber_name: ""
};
