import { RenderScope } from "@/components/ProTable/interface";
export const COLUMNS = [
    { type: "selection", fixed: "left", width: 40 },
    {
        align: "left",
        fixed: true,
        label: "防伪码批次",
        prop: "lotNumber",
        width: 260
    },
    {
        align: "left",
        label: "规格型号",
        prop: "specifications",
        width: 260
    },
    {
        align: "left",
        label: "物料名称",
        prop: "materialName",
        width: 260
    },
    {
        align: "left",
        label: "物料编码",
        prop: "materialNumber",
        width: 260
    },
    {
        align: "left",
        label: "生成状态",
        prop: "generateComplete",
        width: 160
    },
    {
        align: "left",
        label: "生成数",
        prop: "number",
        width: 120,
        render: (scope: RenderScope<any>): VNode | string | any => {
            return scope.row.number != 0 ? scope.row.number : "";
        }
    },
    {
        align: "left",
        label: "已下载防伪码数",
        prop: "downLoadNumber",
        width: 120
    },
    {
        align: "left",
        label: "生成时间",
        prop: "createTime",
        width: 160
    },
    {
        align: "left",
        label: "生成人",
        prop: "creator",
        width: 160
    },
    { prop: "operation", label: "操作", fixed: "right", width: 160 }
];
export const DOWN_COLUMNS = [
    { type: "selection", fixed: "left", width: 40 },
    {
        align: "left",
        fixed: true,
        label: "防伪码",
        prop: "securityNumber",
        width: 200
    },
    {
        align: "left",
        label: "流水号",
        prop: "id",
        width: 160
    },
    {
        align: "left",
        label: "规格型号",
        prop: "specifications",
        width: 200
    },
    {
        align: "left",
        label: "生成时间",
        prop: "createTime",
        width: 200
    },
    {
        align: "left",
        label: "下载次数",
        prop: "downLoadNumber",
        width: 80
    },

    {
        align: "left",
        label: "最近下载时间",
        prop: "downLoadTime",
        width: 200
    }
];
