From e65a432f5c9fc11d15d53ae0e16e5f4b7d62400a Mon Sep 17 00:00:00 2001
From: wsj <593216709@qq.com>
Date: Sat, 17 Oct 2026 20:53:17 +0800
Subject: [PATCH] feat: api
---
src/pages/business/orders/types.ts | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/src/pages/business/orders/types.ts b/src/pages/business/orders/types.ts
new file mode 100644
index 0000000..891364d
--- /dev/null
+++ b/src/pages/business/orders/types.ts
@@ -0,0 +1,19 @@
+export type OrderStatus = 'pending' | 'processing' | 'completed' | 'cancelled';
+
+export interface OrderRecord {
+ key: string;
+ id: string;
+ customer: string;
+ contact: string;
+ amount: number;
+ channel: string;
+ status: OrderStatus;
+ createdAt: string;
+}
+
+export const ORDER_STATUS_META: Record<OrderStatus, { label: string; color: string }> = {
+ pending: { label: '待付款', color: 'orange' },
+ processing: { label: '处理中', color: 'processing' },
+ completed: { label: '已完成', color: 'success' },
+ cancelled: { label: '已取消', color: 'default' },
+};
--
Gitblit v1.9.3