diff --git a/src/components/fulfillment-supplies/marketplace-supplies/ozon-supplies-tab.tsx b/src/components/fulfillment-supplies/marketplace-supplies/ozon-supplies-tab.tsx
index e1f0f64..6d08f15 100644
--- a/src/components/fulfillment-supplies/marketplace-supplies/ozon-supplies-tab.tsx
+++ b/src/components/fulfillment-supplies/marketplace-supplies/ozon-supplies-tab.tsx
@@ -17,51 +17,7 @@ import {
Box,
} from "lucide-react";
-// Мок данные для поставок на Ozon
-const mockOzonSupplies = [
- {
- id: "1",
- supplyId: "OZ-SP-240113-001",
- warehouse: "Тверь",
- deliveryDate: "2024-01-16",
- status: "awaiting_packaging",
- totalItems: 120,
- totalBoxes: 10,
- estimatedValue: 380000,
- products: [
- { name: "Телефон Samsung A54", quantity: 40, price: 6500 },
- { name: "Чехол силиконовый", quantity: 80, price: 850 },
- ],
- },
- {
- id: "2",
- supplyId: "OZ-SP-240112-002",
- warehouse: "Казань",
- deliveryDate: "2024-01-15",
- status: "sent_to_delivery",
- totalItems: 75,
- totalBoxes: 6,
- estimatedValue: 295000,
- products: [
- { name: "Наушники беспроводные", quantity: 25, price: 4200 },
- { name: "Зарядное устройство", quantity: 50, price: 1800 },
- ],
- },
- {
- id: "3",
- supplyId: "OZ-SP-240111-003",
- warehouse: "Екатеринбург",
- deliveryDate: "2024-01-14",
- status: "delivered",
- totalItems: 180,
- totalBoxes: 14,
- estimatedValue: 520000,
- products: [
- { name: "Планшет Xiaomi Pad", quantity: 60, price: 4800 },
- { name: "Клавиатура беспроводная", quantity: 120, price: 1650 },
- ],
- },
-];
+// Удалены моковые данные - теперь используются только реальные данные
export function OzonSuppliesTab() {
const [searchTerm, setSearchTerm] = useState("");
@@ -115,19 +71,8 @@ export function OzonSuppliesTab() {
);
};
- const filteredSupplies = mockOzonSupplies.filter((supply) => {
- const matchesSearch =
- supply.supplyId.toLowerCase().includes(searchTerm.toLowerCase()) ||
- supply.warehouse.toLowerCase().includes(searchTerm.toLowerCase()) ||
- supply.products.some((p) =>
- p.name.toLowerCase().includes(searchTerm.toLowerCase())
- );
-
- const matchesStatus =
- statusFilter === "all" || supply.status === statusFilter;
-
- return matchesSearch && matchesStatus;
- });
+ // Теперь используются только реальные данные, моковые данные удалены
+ const filteredSupplies: any[] = [];
const getTotalValue = () => {
return filteredSupplies.reduce(
@@ -247,83 +192,26 @@ export function OzonSuppliesTab() {
{/* Список поставок */}
- {filteredSupplies.map((supply) => (
-
-
-
-
-
- O
-
-
- {supply.supplyId}
-
- {getStatusBadge(supply.status)}
-
-
-
-
-
Склад Ozon
-
{supply.warehouse}
-
-
-
Дата доставки
-
-
- {formatDate(supply.deliveryDate)}
-
-
-
-
Товаров / Коробок
-
- {supply.totalItems} / {supply.totalBoxes}
-
-
-
-
Стоимость
-
- {formatCurrency(supply.estimatedValue)}
-
-
-
-
- {/* Список товаров в поставке */}
-
-
- Товары в поставке:
-
-
- {supply.products.map((product, index) => (
-
- {product.name}
-
- {product.quantity} шт. ×{" "}
- {formatCurrency(product.price)}
-
-
- ))}
-
-
-
-
-
-
-
+ {filteredSupplies.length === 0 ? (
+
+
+
+
Поставок пока нет
+
+ Создайте свою первую поставку на Ozon
+
-
- ))}
+
+ ) : (
+ filteredSupplies.map((supply) => (
+
+ {/* Здесь будет отображение реальных поставок */}
+
+ ))
+ )}
diff --git a/src/components/fulfillment-supplies/marketplace-supplies/wildberries-supplies-tab.tsx b/src/components/fulfillment-supplies/marketplace-supplies/wildberries-supplies-tab.tsx
index 8d3058e..422257f 100644
--- a/src/components/fulfillment-supplies/marketplace-supplies/wildberries-supplies-tab.tsx
+++ b/src/components/fulfillment-supplies/marketplace-supplies/wildberries-supplies-tab.tsx
@@ -17,51 +17,7 @@ import {
Box,
} from "lucide-react";
-// Мок данные для поставок на Wildberries
-const mockWbSupplies = [
- {
- id: "1",
- supplyId: "WB-SP-240113-001",
- warehouse: "Коледино",
- deliveryDate: "2024-01-15",
- status: "created",
- totalItems: 150,
- totalBoxes: 12,
- estimatedValue: 450000,
- products: [
- { name: "Футболка базовая", quantity: 100, price: 1200 },
- { name: "Джинсы классические", quantity: 50, price: 3500 },
- ],
- },
- {
- id: "2",
- supplyId: "WB-SP-240112-002",
- warehouse: "Электросталь",
- deliveryDate: "2024-01-14",
- status: "confirmed",
- totalItems: 85,
- totalBoxes: 8,
- estimatedValue: 320000,
- products: [
- { name: "Кроссовки спортивные", quantity: 35, price: 4500 },
- { name: "Рюкзак молодежный", quantity: 50, price: 2800 },
- ],
- },
- {
- id: "3",
- supplyId: "WB-SP-240111-003",
- warehouse: "Подольск",
- deliveryDate: "2024-01-13",
- status: "shipped",
- totalItems: 200,
- totalBoxes: 15,
- estimatedValue: 680000,
- products: [
- { name: "Платье летнее", quantity: 80, price: 2200 },
- { name: "Блузка офисная", quantity: 120, price: 3800 },
- ],
- },
-];
+// Удалены моковые данные - теперь используются только реальные данные
export function WildberriesSuppliesTab() {
const [searchTerm, setSearchTerm] = useState("");
@@ -111,19 +67,8 @@ export function WildberriesSuppliesTab() {
);
};
- const filteredSupplies = mockWbSupplies.filter((supply) => {
- const matchesSearch =
- supply.supplyId.toLowerCase().includes(searchTerm.toLowerCase()) ||
- supply.warehouse.toLowerCase().includes(searchTerm.toLowerCase()) ||
- supply.products.some((p) =>
- p.name.toLowerCase().includes(searchTerm.toLowerCase())
- );
-
- const matchesStatus =
- statusFilter === "all" || supply.status === statusFilter;
-
- return matchesSearch && matchesStatus;
- });
+ // Теперь используются только реальные данные, моковые данные удалены
+ const filteredSupplies: any[] = [];
const getTotalValue = () => {
return filteredSupplies.reduce(
@@ -243,83 +188,26 @@ export function WildberriesSuppliesTab() {
{/* Список поставок */}
- {filteredSupplies.map((supply) => (
-
-
-
-
-
- W
-
-
- {supply.supplyId}
-
- {getStatusBadge(supply.status)}
-
-
-
-
-
Склад WB
-
{supply.warehouse}
-
-
-
Дата доставки
-
-
- {formatDate(supply.deliveryDate)}
-
-
-
-
Товаров / Коробок
-
- {supply.totalItems} / {supply.totalBoxes}
-
-
-
-
Стоимость
-
- {formatCurrency(supply.estimatedValue)}
-
-
-
-
- {/* Список товаров в поставке */}
-
-
- Товары в поставке:
-
-
- {supply.products.map((product, index) => (
-
- {product.name}
-
- {product.quantity} шт. ×{" "}
- {formatCurrency(product.price)}
-
-
- ))}
-
-
-
-
-
-
-
+ {filteredSupplies.length === 0 ? (
+
+
+
+
Поставок пока нет
+
+ Создайте свою первую поставку на Wildberries
+
-
- ))}
+
+ ) : (
+ filteredSupplies.map((supply) => (
+
+ {/* Здесь будет отображение реальных поставок */}
+
+ ))
+ )}