refactor: Enhance subcontractor and item management functionality
- Added loading of item division categories to improve item search capabilities in subcontractor management pages. - Updated filtering logic to use dynamic category codes for division filtering in subcontractor and sales item pages. - Consolidated standard price labels in purchase item pages for clarity. These changes aim to improve the user experience and data handling in subcontractor and item management processes across multiple companies.
This commit is contained in:
@@ -48,8 +48,7 @@ const ITEM_GRID_COLUMNS = [
|
||||
{ key: "item_name", label: "품명" },
|
||||
{ key: "size", label: "규격" },
|
||||
{ key: "unit", label: "단위" },
|
||||
{ key: "standard_price", label: "기준단가" },
|
||||
{ key: "standard_price", label: "구매단가" },
|
||||
{ key: "standard_price", label: "기준단가/구매단가" },
|
||||
{ key: "currency_code", label: "통화" },
|
||||
{ key: "status", label: "상태" },
|
||||
];
|
||||
@@ -150,8 +149,11 @@ export default function PurchaseItemPage() {
|
||||
try {
|
||||
const filters: { columnName: string; operator: string; value: any }[] = [];
|
||||
|
||||
// 구매품목/영업관리 division 필터 (다중값 컬럼이므로 contains로 매칭)
|
||||
filters.push({ columnName: "division", operator: "contains", value: "s" });
|
||||
// 구매관리 division 필터: 카테고리에서 "구매관리" 라벨의 코드를 찾아서 필터링
|
||||
const purchaseCode = categoryOptions["division"]?.find((o) => o.label === "구매관리")?.code;
|
||||
if (purchaseCode) {
|
||||
filters.push({ columnName: "division", operator: "contains", value: purchaseCode });
|
||||
}
|
||||
|
||||
// DynamicSearchFilter에서 전달된 필터 추가
|
||||
for (const f of searchFilters) {
|
||||
|
||||
Reference in New Issue
Block a user