// import { useUserStore } from "@/stores/modules/user";
// const userStore: any = useUserStore();
interface FormItem {
    prop: string;
    label?: string;
    placeholder?: string;
    type: string;
    isCopy?: boolean;
    optionProps?: any;
    startPlaceholder?: string;
    endPlaceholder?: string;
    options?: any;
    isArray?: boolean;
    maxlength?: number;
    isTime?: boolean; //用于切割日期数组
    startDate?: string; //开始时间(传入后台需要的参数)
    endDate?: string; //结束时间(传入后台需要的参数)
}
export const FORM_DATA: FormItem[] = [
    {
        prop: "supplierOrOrg",
        placeholder: "请输入供应商",
        type: "selectRemote",
        options: [],
        label: "供应商: "
    },
    {
        prop: "Time",
        type: "daterange",
        options: [],
        startPlaceholder: "生成开始日期",
        endPlaceholder: "生成结束日期",
        startDate: "createBeginDate",
        endDate: "createEndDate",
        label: "生成日期: "
    },
    {
        prop: "serialNumbers",
        placeholder: "请输入序列号",
        type: "inputBtn",
        isArray: true,
        label: "序列号: ",
        maxlength: 6000
    },
    {
        prop: "generateComplete",
        placeholder: "请选择条码生成状态",
        type: "select",
        options: [
            {
                label: "已完成",
                value: true
            },
            {
                label: "生成中",
                value: false
            }
        ],
        label: "条码生成状态: "
    },
    {
        prop: "materialNumber",
        placeholder: "请输入物料名称/规格型号/编码",
        type: "input",
        label: "物料: "
    },
    {
        prop: "purchaseBillNos",
        placeholder: "请输入采购订单号",
        type: "input",
        isArray: true,
        label: "采购订单号: "
    },
    {
        prop: "boxBillNos",
        placeholder: "请输入箱号",
        type: "input",
        isArray: true,
        label: "箱号: "
    },
    {
        prop: "numberCodes",
        placeholder: "请输入数字序列号",
        type: "inputBtn",
        isArray: true,
        label: "数字序列号: "
    },
    {
        prop: "createUser",
        placeholder: "请输入生成人",
        type: "input",
        label: "生成人: "
    },
    {
        prop: "isUpdateMaterial",
        placeholder: "请选择",
        type: "select",
        options: [
            {
                label: "是",
                value: true
            },
            {
                label: "否",
                value: false
            }
        ],
        label: "是否转换规格: "
    },

    {
        prop: "isTwo",
        placeholder: "请选择",
        type: "select",
        options: [
            {
                label: "是",
                value: 2
            },
            {
                label: "否",
                value: 1
            }
        ],
        label: "是否两件装: "
    }
];

export const RULE_FORM = {
    pageNo: 1,
    pageSize: 50,
    isTwo: 0
    // createUser: userStore.userInfo.nickname
};
