//生成条码
export const GENERATE_CODE_COLUMNS = [
    {
        label: "规格型号",
        prop: "specifications",
        disabled: false,
        formType: "selectRemote",
        options: [],
        placeholder: "请输入关键字",
        isHeaderIcon: true,
        filterable: true,
        required: true,
        width: 310
    },

    {
        label: "生成数量",
        prop: "number",
        disabled: false,
        isHeaderIcon: true,
        formType: "input", // "inputMumber",
        required: true,
        maxLength: 4,
        width: 150,
        tooltip: "最大生成数量为1000"
    },
    {
        label: "采购订单号",
        prop: "purchaseBillNo",
        disabled: false,
        formType: "input",
        maxLength: 50,
        width: 150,
        required: true,
        isHeaderIcon: true
    },
    {
        label: "两件装产品",
        prop: "isTwo",
        disabled: false,
        formType: "checkbox",
        // maxLength: 50,
        width: 150,
        maxLength: 4,
        tooltip: "两件装产品一定要勾选, 否则无法打印对应条码!",
        // required: true,
        isHeaderIcon: true
    },
    {
        label: "名称",
        prop: "materialName",
        disabled: false,
        isHeaderIcon: false
    },
    {
        label: "条码",
        prop: "barCode",
        disabled: false,
        isHeaderIcon: false,
        width: 150
    },
    {
        label: "物料编码",
        prop: "materialNumber",
        disabled: false,
        isHeaderIcon: false,
        width: 180
    },
    {
        label: "操作",
        prop: "operation",
        disabled: false,
        isHeaderIcon: false,
        width: 80
    }
];

export const GENERATE_CODE_FORM = [
    {
        specifications: "",
        number: null,
        purchaseBillNo: "",
        materialName: "",
        barCode: "",
        materialNumber: "",
        isTwo: 1
    }
];
//用于增加的时候默认数据
export const GENERATE_CODE_FORM_INIT = {
    specifications: "",
    number: null,
    purchaseBillNo: "",
    materialName: "",
    barCode: "",
    materialNumber: "",
    isTwo: 1
};
