| @@ -72,20 +72,10 @@ export const REPORTS: ReportDefinition[] = [ | |||
| title: "入倉記錄報告", | |||
| apiEndpoint: `${NEXT_PUBLIC_API_URL}/report/print-stock-in-traceability`, | |||
| fields: [ | |||
| { label: "倉存類別 Stock Category", name: "stockCategory", type: "select", required: true, | |||
| multiple: true, | |||
| options: [ | |||
| { label: "All", value: "All"}, | |||
| { label: "MAT", value: "MAT" }, | |||
| { label: "FG", value: "FG" }, | |||
| { label: "WIP", value: "WIP" }, | |||
| { label: "NM", value: "NM" }, | |||
| { label: "CMB", value: "CMB" } | |||
| ] | |||
| }, | |||
| { label: "物料編號 Item Code", name: "itemCode", type: "text", required: false}, | |||
| { label: "入倉日期:由 Last In Date Start", name: "lastInDateStart", type: "date", required: true }, | |||
| { label: "入倉日期:至 Last In Date End", name: "lastInDateEnd", type: "date", required: true }, | |||
| { label: "物料編號 Item Code", name: "itemCode", type: "text", required: false}, | |||
| ] | |||
| }, | |||
| { | |||
| @@ -93,13 +83,8 @@ export const REPORTS: ReportDefinition[] = [ | |||
| title: "成品/半成品生產分析報告", | |||
| apiEndpoint: `${NEXT_PUBLIC_API_URL}/report/print-semi-fg-production-analysis`, | |||
| fields: [ | |||
| { label: "倉存類別 Stock Category", name: "stockCategory", type: "select", required: false, | |||
| multiple: true, | |||
| options: [ | |||
| { label: "All", value: "All" }, | |||
| { label: "FG", value: "FG" }, | |||
| { label: "WIP", value: "WIP" } | |||
| ] }, | |||
| { label: "完成生產日期:由 Last Out Date Start", name: "lastOutDateStart", type: "date", required: false, placeholder: "dd/mm/yyyy" }, | |||
| { label: "完成生產日期:至 Last Out Date End", name: "lastOutDateEnd", type: "date", required: false, placeholder: "dd/mm/yyyy" }, | |||
| { label: "物料編號 Item Code", name: "itemCode", type: "select", required: false, | |||
| multiple: true, | |||
| allowInput: true, | |||
| @@ -107,8 +92,6 @@ export const REPORTS: ReportDefinition[] = [ | |||
| dynamicOptionsEndpoint: `${NEXT_PUBLIC_API_URL}/report/semi-fg-item-codes`, | |||
| dynamicOptionsParam: "stockCategory", | |||
| options: [] }, | |||
| { label: "完成生產日期:由 Last Out Date Start", name: "lastOutDateStart", type: "date", required: false, placeholder: "dd/mm/yyyy" }, | |||
| { label: "完成生產日期:至 Last Out Date End", name: "lastOutDateEnd", type: "date", required: false, placeholder: "dd/mm/yyyy" }, | |||
| { label: "年份 Year", name: "year", type: "text", required: false, placeholder: "e.g. 2026" }, | |||
| ] | |||
| @@ -118,16 +101,8 @@ export const REPORTS: ReportDefinition[] = [ | |||
| title: "庫存材料消耗趨勢報告", | |||
| apiEndpoint: `${NEXT_PUBLIC_API_URL}/report/print-stock-item-consumption-trend`, | |||
| 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: "材料消耗日期:由 Last Out Date Start", name: "lastOutDateStart", type: "date", required: false }, | |||
| { label: "材料消耗日期:至 Last Out Date End", name: "lastOutDateEnd", type: "date", required: false }, | |||
| { label: "物料編號 Item Code", name: "itemCode", type: "select", required: false, | |||
| multiple: true, | |||
| allowInput: true, | |||
| @@ -135,8 +110,6 @@ export const REPORTS: ReportDefinition[] = [ | |||
| dynamicOptionsEndpoint: `${NEXT_PUBLIC_API_URL}/report/stock-item-code-prefixes`, | |||
| dynamicOptionsParam: "stockCategory", | |||
| options: [] }, | |||
| { label: "材料消耗日期:由 Last Out Date Start", name: "lastOutDateStart", type: "date", required: false }, | |||
| { label: "材料消耗日期:至 Last Out Date End", name: "lastOutDateEnd", type: "date", required: false }, | |||
| { label: "年份 Year", name: "year", type: "text", required: false, placeholder: "e.g. 2026" }, | |||
| ] | |||
| @@ -145,26 +118,12 @@ export const REPORTS: ReportDefinition[] = [ | |||
| 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}, | |||
| fields: [ | |||
| { 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 }, | |||
| { 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: "物料編號 Item Code", name: "itemCode", type: "text", required: false}, | |||
| ] | |||
| }, | |||
| @@ -173,24 +132,20 @@ export const REPORTS: ReportDefinition[] = [ | |||
| title: "成品出倉報告", | |||
| apiEndpoint: `${NEXT_PUBLIC_API_URL}/report/print-fg-delivery-report`, | |||
| fields: [ | |||
| { label: "物料編號 Item Code", name: "itemCode", type: "text", required: false}, | |||
| { label: "出貨日期:由 Last Out Date Start", name: "lastOutDateStart", type: "date", required: false }, | |||
| { label: "出貨日期:至 Last Out Date End", name: "lastOutDateEnd", type: "date", required: false }, | |||
| { label: "年份 Year", name: "year", type: "text", required: false, placeholder: "e.g. 2026" }, | |||
| { label: "物料編號 Item Code", name: "itemCode", type: "text", required: false}, | |||
| ] | |||
| }, | |||
| { id: "rep-009", | |||
| title: "成品出倉追蹤報告", | |||
| apiEndpoint: `${NEXT_PUBLIC_API_URL}/report/print-fg-stock-out-traceability`, | |||
| fields: [ | |||
| { label: "物料編號 Item Code", name: "itemCode", type: "text", required: false}, | |||
| { label: "出貨日期:由 Last Out Date Start", name: "lastOutDateStart", type: "date", required: false }, | |||
| { label: "出貨日期:至 Last Out Date End", name: "lastOutDateEnd", type: "date", required: false }, | |||
| { label: "年份 Year", name: "year", type: "text", required: false, placeholder: "e.g. 2026" }, | |||
| { label: "物料編號 Item Code", name: "itemCode", type: "text", required: false}, | |||
| ] | |||
| }, | |||
| @@ -198,36 +153,37 @@ export const REPORTS: ReportDefinition[] = [ | |||
| title: "庫存品質檢測報告", | |||
| apiEndpoint: `${NEXT_PUBLIC_API_URL}/report/print-item-qc-fail`, | |||
| fields: [ | |||
| { label: "物料編號 Item Code", name: "itemCode", type: "text", required: false}, | |||
| { label: "QC 不合格日期:由 Last In Date Start", name: "lastInDateStart", type: "date", required: false }, | |||
| { label: "QC 不合格日期:至 Last In Date End", name: "lastInDateEnd", type: "date", required: false }, | |||
| { label: "物料編號 Item Code", name: "itemCode", type: "text", required: false}, | |||
| ] | |||
| }, | |||
| { id: "rep-011", | |||
| title: "庫存明細報告", | |||
| apiEndpoint: `${NEXT_PUBLIC_API_URL}/report/print-stock-ledger`, | |||
| fields: [ | |||
| { label: "物料編號 Item Code", name: "itemCode", type: "text", required: false}, | |||
| { label: "庫存日期:由 Last In Date Start", name: "lastInDateStart", type: "date", required: false }, | |||
| { label: "庫存日期:至 Last In Date End", name: "lastInDateEnd", type: "date", required: false }, | |||
| { label: "物料編號 Item Code", name: "itemCode", type: "text", required: false}, | |||
| ] | |||
| }, | |||
| { id: "rep-012", | |||
| title: "庫存盤點報告", | |||
| apiEndpoint: `${NEXT_PUBLIC_API_URL}/report/print-stock-take-variance`, | |||
| fields: [ | |||
| { label: "物料編號 Item Code", name: "itemCode", type: "text", required: false}, | |||
| { label: "庫存日期:由 Last In Date Start", name: "lastInDateStart", type: "date", required: false }, | |||
| { label: "庫存日期:至 Last In Date End", name: "lastInDateEnd", type: "date", required: false }, | |||
| { label: "物料編號 Item Code", name: "itemCode", type: "text", required: false}, | |||
| ] | |||
| }, | |||
| { id: "rep-013", | |||
| title: "物料出倉追蹤報告", | |||
| apiEndpoint: `${NEXT_PUBLIC_API_URL}/report/print-material-stock-out-traceability`, | |||
| fields: [ | |||
| { label: "物料編號 Item Code", name: "itemCode", type: "text", required: false}, | |||
| { label: "庫存日期:由 Last In Date Start", name: "lastInDateStart", type: "date", required: false }, | |||
| { label: "庫存日期:至 Last In Date End", name: "lastInDateEnd", type: "date", required: false }, | |||
| { label: "物料編號 Item Code", name: "itemCode", type: "text", required: false}, | |||
| ] | |||
| }, | |||
| ] | |||