From 130903fe1b8063edb0ad4d9593f4c3a53ad437c3 Mon Sep 17 00:00:00 2001 From: pqhuy1987 Date: Thu, 7 May 2026 17:43:03 +0700 Subject: [PATCH] =?UTF-8?q?[CLAUDE]=20FE-Admin+FE-User:=20PE=20Danh=20s?= =?UTF-8?q?=C3=A1ch=20b=E1=BB=8F=20button=20"+=20T=E1=BA=A1o=20phi?= =?UTF-8?q?=E1=BA=BFu=20m=E1=BB=9Bi"=20header?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit User chỉ thị: bỏ hết button tạo phiếu mới góc phải màn hình. PurchaseEvaluationsListPage 3-panel view (Danh sách + Duyệt) giờ header chỉ còn icon + title + count badge. Việc tạo phiếu mới đi qua menu sidebar "Thao tác" → workspace 2-panel (sticky "+ Thêm mới" Panel 1) — single entry point, consistent UX. Remove khỏi 2 file y hệt (rule §3.9 mirror): - Block
diff --git a/fe-user/src/pages/pe/PurchaseEvaluationsListPage.tsx b/fe-user/src/pages/pe/PurchaseEvaluationsListPage.tsx index 7d348a2..b24f860 100644 --- a/fe-user/src/pages/pe/PurchaseEvaluationsListPage.tsx +++ b/fe-user/src/pages/pe/PurchaseEvaluationsListPage.tsx @@ -3,10 +3,9 @@ import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query' import { useNavigate, useSearchParams } from 'react-router-dom' import { toast } from 'sonner' -import { ClipboardCheck, Plus, Search, X } from 'lucide-react' +import { ClipboardCheck, Search, X } from 'lucide-react' import { Input } from '@/components/ui/Input' import { Select } from '@/components/ui/Select' -import { Button } from '@/components/ui/Button' import { EmptyState } from '@/components/EmptyState' import { SlaTimer } from '@/components/SlaTimer' import { api } from '@/lib/api' @@ -90,8 +89,6 @@ export function PurchaseEvaluationsListPage() { } const rows = list.data?.items ?? [] - const createHref = - typeFilter != null ? `/purchase-evaluations/new?type=${typeFilter}` : '/purchase-evaluations/new' const headerTitle = typeFilter ? (pendingMe ? `${PurchaseEvaluationTypeLabel[typeFilter]} — Chờ duyệt` : PurchaseEvaluationTypeLabel[typeFilter]) @@ -107,9 +104,6 @@ export function PurchaseEvaluationsListPage() { {list.data?.total ?? 0}
-