From 4446c8503fe1c21a0e08cc6a9b38b588b1afc2a3 Mon Sep 17 00:00:00 2001 From: "Tommy\\2Fi-Staff" Date: Mon, 9 Feb 2026 20:04:10 +0800 Subject: [PATCH] Update StockBalanceReport & StockInTracabilityReport --- src/config/reportConfig.ts | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/src/config/reportConfig.ts b/src/config/reportConfig.ts index 7b7e5f0..b41bf33 100644 --- a/src/config/reportConfig.ts +++ b/src/config/reportConfig.ts @@ -75,7 +75,7 @@ export const REPORTS: ReportDefinition[] = [ { label: "倉存類別 Stock Category", name: "stockCategory", type: "select", required: true, multiple: true, options: [ - { label: "All", value: "MAT,FG,WIP,NM,CMB"}, + { label: "All", value: "All"}, { label: "MAT", value: "MAT" }, { label: "FG", value: "FG" }, { label: "WIP", value: "WIP" }, @@ -138,5 +138,30 @@ export const REPORTS: ReportDefinition[] = [ { label: "材料消耗日期:由 Last Out Date Start", name: "lastOutDateStart", type: "date", required: false }, { label: "材料消耗日期:至 Last Out Date End", name: "lastOutDateEnd", type: "date", required: false }, ] + }, + { + id: "rep-007", + title: "庫存結餘報告", + apiEndpoint: `${NEXT_PUBLIC_API_URL}/report/print-stock-balance`, + fields: [ + { label: "倉存類別 Stock Category", name: "stockCategory", type: "select", required: false, + multiple: true, + options: [ + { label: "All", value: "All" }, + { label: "MAT", value: "MAT" }, + { label: "WIP", value: "WIP" }, + { label: "NM", value: "NM" }, + { label: "FG", value: "FG" }, + { label: "CMB", value: "CMB" } + ] }, + { label: "物料編號 Item Code", name: "itemCode", type: "text", required: false}, + { label: "存量:由 Current Balance Start", name: "balanceFilterStart", type: "number", required: false}, + { label: "存量:至 Current Balance End", name: "balanceFilterEnd", type: "number", required: false}, + { label: "存貨位置 Store Location", name: "storeLocation", type: "text", required: false, placeholder: "例如:2F-W201-#Z-01, 2F, W201" }, + { label: "最後入倉日期:由 Last In Date Start", name: "lastInDateStart", type: "date", required: false }, + { label: "最後入倉日期:至 Last In Date End", name: "lastInDateEnd", type: "date", required: false }, + { label: "最後出倉日期:由 Last Out Date Start", name: "lastOutDateStart", type: "date", required: false }, + { label: "最後出倉日期:至 Last Out Date End", name: "lastOutDateEnd", type: "date", required: false }, + ] } ]; \ No newline at end of file