import type { SkuListItem as SkuListItemType } from '../../type';
/** 规格属性项 */
export interface SpecItem {
    /** 规格属性id */
    id: string | number;
    /** 规格属性名称 */
    name: string;
    /** 规格属性值 */
    value: string;
    /** 规格属性值id */
    valueId: string | number;
}
/** 表头配置项 */
export interface TheadConfigItem {
    /** 字段标识 */
    key: string;
    /** 显示名称 */
    name: string;
    /** 显示类型 */
    type?: 'text' | 'image';
    /** 是否合并行 */
    mergeRowSpan?: boolean;
}
/** SKU列表项（包含处理后的字段） */
export interface SkuListItem {
    /** SKU ID */
    skuId: string;
    /** SKU编号 */
    skuNumber?: string;
    /** 商品编号 */
    goodsNo?: string;
    /** 商品条码 */
    upc?: string;
    /** 商品图片 */
    image?: string;
    /** 库存数量 */
    stock?: number;
    /** 规格属性排序 */
    skuPropertyOrder: string;
    /** 规格属性列表（JSON字符串或数组） */
    specList: string | SpecItem[];
    /** 市场价（分） */
    marketPrice?: string;
    /** 采购价（分） */
    purchasePrice?: string;
    /** 销售价（分） */
    salePrice?: string;
    /** 处理后的规格属性名称列表 */
    propertyNames?: string[];
    /** 处理后的规格属性值列表 */
    cartesianSkuItem?: string[];
    /** 处理后的市场价（元） */
    marketPriceFormatted?: string;
    /** 处理后的采购价（元） */
    purchasePriceFormatted?: string;
    /** 处理后的销售价（元） */
    salePriceFormatted?: string;
    [key: string]: any;
}
/** SKU价格列表项 */
export interface SkuPriceListItem {
    /** SKU ID */
    skuId: string;
    /** 商品编号 */
    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: SkuListItemType[];
    /** SKU价格列表 */
    skuPriceList?: SkuPriceListItem[];
}
/** 表头属性 */
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价格列表 */
    skuPriceList?: SkuPriceListItem[];
    /** 单个属性数量 */
    singleAttributeNum: number;
}
/** 属性项 */
export interface AttributeItem {
    /** 属性值 */
    attribute: string;
}
/** 属性组 */
export interface AttributeGroup {
    /** 属性名称 */
    propertyName: string;
    /** 属性列表 */
    attributes: AttributeItem[];
}
