From 7be13e7202d6b590af88176630d7dee7d0860c0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Fri, 20 Mar 2026 15:00:10 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20[=EC=9E=85=EA=B3=A0]=20=EB=AA=A9?= =?UTF-8?q?=EB=A1=9D=EC=97=90=EC=84=9C=20=EC=B2=B4=ED=81=AC=EB=B0=95?= =?UTF-8?q?=EC=8A=A4=20=EC=84=A0=ED=83=9D=20=EC=8B=9C=20=EC=82=AD=EC=A0=9C?= =?UTF-8?q?=20=EB=B2=84=ED=8A=BC=20=ED=91=9C=EC=8B=9C=20=EA=B8=B0=EB=8A=A5?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../material/ReceivingManagement/ReceivingList.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/components/material/ReceivingManagement/ReceivingList.tsx b/src/components/material/ReceivingManagement/ReceivingList.tsx index 242254d6..fc016d99 100644 --- a/src/components/material/ReceivingManagement/ReceivingList.tsx +++ b/src/components/material/ReceivingManagement/ReceivingList.tsx @@ -37,7 +37,7 @@ import { type FilterFieldConfig, } from '@/components/templates/UniversalListPage'; import { ListMobileCard, InfoField } from '@/components/organisms/MobileCard'; -import { getReceivings, getReceivingStats } from './actions'; +import { getReceivings, getReceivingStats, deleteReceiving } from './actions'; import { RECEIVING_STATUS_LABELS, RECEIVING_STATUS_STYLES, @@ -196,6 +196,16 @@ export function ReceivingList() { // API 액션 (서버 사이드 페이지네이션) actions: { + deleteItem: async (id: string) => { + const result = await deleteReceiving(id); + if (result.success) { + const statsResult = await getReceivingStats(); + if (statsResult.success && statsResult.data) { + setStats(statsResult.data); + } + } + return { success: result.success, error: result.error }; + }, getList: async (params?: ListParams) => { try { const statusFilter = params?.filters?.status as string;