Sfoglia il codice sorgente

stocktake report update

production
tommy 4 giorni fa
parent
commit
fa17492940
2 ha cambiato i file con 21 aggiunte e 0 eliminazioni
  1. +3
    -0
      src/app/(main)/report/page.tsx
  2. +18
    -0
      src/config/reportConfig.ts

+ 3
- 0
src/app/(main)/report/page.tsx Vedi File

@@ -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();
};



+ 18
- 0
src/config/reportConfig.ts Vedi File

@@ -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",


Caricamento…
Annulla
Salva