feat: [입고] 목록에서 체크박스 선택 시 삭제 버튼 표시 기능 추가

This commit is contained in:
김보곤
2026-03-20 15:00:10 +09:00
parent a25c2c6d16
commit 7be13e7202

View File

@@ -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;