feat: 庫存紀錄顯示儲位並優化返回狀態保持

This commit is contained in:
2026-02-10 11:28:58 +08:00
parent 83d26de6f9
commit e098e40fb8
2 changed files with 6 additions and 6 deletions

View File

@@ -42,7 +42,7 @@ export default function TransactionTable({ transactions, showBatchNumber = false
<th className="px-4 py-3"></th> <th className="px-4 py-3"></th>
<th className="px-4 py-3 text-right"></th> <th className="px-4 py-3 text-right"></th>
<th className="px-4 py-3 text-right"></th> <th className="px-4 py-3 text-right"></th>
{shouldShowSlot && <th className="px-4 py-3"></th>} {shouldShowSlot && <th className="px-4 py-3"></th>}
<th className="px-4 py-3"></th> <th className="px-4 py-3"></th>
<th className="px-4 py-3">/</th> <th className="px-4 py-3">/</th>
</tr> </tr>

View File

@@ -1,5 +1,4 @@
import { useState } from "react"; import { Head, router, useRemember } from "@inertiajs/react";
import { Head, router } from "@inertiajs/react";
import AuthenticatedLayout from "@/Layouts/AuthenticatedLayout"; import AuthenticatedLayout from "@/Layouts/AuthenticatedLayout";
import { import {
Search, Search,
@@ -121,9 +120,10 @@ export default function StockQueryIndex({
warehouses, warehouses,
categories, categories,
}: Props) { }: Props) {
const [search, setSearch] = useState(filters.search || ""); const [search, setSearch] = useRemember(filters.search || "", "StockQuery/search");
const [perPage, setPerPage] = useState<string>( const [perPage, setPerPage] = useRemember(
filters.per_page || "10" filters.per_page || "10",
"StockQuery/perPage"
); );
// 執行篩選 // 執行篩選