From fa1749294065616b17d3155dbd4198ffe2831f3d Mon Sep 17 00:00:00 2001 From: tommy Date: Wed, 17 Jun 2026 15:50:54 +0800 Subject: [PATCH] stocktake report update --- src/app/(main)/report/page.tsx | 3 +++ src/config/reportConfig.ts | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/src/app/(main)/report/page.tsx b/src/app/(main)/report/page.tsx index a6b32ce..504ae28 100644 --- a/src/app/(main)/report/page.tsx +++ b/src/app/(main)/report/page.tsx @@ -162,6 +162,7 @@ export default function ReportPage() { setCriteria({ store_id: 'All', status: 'All', + type: 'All', }); } }, [selectedReportId]); @@ -227,6 +228,8 @@ export default function ReportPage() { const status = criteria.status?.trim(); if (status && status !== 'All') p.set('status', status); } + const lotType = criteria.type?.trim(); + if (lotType && lotType !== 'All') p.set('type', lotType); return p.toString(); }; diff --git a/src/config/reportConfig.ts b/src/config/reportConfig.ts index f917936..26b0ca0 100644 --- a/src/config/reportConfig.ts +++ b/src/config/reportConfig.ts @@ -146,6 +146,24 @@ export const REPORTS: ReportDefinition[] = [ { label: "已審核", value: "completed" } ], }, + { + label: "類型", + name: "type", + type: "select", + required: false, + multiple: true, + options: [ + { label: "全部", value: "All" }, + { label: "PP", value: "PP" }, + { label: "PF", value: "PF" }, + { label: "TOA", value: "TOA" }, + { label: "工廠生產", value: "工廠生產" }, + { label: "倉存調整", value: "倉存調整" }, + { label: "期初存貨", value: "期初存貨" }, + { label: "採購入倉", value: "採購入倉" }, + { label: "其他入倉", value: "其他入倉" }, + ], + }, ] }, { id: "rep-011",