import { RenderScope } from "@/components/ProTable/interface";
export const COLUMNS = [
    { type: "selection", fixed: "left", width: 40 },
    {
        align: "left",
        fixed: true,
        label: "箱码",
        prop: "boxBillNo",
        width: 200
    },
    {
        align: "left",
        label: "箱码生成时间",
        prop: "createTime",
        width: 160
    },
    {
        align: "left",
        label: "规格型号",
        prop: "specifications",
        width: 260
    },
    {
        align: "left",
        label: "序列号",
        prop: "serialNumbers",
        width: 200
    },
    {
        align: "left",
        label: "装箱数量",
        prop: "qty",
        width: 200
    },
    {
        align: "left",
        label: "装箱状态",
        prop: "status",
        width: 120,
        render: (scope: RenderScope<any>): VNode | string | any => {
            const STATUS: any = {
                0: "未使用",
                1: "未完成",
                2: "已完成"
            };
            return STATUS[scope.row.status];
        }
    },
    {
        align: "left",
        label: "装箱开始时间",
        prop: "cartonBeginTime",
        width: 160
    },
    {
        align: "left",
        label: "装箱结束时间",
        prop: "cartonEndTime",
        width: 160
    },
    {
        align: "left",
        label: "装箱人",
        prop: "cartonUser",
        width: 120
    },
    {
        align: "left",
        label: "供应商/组织",
        prop: "supplierOrOrg",
        width: 240
    },
    {
        align: "left",
        label: "物料编码",
        prop: "materialNumber",
        width: 160
    },
    {
        align: "left",
        label: "物料名称",
        prop: "materialName",
        width: 120
    },
    {
        align: "left",
        label: "箱号打印次数",
        prop: "printNumber",
        width: 200
    },
    {
        align: "left",
        label: "生成人",
        prop: "creator",
        width: 200
    }
    // {
    //     align: "left",
    //     label: "生成时间",
    //     prop: "createTime",
    //     width: 200
    // }
];
//formTableData formTableColumns
export const FORM_TABLE_COLUMNS = [
    {
        label: "序列号",
        prop: "serialNumber",
        disabled: false,
        isHeaderIcon: true,
        formType: "input",
        fixed: true,
        required: true,
        width: 150,
        options: []
    },

    {
        label: "数字序列号",
        prop: "numberCode",
        disabled: false,
        width: 150
    },
    {
        label: "规格型号",
        prop: "specifications",
        disabled: false,
        width: 150
    },
    {
        label: "条码",
        prop: "barCode",
        disabled: false,
        isHeaderIcon: false,
        width: 100
    },

    {
        label: "两件装第二个序列号",
        prop: "twoSerialNumber",
        disabled: false,
        isHeaderIcon: false,
        width: 160
    },

    {
        label: "物料名称",
        prop: "materialName",
        disabled: false,
        isHeaderIcon: false
    },

    {
        label: "物料编码",
        prop: "materialNumber",
        disabled: false,
        isHeaderIcon: false,
        width: 180
    },
    {
        label: "操作",
        prop: "operation",
        disabled: false,
        isHeaderIcon: false,
        width: 80
    }
];
export const FORM_TABLE_DATA = [];
//用于增加的时候默认数据
export const FORM_TABLE_DATA_INIT = {
    serialNumber: "",
    specifications: "",
    barCode: "",
    materialName: "",
    materialNumber: "",
    isOldData: false
};
