|
|
|
@@ -72,13 +72,11 @@ export default function ReportPage() { |
|
|
|
categoryMap[item.code] = item; |
|
|
|
}); |
|
|
|
|
|
|
|
// Create options with code and name format: "PP1162 瑞士汁(1磅/包)" |
|
|
|
const options = itemCodesWithName.map(item => { |
|
|
|
const code = item.code; |
|
|
|
const name = item.name || ''; |
|
|
|
const category = categoryMap[code]?.category || ''; |
|
|
|
|
|
|
|
// Format: "PP1162 瑞士汁(1磅/包)" or "PP1162 瑞士汁(1磅/包) (FG)" |
|
|
|
let label = name ? `${code} ${name}` : code; |
|
|
|
if (category) { |
|
|
|
label = `${label} (${category})`; |
|
|
|
|