// import { STATUS } from "@/constant";
import { RenderScope } from "@/components/ProTable/interface";

// 销售订单  表格配置项
export const COLUMNS = [
    { type: "selection", fixed: "left", width: 40 },
    {
        align: "left",
        label: "单据号",
        prop: "billNo",
        fixed: true
    },
    {
        align: "left",
        fixed: true,
        label: "单据类型",
        prop: "type"
    },
    {
        align: "left",
        label: "箱号",
        prop: "boxBillNo"
    },
    {
        align: "left",
        label: "仓位",
        prop: "subStock"
    },
    {
        align: "left",
        label: "规格型号",
        prop: "specifications"
    },
    {
        align: "left",
        label: "物料名称",
        prop: "materialName"
    },
    {
        align: "left",
        label: "物料编码",
        prop: "materialNumber"
    },
    {
        align: "left",
        label: "序列号",
        prop: "serialNumbers"
    },
    {
        align: "left",
        label: "操作数量",
        prop: "qty"
    },
    {
        align: "left",
        label: "操作时间",
        prop: "createTime",
        width: "160"
    },
    {
        align: "left",
        label: "操作人",
        prop: "creator"
    },
    {
        align: "left",
        label: "备注",
        prop: "remark",
        render: (scope: RenderScope<any>): VNode | string | any => {
            return scope.row.remark ? scope.row.remark : "";
        }
    }
];
