import type { SkuListItem, SpecItem } from '../../type';
export type { SpecItem };
/** 表头配置项 */
export interface TheadConfigItem {
    /** 字段标识 */
    key: string;
    /** 显示名称 */
    name: string;
    /** 显示类型 */
    type?: 'text' | 'image';
    /** 是否合并行 */
    mergeRowSpan?: boolean;
}
/** SKU价格列表项 */
export interface SkuDataListItem {
    /** 商品编号 */
    goodsNo?: string;
    /** 商品条码 */
    upc?: string;
    /** 规格属性排序 */
    skuPropertyOrder: string;
    /** 规格属性列表 */
    specList?: SpecItem[];
    /** 采购价（元） */
    purchasePrice?: string;
    /** 销售价（元） */
    salePrice?: string;
    /** 市场价（元） */
    marketPrice?: string;
    /** 样品价（元） */
    samplePrice?: string;
    /** 供应商样品价（元） */
    supplierSamplePrice?: string;
    /** 样品库存 */
    sampleStock?: number;
    /** 样品限购数量 */
    sampleLimitNum?: number;
    [key: string]: any;
}
/** 商品SKU表格组件属性 */
export interface GoodsSkuTableProps {
    /** 表头配置 */
    thead?: TheadConfigItem[];
    /** 包装数量 */
    boxNumber?: number;
    /** 计量单位 */
    measureUnit?: number;
    /** SKU列表 */
    skuList: SkuListItem[];
    /** SKU数据列表 */
    skuDataList?: SkuDataListItem[];
}
/** 表头属性 */
export interface TheadProps {
    /** 属性名称列表 */
    propertyNames: string[];
    /** 表头配置 */
    thead?: TheadConfigItem[];
    /** 其他表头配置 */
    otherThead?: TheadConfigItem[];
}
/** 金额类型 */
export type MoneyType = number | string;
/** 金额显示函数类型 */
export interface ShowMoneyType {
    (data: MoneyType): string;
}
/** 表体属性 */
export interface TbodyProps {
    /** 表头配置 */
    thead?: TheadConfigItem[];
    /** 其他表头配置 */
    otherThead?: TheadConfigItem[];
    /** 包装数量 */
    boxNumber?: number;
    /** 计量单位 */
    measureUnit?: number;
    /** SKU列表 */
    skuList: SkuListItem[];
    /** SKU数据列表 */
    skuDataList?: SkuDataListItem[];
    /** 单个属性数量 */
    singleAttributeNum: number;
}
/** 属性项 */
export interface AttributeItem {
    /** 属性值 */
    attribute: string;
}
/** 属性组 */
export interface AttributeGroup {
    /** 属性名称 */
    propertyName: string;
    /** 属性列表 */
    attributes: AttributeItem[];
}
