+ {/* Top Config: Date Range & Quick Buttons */}
+
+
+
+
+ {[
+ { label: "今日", value: "today" },
+ { label: "昨日", value: "yesterday" },
+ { label: "本週", value: "this_week" },
+ { label: "本月", value: "this_month" },
+ { label: "上月", value: "last_month" },
+ ].map((opt) => (
+
+ ))}
+
+
+
+ {/* Date Inputs */}
+
+
+
+
+
+
+ {
+ setDateStart(e.target.value);
+ setDateRangeType('custom');
+ }}
+ className="pl-9 block w-full h-9 bg-white"
+ />
+
+
+
+
+
+
+ {
+ setDateEnd(e.target.value);
+ setDateRangeType('custom');
+ }}
+ className="pl-9 block w-full h-9 bg-white"
+ />
+
+
+
+
+
+
+ {/* Detailed Filters row */}
+
+ {/* Warehouse & Category */}
+
+
+ ({ label: w.name, value: w.id.toString() }))]}
+ className="w-full h-9"
+ placeholder="選擇倉庫..."
+ />
+
+
+
+ ({ label: c.name, value: c.id.toString() }))]}
+ className="w-full h-9"
+ placeholder="選擇分類..."
+ />
+
+
+ {/* Search */}
+
+
+ setSearch(e.target.value)}
+ className="h-9 bg-white"
+ onKeyDown={(e) => e.key === 'Enter' && handleFilter()}
+ />
+
+
+
+ {/* Action Buttons */}
+
+
+
+
+