UNPKG

@pisell/pisellos

Version:

一个可扩展的前端模块化SDK框架,支持插件系统

51 lines (50 loc) 1.33 kB
/** * 报价单模块状态 */ export interface QuotationState { /** 报价单列表 */ quotationList: QuotationData[]; } /** * 报价单数据结构 */ export interface QuotationData { /** 报价单 ID */ id: number; /** 报价单名称 */ name: string; /** 绑定的日程 ID 列表 */ schedule_ids: number[]; /** 商品价格配置列表 */ product_prices: QuotationProductPrice[]; /** 状态 */ status: 'active' | 'inactive'; /** 优先级(多个报价单同时生效时使用) */ priority: number; /** 创建时间 */ created_at: string; /** 更新时间 */ updated_at: string; } /** * 报价单商品价格配置 */ export interface QuotationProductPrice { /** 商品 ID */ product_id: number; /** 规格 ID(可选,针对有规格的商品) */ variant_id?: number; /** 折扣类型:fixed 固定价格,percentage 百分比折扣 */ discount_type: 'fixed' | 'percentage'; /** 折扣价格或百分比 */ discount_value: string; /** 最终价格(仅当 discount_type 为 fixed 时) */ final_price?: string; } /** * 报价单模块钩子 */ export declare enum QuotationHooks { onQuotationLoaded = "quotation:onQuotationLoaded", onQuotationChanged = "quotation:onQuotationChanged" }