优化采购单

This commit is contained in:
liu
2026-08-13 10:53:11 +08:00
parent 79e3ed4a8a
commit 099e92b1ff
9 changed files with 221 additions and 133 deletions
-2
View File
@@ -73,8 +73,6 @@ export interface IPurchaseCellItem {
remark: string;
/** 首图 */
image?: string;
/** 是否可编辑/同步(采购单进行中且订货单未锁定) */
editable: boolean;
}
/** 单元格下钻数据(门店 + 商品 + 全部订货明细) */
+6 -10
View File
@@ -73,6 +73,12 @@ export default interface IStoreOrder {
remark?: string;
items?: IStoreOrderItem[];
created_at?: string;
purchase?: {
id: number;
purchase_no: string;
purchase_date: string;
status: number;
}
}
export const STORE_ORDER_STATUS_MAP: Record<number, { text: string; color: string }> = {
@@ -83,13 +89,3 @@ export const STORE_ORDER_STATUS_MAP: Record<number, { text: string; color: strin
4: { text: '已完成', color: 'success' },
9: { text: '已取消', color: 'error' },
};
/** 待汇总预览行 */
export interface IOrderSummaryRow {
product_id: number;
product_name: string;
product_spec: string;
unit: string;
total_quantity: string;
store_count: number;
}