feat(inventory): 販賣機視覺優化、修復匯入日期缺失與倉庫刪除權限錯誤
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user