订单详情

This commit is contained in:
liu
2026-08-11 23:26:34 +08:00
parent 5d26f04ba2
commit ce958d690f
10 changed files with 996 additions and 70 deletions
+24 -1
View File
@@ -1,19 +1,42 @@
/** 门店订单明细(商品快照) */
/** 门店订单明细(下单时商品档案快照) */
export interface IStoreOrderItem {
id?: number;
order_id?: number;
store_id?: number;
product_id?: number;
category_id?: number;
supplier_id?: number;
/** 详情接口附带的供应商信息 */
supplier?: { id: number; name: string };
product_name?: string;
product_spec?: string;
/** 计价单位(斤/件/箱等) */
unit?: string;
price?: string;
/** 列表接口附带的封面图 */
image?: string;
image_ids?: string;
shelf_life?: number;
quantity?: number;
weight?: string;
amount?: string;
/** 成本价(仅后台接口可见) */
cost_price?: string;
remark?: string;
}
/** 修改订单明细入参(保存后后端重算单品金额与订单总价) */
export interface IStoreOrderItemUpdate {
supplier_id: number;
product_name: string;
product_spec?: string;
unit: string;
price: number;
cost_price: number;
quantity: number;
weight: number;
}
/** 门店订单 */
export default interface IStoreOrder {
id?: number;