| @@ -550,6 +550,29 @@ export default function ReportPage() { | |||||
| {loading ? "生成 Excel..." : "下載報告 (Excel)"} | {loading ? "生成 Excel..." : "下載報告 (Excel)"} | ||||
| </Button> | </Button> | ||||
| </> | </> | ||||
| ) : currentReport.id === 'rep-010' ? ( | |||||
| <> | |||||
| <Button | |||||
| variant="contained" | |||||
| size="large" | |||||
| startIcon={<DownloadIcon />} | |||||
| onClick={handlePrint} | |||||
| disabled={loading} | |||||
| sx={{ px: 4 }} | |||||
| > | |||||
| {loading ? "生成 PDF..." : "下載報告 (PDF)"} | |||||
| </Button> | |||||
| <Button | |||||
| variant="outlined" | |||||
| size="large" | |||||
| startIcon={<DownloadIcon />} | |||||
| onClick={handleExcelPrint} | |||||
| disabled={loading} | |||||
| sx={{ px: 4 }} | |||||
| > | |||||
| {loading ? "生成 Excel..." : "下載報告 (Excel)"} | |||||
| </Button> | |||||
| </> | |||||
| ) : currentReport.responseType === 'excel' ? ( | ) : currentReport.responseType === 'excel' ? ( | ||||
| <Button | <Button | ||||
| variant="contained" | variant="contained" | ||||