import { RenderScope } from "@/components/ProTable/interface";
export const PRINT_CODE_FORM_COLUMNS = [
    { type: "selection", fixed: "left", width: 40 },
    {
        align: "left",
        fixed: true,
        label: "物料编码",
        prop: "materialNumber",
        width: 200
    },
    {
        align: "left",
        label: "名称",
        prop: "materialName",
        width: 210
    },

    {
        align: "left",
        label: "规格型号",
        prop: "specifications",
        width: 200
    },
    {
        align: "left",
        label: "转换前规格型号",
        prop: "old_Specifications",
        width: 200
    },
    {
        align: "left",
        label: "条码",
        prop: "barCode",
        width: 120
    },
    {
        align: "left",
        label: "序列号",
        prop: "serialNumber",
        width: 120
    },
    {
        align: "left",
        label: "数字序列号",
        prop: "numberCode",
        width: 160
    },
    {
        align: "left",
        label: "序号",
        prop: "id",
        width: 120
    },
    {
        align: "left",
        label: "是否使用",
        prop: "isUse",
        width: 120,
        render: (scope: RenderScope<any>): VNode | string | any => {
            return scope.row.isUse ? "是" : "否";
        }
    },
    {
        align: "left",
        label: "所在箱号",
        prop: "box",
        width: 160
    },
    {
        align: "left",
        label: "生成时间",
        prop: "createTime",
        width: 160
    },
    {
        align: "left",
        label: "打印/下载次数",
        prop: "printNumber",
        width: 200,
        render: (scope: RenderScope<any>): VNode | string | any => {
            return scope.row.printNumber + " /" + scope.row.downLoadNumber;
        }
    },

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