feat(WEB): 절곡품 선생산→재고적재 Phase 2 - 수동 작업지시 및 재고 필터
- WorkOrderCreate: 수동 모드 품목 검색/추가/수량 관리 UI 구현 - WorkOrders/actions: items 파라미터 추가, searchItemsForWorkOrder 함수 추가 - StockStatusList: 품목분류(BENDING/SCREEN/STEEL/ALUMINUM) 필터 추가 - StockStatus/actions: itemCategory 파라미터 지원
This commit is contained in:
@@ -222,6 +222,7 @@ function transformApiToStats(data: StockApiStatsResponse): StockStats {
|
||||
// ===== 재고 목록 조회 =====
|
||||
export async function getStocks(params?: {
|
||||
page?: number; perPage?: number; search?: string; itemType?: string;
|
||||
itemCategory?: string;
|
||||
status?: string; useStatus?: string; location?: string;
|
||||
sortBy?: string; sortDir?: string; startDate?: string; endDate?: string;
|
||||
}) {
|
||||
@@ -231,6 +232,7 @@ export async function getStocks(params?: {
|
||||
per_page: params?.perPage,
|
||||
search: params?.search,
|
||||
item_type: params?.itemType !== 'all' ? params?.itemType : undefined,
|
||||
item_category: params?.itemCategory !== 'all' ? params?.itemCategory : undefined,
|
||||
status: params?.status !== 'all' ? params?.status : undefined,
|
||||
is_active: params?.useStatus && params.useStatus !== 'all' ? (params.useStatus === 'active' ? '1' : '0') : undefined,
|
||||
location: params?.location,
|
||||
|
||||
Reference in New Issue
Block a user