feat(inventory): 販賣機視覺優化、修復匯入日期缺失與倉庫刪除權限錯誤

This commit is contained in:
2026-02-09 10:19:46 +08:00
parent f22df90e01
commit 5e542752ba
14 changed files with 255 additions and 71 deletions

View File

@@ -20,9 +20,10 @@ interface Props {
open: boolean;
onOpenChange: (open: boolean) => void;
warehouseId: string;
warehouseName: string;
}
export default function InventoryImportDialog({ open, onOpenChange, warehouseId }: Props) {
export default function InventoryImportDialog({ open, onOpenChange, warehouseId, warehouseName }: Props) {
const { data, setData, post, processing, errors, reset, clearErrors } = useForm({
file: null as File | null,
inboundDate: new Date().toISOString().split('T')[0],
@@ -63,6 +64,9 @@ export default function InventoryImportDialog({ open, onOpenChange, warehouseId
<DialogTitle></DialogTitle>
<DialogDescription>
<div className="mt-2 p-2 bg-primary-main/5 border border-primary-main/20 rounded text-primary-main font-medium">
{warehouseName}
</div>
</DialogDescription>
</DialogHeader>