diff --git a/.replit b/.replit index f9b73f0..a9cbb23 100644 --- a/.replit +++ b/.replit @@ -15,6 +15,10 @@ run = ["npm", "run", "start"] localPort = 5000 externalPort = 80 +[[ports]] +localPort = 34895 +externalPort = 3000 + [[ports]] localPort = 38451 externalPort = 3002 diff --git a/client/src/pages/SavTickets.tsx b/client/src/pages/SavTickets.tsx index 1c0508f..bee4db0 100644 --- a/client/src/pages/SavTickets.tsx +++ b/client/src/pages/SavTickets.tsx @@ -455,22 +455,29 @@ export default function SavTickets() { }); return ( -
Gestion des tickets SAV et suivi des réparations
-| - Ticket - | -- Client - | -- Produit - | -- Problème - | -- Statut - | -- Priorité - | -- Fournisseur - | -- Date - | -- Actions - | -
|---|---|---|---|---|---|---|---|---|
|
+
+
+ {filteredTickets.map((ticket) => {
+ const StatusIcon = statusConfig[ticket.status as keyof typeof statusConfig]?.icon || Clock;
+ const priorityColor = priorityConfig[ticket.priority as keyof typeof priorityConfig]?.color || "bg-gray-100 text-gray-800";
+ const statusColor = statusConfig[ticket.status as keyof typeof statusConfig]?.color || "bg-gray-100 text-gray-800";
+
+ return (
+ {ticket.ticketNumber}{hasRecentComments(ticket) && ( - |
-
-
-
-
- {ticket.clientName || 'N/A'}
-
- {ticket.clientPhone && (
-
- {ticket.clientPhone}
-
- )}
- |
-
-
- {ticket.productDesignation && (
-
-
- {ticket.productDesignation}
-
- )}
- {ticket.productGencode && (
-
- {ticket.productGencode}
-
- )}
- |
-
-
- {ticket.problemDescription}
-
- |
-
-
- |
-
-
+
+
+ {/* Produit */}
+
+ {ticket.clientName || 'N/A'}
+
+ {ticket.clientPhone && (
+
+ 📞 {ticket.clientPhone}
+
+ )}
+
+ {ticket.productDesignation && (
+
+
+ {/* Problème */}
+ {ticket.problemDescription && (
+
+ {ticket.productDesignation}
+
+ )}
+ {ticket.productGencode && (
+
+ 📦 {ticket.productGencode}
+
+ )}
+
+
+ )}
+
+ {/* Priorité et fournisseur */}
+ + {ticket.problemDescription} + +
+ |
-
-
-
+
- |
-
-
-
- |
-
-
+
+
+ {/* Date */}
+
+
+
+ {/* Actions */}
+
+
+ {canModify && (
- {canModify && (
-
- )}
- {canDelete && (
-
- )}
-
- |
-