Enhance receiving and sales management functionality

- Updated the getItems function in receivingController to include a division filter, allowing for more refined item retrieval based on division.
- Added state management for continuous input in EquipmentInfoPage, enabling users to clear forms after saving or keep them open for further entries.
- Implemented deletion functionality for selected customer mappings in SalesItemPage, improving data management capabilities.
- Enhanced ShippingOrderPage to visually indicate selected orders, improving user interaction and experience.

These changes collectively improve the efficiency and usability of the receiving and sales management features.
This commit is contained in:
kjs
2026-03-31 14:34:43 +09:00
parent b1b10f5e27
commit 18f78a6702
12 changed files with 326 additions and 61 deletions
@@ -320,11 +320,18 @@ function TreeNodeRow({
const renderCell = (col: BomColumnConfig) => {
const value = node.data[col.key] ?? "";
// 소스 표시 컬럼 (읽기 전용)
// 소스 표시 컬럼 (읽기 전용) — 카테고리 코드인 경우 라벨로 변환
if (col.isSourceDisplay) {
let displayValue = value;
if (col.inputType === "category" && mainTableName) {
const categoryRef = `${mainTableName}.${col.key}`;
const options = categoryOptionsMap[categoryRef] || [];
const found = options.find((opt) => opt.value === String(value));
if (found) displayValue = found.label;
}
return (
<span className="truncate text-xs" title={String(value)}>
{value || "-"}
<span className="truncate text-xs" title={String(displayValue)}>
{displayValue || "-"}
</span>
);
}
@@ -352,11 +359,18 @@ function TreeNodeRow({
);
}
// 편집 불가능 컬럼
// 편집 불가능 컬럼 — 카테고리 코드인 경우 라벨로 변환
if (col.editable === false) {
let displayValue = value;
if (col.inputType === "category" && mainTableName) {
const categoryRef = `${mainTableName}.${col.key}`;
const options = categoryOptionsMap[categoryRef] || [];
const found = options.find((opt) => opt.value === String(value));
if (found) displayValue = found.label;
}
return (
<span className="text-muted-foreground truncate text-xs">
{value || "-"}
{displayValue || "-"}
</span>
);
}