采购单优化
This commit is contained in:
@@ -84,6 +84,28 @@ export interface IPurchaseCell {
|
||||
items: IPurchaseCellItem[];
|
||||
}
|
||||
|
||||
/** 门店购买详情行(门店采购汇总,按商品聚合) */
|
||||
export interface IPurchaseStoreItem {
|
||||
product_id: number;
|
||||
product_name: string;
|
||||
/** 规格/包规 */
|
||||
product_spec: string;
|
||||
unit: string;
|
||||
/** 单价(每包;多笔单价时为加权平均,保证 单价×数量=预计金额) */
|
||||
price: string;
|
||||
/** 数量(包数) */
|
||||
quantity: number;
|
||||
/** 预计金额 = Σ 明细 amount */
|
||||
amount: string;
|
||||
weight: string;
|
||||
}
|
||||
|
||||
/** 门店购买详情(采购单内某门店的采购汇总) */
|
||||
export interface IPurchaseStoreSummary {
|
||||
store: { id: number; name: string } | null;
|
||||
items: IPurchaseStoreItem[];
|
||||
}
|
||||
|
||||
export const PURCHASE_STATUS_MAP: Record<number, { text: string; color: string }> = {
|
||||
0: { text: '进行中', color: 'processing' },
|
||||
3: { text: '已完成', color: 'success' },
|
||||
|
||||
Reference in New Issue
Block a user