2026-01-20 09:44:05 +08:00
|
|
|
|
import { useState } from "react";
|
|
|
|
|
|
import { Button } from "@/Components/ui/button";
|
|
|
|
|
|
import { Input } from "@/Components/ui/input";
|
2026-01-20 17:45:38 +08:00
|
|
|
|
import { Label } from "@/Components/ui/label";
|
2026-01-20 09:44:05 +08:00
|
|
|
|
import {
|
|
|
|
|
|
BarChart3,
|
|
|
|
|
|
Download,
|
|
|
|
|
|
Calendar,
|
|
|
|
|
|
Filter,
|
|
|
|
|
|
TrendingDown,
|
|
|
|
|
|
Package,
|
2026-01-20 17:45:38 +08:00
|
|
|
|
Pocket,
|
|
|
|
|
|
RotateCcw,
|
|
|
|
|
|
FileText
|
2026-01-20 09:44:05 +08:00
|
|
|
|
} from 'lucide-react';
|
|
|
|
|
|
import AuthenticatedLayout from "@/Layouts/AuthenticatedLayout";
|
|
|
|
|
|
import { Head, router } from "@inertiajs/react";
|
|
|
|
|
|
import {
|
|
|
|
|
|
Table,
|
|
|
|
|
|
TableBody,
|
|
|
|
|
|
TableCell,
|
|
|
|
|
|
TableHead,
|
|
|
|
|
|
TableHeader,
|
|
|
|
|
|
TableRow,
|
|
|
|
|
|
} from "@/Components/ui/table";
|
2026-01-20 17:45:38 +08:00
|
|
|
|
import { getDateRange, formatDateWithDayOfWeek } from "@/utils/format";
|
|
|
|
|
|
import { Badge } from "@/Components/ui/badge";
|
|
|
|
|
|
import Pagination from "@/Components/shared/Pagination";
|
|
|
|
|
|
import { SearchableSelect } from "@/Components/ui/searchable-select";
|
2026-01-21 10:55:11 +08:00
|
|
|
|
import { Can } from "@/Components/Permission/Can";
|
2026-01-21 16:30:50 +08:00
|
|
|
|
import { Checkbox } from "@/Components/ui/checkbox";
|
2026-01-20 09:44:05 +08:00
|
|
|
|
|
|
|
|
|
|
interface Record {
|
|
|
|
|
|
id: string;
|
|
|
|
|
|
date: string;
|
|
|
|
|
|
source: string;
|
|
|
|
|
|
category: string;
|
|
|
|
|
|
item: string;
|
|
|
|
|
|
reference: string;
|
|
|
|
|
|
invoice_number?: string;
|
|
|
|
|
|
amount: number | string;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
interface PageProps {
|
2026-01-20 17:45:38 +08:00
|
|
|
|
records: {
|
|
|
|
|
|
data: Record[];
|
|
|
|
|
|
links: any[];
|
|
|
|
|
|
total: number;
|
|
|
|
|
|
from: number;
|
|
|
|
|
|
to: number;
|
|
|
|
|
|
current_page: number;
|
|
|
|
|
|
};
|
2026-01-20 09:44:05 +08:00
|
|
|
|
summary: {
|
|
|
|
|
|
total_amount: number;
|
|
|
|
|
|
purchase_total: number;
|
|
|
|
|
|
utility_total: number;
|
|
|
|
|
|
record_count: number;
|
|
|
|
|
|
};
|
|
|
|
|
|
filters: {
|
|
|
|
|
|
date_start: string;
|
|
|
|
|
|
date_end: string;
|
2026-01-20 17:45:38 +08:00
|
|
|
|
per_page?: number;
|
2026-01-20 09:44:05 +08:00
|
|
|
|
};
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export default function AccountingReport({ records, summary, filters }: PageProps) {
|
|
|
|
|
|
const [dateStart, setDateStart] = useState(filters.date_start);
|
|
|
|
|
|
const [dateEnd, setDateEnd] = useState(filters.date_end);
|
|
|
|
|
|
|
2026-01-20 17:45:38 +08:00
|
|
|
|
// Determine initial range type
|
|
|
|
|
|
const today = new Date().toISOString().split('T')[0];
|
|
|
|
|
|
const initialRangeType = (filters.date_start === today && filters.date_end === today) ? "today" : "custom";
|
|
|
|
|
|
const [dateRangeType, setDateRangeType] = useState(initialRangeType);
|
|
|
|
|
|
const [perPage, setPerPage] = useState(filters.per_page?.toString() || "10");
|
2026-01-21 16:30:50 +08:00
|
|
|
|
const [selectedIds, setSelectedIds] = useState<string[]>([]);
|
2026-01-20 17:45:38 +08:00
|
|
|
|
|
|
|
|
|
|
const handleDateRangeChange = (type: string) => {
|
|
|
|
|
|
setDateRangeType(type);
|
|
|
|
|
|
if (type === "custom") return;
|
|
|
|
|
|
|
|
|
|
|
|
const { start, end } = getDateRange(type);
|
|
|
|
|
|
setDateStart(start);
|
|
|
|
|
|
setDateEnd(end);
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-01-20 09:44:05 +08:00
|
|
|
|
const handleFilter = () => {
|
|
|
|
|
|
router.get(
|
|
|
|
|
|
route("accounting.report"),
|
|
|
|
|
|
{
|
|
|
|
|
|
date_start: dateStart,
|
|
|
|
|
|
date_end: dateEnd,
|
2026-01-20 17:45:38 +08:00
|
|
|
|
per_page: perPage,
|
2026-01-20 09:44:05 +08:00
|
|
|
|
},
|
|
|
|
|
|
{ preserveState: true }
|
|
|
|
|
|
);
|
|
|
|
|
|
};
|
|
|
|
|
|
|
2026-01-20 17:45:38 +08:00
|
|
|
|
const handlePerPageChange = (value: string) => {
|
|
|
|
|
|
setPerPage(value);
|
|
|
|
|
|
router.get(
|
|
|
|
|
|
route("accounting.report"),
|
|
|
|
|
|
{
|
|
|
|
|
|
date_start: dateStart,
|
|
|
|
|
|
date_end: dateEnd,
|
|
|
|
|
|
per_page: value,
|
|
|
|
|
|
},
|
|
|
|
|
|
{ preserveState: true }
|
|
|
|
|
|
);
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const handleClearFilters = () => {
|
|
|
|
|
|
setDateStart("");
|
|
|
|
|
|
setDateEnd("");
|
|
|
|
|
|
setPerPage("10");
|
2026-01-21 16:30:50 +08:00
|
|
|
|
setSelectedIds([]);
|
2026-01-20 17:45:38 +08:00
|
|
|
|
router.get(route("accounting.report"), {}, { preserveState: false });
|
|
|
|
|
|
};
|
|
|
|
|
|
|
2026-01-21 16:30:50 +08:00
|
|
|
|
const toggleSelectAll = () => {
|
|
|
|
|
|
if (selectedIds.length === records.data.length) {
|
|
|
|
|
|
setSelectedIds([]);
|
|
|
|
|
|
} else {
|
|
|
|
|
|
setSelectedIds(records.data.map(r => r.id));
|
|
|
|
|
|
}
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const toggleSelect = (id: string) => {
|
|
|
|
|
|
setSelectedIds(prev =>
|
|
|
|
|
|
prev.includes(id) ? prev.filter(i => i !== id) : [...prev, id]
|
|
|
|
|
|
);
|
|
|
|
|
|
};
|
|
|
|
|
|
|
2026-01-20 09:44:05 +08:00
|
|
|
|
const handleExport = () => {
|
2026-01-21 16:30:50 +08:00
|
|
|
|
const query: any = {
|
2026-01-20 09:44:05 +08:00
|
|
|
|
date_start: dateStart,
|
|
|
|
|
|
date_end: dateEnd,
|
2026-01-21 16:30:50 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
if (selectedIds.length > 0) {
|
|
|
|
|
|
query.selected_ids = selectedIds.join(',');
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
window.location.href = route("accounting.export", query);
|
2026-01-20 09:44:05 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
2026-01-20 17:45:38 +08:00
|
|
|
|
<AuthenticatedLayout breadcrumbs={[{ label: "報表管理", href: "#" }, { label: "會計報表", href: route("accounting.report"), isPage: true }]}>
|
2026-01-20 09:44:05 +08:00
|
|
|
|
<Head title="會計報表" />
|
|
|
|
|
|
|
|
|
|
|
|
<div className="container mx-auto p-6 max-w-7xl">
|
2026-01-20 17:45:38 +08:00
|
|
|
|
{/* Header */}
|
2026-01-20 09:44:05 +08:00
|
|
|
|
<div className="flex flex-col md:flex-row md:items-center justify-between gap-4 mb-6">
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<h1 className="text-2xl font-bold text-grey-0 flex items-center gap-2">
|
|
|
|
|
|
<BarChart3 className="h-6 w-6 text-primary-main" />
|
2026-01-20 17:45:38 +08:00
|
|
|
|
會計報表
|
2026-01-20 09:44:05 +08:00
|
|
|
|
</h1>
|
|
|
|
|
|
<p className="text-gray-500 mt-1">彙整採購支出與各項公用事業費用</p>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-01-21 10:55:11 +08:00
|
|
|
|
<Can permission="accounting.export">
|
|
|
|
|
|
<Button
|
|
|
|
|
|
onClick={handleExport}
|
|
|
|
|
|
variant="outline"
|
|
|
|
|
|
className="button-outlined-primary gap-2"
|
|
|
|
|
|
>
|
2026-01-21 16:30:50 +08:00
|
|
|
|
<Download className="h-4 w-4" />
|
|
|
|
|
|
{selectedIds.length > 0 ? `匯出已選 (${selectedIds.length})` : '匯出 CSV 報表'}
|
2026-01-21 10:55:11 +08:00
|
|
|
|
</Button>
|
|
|
|
|
|
</Can>
|
2026-01-20 09:44:05 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-01-20 17:45:38 +08:00
|
|
|
|
{/* Filters with Quick Date Range */}
|
|
|
|
|
|
<div className="bg-white rounded-xl shadow-sm border border-grey-4 p-5 mb-6">
|
|
|
|
|
|
<div className="flex flex-col gap-4">
|
2026-02-10 17:18:59 +08:00
|
|
|
|
{/* Top Config: Date Range & Quick Buttons */}
|
|
|
|
|
|
<div className="flex flex-col lg:flex-row gap-4 lg:items-end">
|
|
|
|
|
|
<div className="flex-none space-y-2">
|
2026-01-20 17:45:38 +08:00
|
|
|
|
<Label className="text-xs font-medium text-grey-2">快速時間區間</Label>
|
|
|
|
|
|
<div className="flex flex-wrap gap-2">
|
|
|
|
|
|
{[
|
|
|
|
|
|
{ label: "今日", value: "today" },
|
|
|
|
|
|
{ label: "昨日", value: "yesterday" },
|
|
|
|
|
|
{ label: "本週", value: "this_week" },
|
|
|
|
|
|
{ label: "本月", value: "this_month" },
|
|
|
|
|
|
{ label: "上月", value: "last_month" },
|
|
|
|
|
|
].map((opt) => (
|
|
|
|
|
|
<Button
|
|
|
|
|
|
key={opt.value}
|
|
|
|
|
|
size="sm"
|
|
|
|
|
|
onClick={() => handleDateRangeChange(opt.value)}
|
|
|
|
|
|
className={
|
|
|
|
|
|
dateRangeType === opt.value
|
|
|
|
|
|
? 'button-filled-primary h-9 px-4 shadow-sm'
|
|
|
|
|
|
: 'button-outlined-primary h-9 px-4 bg-white'
|
|
|
|
|
|
}
|
|
|
|
|
|
>
|
|
|
|
|
|
{opt.label}
|
|
|
|
|
|
</Button>
|
|
|
|
|
|
))}
|
|
|
|
|
|
</div>
|
2026-01-20 09:44:05 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-02-10 17:18:59 +08:00
|
|
|
|
{/* Date Inputs */}
|
|
|
|
|
|
<div className="w-full lg:flex-1">
|
|
|
|
|
|
<div className="grid grid-cols-2 gap-2">
|
2026-01-20 17:45:38 +08:00
|
|
|
|
<div className="space-y-1">
|
|
|
|
|
|
<Label className="text-xs text-grey-2 font-medium">開始日期</Label>
|
|
|
|
|
|
<div className="relative">
|
|
|
|
|
|
<Calendar className="absolute left-2.5 top-1/2 transform -translate-y-1/2 h-4 w-4 text-gray-400 pointer-events-none" />
|
|
|
|
|
|
<Input
|
|
|
|
|
|
type="date"
|
|
|
|
|
|
value={dateStart}
|
|
|
|
|
|
onChange={(e) => {
|
|
|
|
|
|
setDateStart(e.target.value);
|
|
|
|
|
|
setDateRangeType('custom');
|
|
|
|
|
|
}}
|
|
|
|
|
|
className="pl-9 block w-full h-9 bg-white"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div className="space-y-1">
|
|
|
|
|
|
<Label className="text-xs text-grey-2 font-medium">結束日期</Label>
|
|
|
|
|
|
<div className="relative">
|
|
|
|
|
|
<Calendar className="absolute left-2.5 top-1/2 transform -translate-y-1/2 h-4 w-4 text-gray-400 pointer-events-none" />
|
|
|
|
|
|
<Input
|
|
|
|
|
|
type="date"
|
|
|
|
|
|
value={dateEnd}
|
|
|
|
|
|
onChange={(e) => {
|
|
|
|
|
|
setDateEnd(e.target.value);
|
|
|
|
|
|
setDateRangeType('custom');
|
|
|
|
|
|
}}
|
|
|
|
|
|
className="pl-9 block w-full h-9 bg-white"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2026-01-20 09:44:05 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-02-10 17:18:59 +08:00
|
|
|
|
{/* Row 2: Actions */}
|
|
|
|
|
|
<div className="grid grid-cols-1 md:grid-cols-12 gap-4 items-end">
|
|
|
|
|
|
<div className="md:col-span-9"></div>
|
|
|
|
|
|
<div className="md:col-span-3 flex items-center gap-2">
|
|
|
|
|
|
<Button
|
|
|
|
|
|
variant="outline"
|
|
|
|
|
|
onClick={handleClearFilters}
|
|
|
|
|
|
className="flex-1 items-center gap-2 button-outlined-primary h-9"
|
|
|
|
|
|
>
|
|
|
|
|
|
<RotateCcw className="h-4 w-4" />
|
|
|
|
|
|
重置
|
|
|
|
|
|
</Button>
|
|
|
|
|
|
<Button
|
|
|
|
|
|
onClick={handleFilter}
|
|
|
|
|
|
className="flex-1 button-filled-primary h-9 gap-2"
|
|
|
|
|
|
>
|
|
|
|
|
|
<Filter className="h-4 w-4" /> 查詢
|
|
|
|
|
|
</Button>
|
|
|
|
|
|
</div>
|
2026-01-20 17:45:38 +08:00
|
|
|
|
</div>
|
2026-01-20 09:44:05 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-01-20 17:45:38 +08:00
|
|
|
|
{/* Compact Summary - Full Width Grid (Horizontal Style) */}
|
|
|
|
|
|
<div className="grid grid-cols-1 md:grid-cols-3 gap-4 mb-6">
|
|
|
|
|
|
<div className="flex items-center gap-3 px-4 py-4 bg-white rounded-xl border-l-4 border-l-red-500 shadow-sm border border-gray-100 transition-all hover:bg-gray-50">
|
|
|
|
|
|
<TrendingDown className="h-6 w-6 text-red-500 shrink-0" />
|
|
|
|
|
|
<div className="flex flex-1 items-baseline justify-between gap-2 min-w-0">
|
|
|
|
|
|
<span className="text-sm text-gray-500 font-medium shrink-0">總計支出</span>
|
|
|
|
|
|
<span className="text-xl font-bold text-gray-900 truncate">$ {Number(summary.total_amount).toLocaleString()}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div className="flex items-center gap-3 px-4 py-4 bg-white rounded-xl border-l-4 border-l-orange-500 shadow-sm border border-gray-100 transition-all hover:bg-gray-50">
|
|
|
|
|
|
<Package className="h-6 w-6 text-orange-500 shrink-0" />
|
|
|
|
|
|
<div className="flex flex-1 items-baseline justify-between gap-2 min-w-0">
|
|
|
|
|
|
<span className="text-sm text-gray-500 font-medium shrink-0">採購支出</span>
|
|
|
|
|
|
<span className="text-xl font-bold text-gray-900 truncate">$ {Number(summary.purchase_total).toLocaleString()}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div className="flex items-center gap-3 px-4 py-4 bg-white rounded-xl border-l-4 border-l-blue-500 shadow-sm border border-gray-100 transition-all hover:bg-gray-50">
|
|
|
|
|
|
<Pocket className="h-6 w-6 text-blue-500 shrink-0" />
|
|
|
|
|
|
<div className="flex flex-1 items-baseline justify-between gap-2 min-w-0">
|
|
|
|
|
|
<span className="text-sm text-gray-500 font-medium shrink-0">公共事業費</span>
|
|
|
|
|
|
<span className="text-xl font-bold text-gray-900 truncate">$ {Number(summary.utility_total).toLocaleString()}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2026-01-20 09:44:05 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
{/* Results Table */}
|
2026-01-20 17:45:38 +08:00
|
|
|
|
<div className="bg-white rounded-xl border border-gray-200 shadow-sm overflow-hidden">
|
2026-01-20 09:44:05 +08:00
|
|
|
|
<Table>
|
|
|
|
|
|
<TableHeader className="bg-gray-50">
|
|
|
|
|
|
<TableRow>
|
2026-01-21 16:30:50 +08:00
|
|
|
|
<TableHead className="w-[50px] text-center">
|
|
|
|
|
|
<Checkbox
|
|
|
|
|
|
checked={records.data.length > 0 && selectedIds.length === records.data.length}
|
|
|
|
|
|
onCheckedChange={toggleSelectAll}
|
|
|
|
|
|
aria-label="Select all"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</TableHead>
|
2026-01-20 17:45:38 +08:00
|
|
|
|
<TableHead className="w-[140px] text-center">日期</TableHead>
|
|
|
|
|
|
<TableHead className="w-[120px] text-center">來源</TableHead>
|
|
|
|
|
|
<TableHead className="w-[140px] text-center">類別</TableHead>
|
|
|
|
|
|
<TableHead className="px-6">項目詳細</TableHead>
|
|
|
|
|
|
<TableHead className="w-[180px] text-right px-6">金額</TableHead>
|
2026-01-20 09:44:05 +08:00
|
|
|
|
</TableRow>
|
|
|
|
|
|
</TableHeader>
|
|
|
|
|
|
<TableBody>
|
2026-01-20 17:45:38 +08:00
|
|
|
|
{records.data.length === 0 ? (
|
2026-01-20 09:44:05 +08:00
|
|
|
|
<TableRow>
|
2026-01-21 16:30:50 +08:00
|
|
|
|
<TableCell colSpan={6}>
|
2026-01-20 17:45:38 +08:00
|
|
|
|
<div className="flex flex-col items-center justify-center space-y-2 py-8 text-gray-400">
|
|
|
|
|
|
<FileText className="h-10 w-10 opacity-20" />
|
|
|
|
|
|
<p>此日期區間內無支出紀錄</p>
|
|
|
|
|
|
</div>
|
2026-01-20 09:44:05 +08:00
|
|
|
|
</TableCell>
|
|
|
|
|
|
</TableRow>
|
|
|
|
|
|
) : (
|
2026-01-20 17:45:38 +08:00
|
|
|
|
records.data.map((record) => (
|
|
|
|
|
|
<TableRow key={record.id}>
|
2026-01-21 16:30:50 +08:00
|
|
|
|
<TableCell className="text-center">
|
|
|
|
|
|
<Checkbox
|
|
|
|
|
|
checked={selectedIds.includes(record.id)}
|
|
|
|
|
|
onCheckedChange={() => toggleSelect(record.id)}
|
|
|
|
|
|
aria-label={`Select record ${record.id}`}
|
|
|
|
|
|
/>
|
|
|
|
|
|
</TableCell>
|
2026-01-20 17:45:38 +08:00
|
|
|
|
<TableCell className="font-medium text-gray-700 text-center">
|
|
|
|
|
|
{formatDateWithDayOfWeek(record.date)}
|
|
|
|
|
|
</TableCell>
|
|
|
|
|
|
<TableCell className="text-center">
|
|
|
|
|
|
<Badge variant="secondary" className={
|
|
|
|
|
|
record.source === '採購單'
|
|
|
|
|
|
? 'bg-orange-50 text-orange-700 border-orange-100'
|
|
|
|
|
|
: 'bg-blue-50 text-blue-700 border-blue-100'
|
|
|
|
|
|
}>
|
2026-01-20 09:44:05 +08:00
|
|
|
|
{record.source}
|
2026-01-20 17:45:38 +08:00
|
|
|
|
</Badge>
|
|
|
|
|
|
</TableCell>
|
|
|
|
|
|
<TableCell className="text-gray-600 text-center">
|
|
|
|
|
|
<Badge variant="outline" className="font-normal border-gray-200">
|
|
|
|
|
|
{record.category}
|
|
|
|
|
|
</Badge>
|
2026-01-20 09:44:05 +08:00
|
|
|
|
</TableCell>
|
|
|
|
|
|
<TableCell>
|
|
|
|
|
|
<div className="flex flex-col">
|
|
|
|
|
|
<span className="font-medium text-gray-900">{record.item}</span>
|
|
|
|
|
|
{record.invoice_number && (
|
|
|
|
|
|
<span className="text-xs text-gray-400">發票:{record.invoice_number}</span>
|
|
|
|
|
|
)}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</TableCell>
|
|
|
|
|
|
<TableCell className="text-right font-bold text-gray-900 px-4">
|
|
|
|
|
|
$ {Number(record.amount).toLocaleString()}
|
|
|
|
|
|
</TableCell>
|
|
|
|
|
|
</TableRow>
|
|
|
|
|
|
))
|
|
|
|
|
|
)}
|
|
|
|
|
|
</TableBody>
|
|
|
|
|
|
</Table>
|
|
|
|
|
|
</div>
|
2026-01-20 17:45:38 +08:00
|
|
|
|
|
|
|
|
|
|
{/* Pagination Footer */}
|
|
|
|
|
|
<div className="mt-6 flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4">
|
|
|
|
|
|
<div className="flex items-center gap-2 text-sm text-gray-500">
|
|
|
|
|
|
<span>每頁顯示</span>
|
|
|
|
|
|
<SearchableSelect
|
|
|
|
|
|
value={perPage}
|
|
|
|
|
|
onValueChange={handlePerPageChange}
|
|
|
|
|
|
options={[
|
|
|
|
|
|
{ label: "10", value: "10" },
|
|
|
|
|
|
{ label: "20", value: "20" },
|
|
|
|
|
|
{ label: "50", value: "50" },
|
|
|
|
|
|
{ label: "100", value: "100" }
|
|
|
|
|
|
]}
|
|
|
|
|
|
className="w-[100px] h-8"
|
|
|
|
|
|
showSearch={false}
|
|
|
|
|
|
/>
|
|
|
|
|
|
<span>筆</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div className="w-full sm:w-auto flex justify-center sm:justify-end">
|
|
|
|
|
|
<Pagination links={records.links} />
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2026-01-20 09:44:05 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</AuthenticatedLayout>
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|