Преглед изворни кода

ItemQCFailReport Excel Version

MergeProblem1
B.E.N.S.O.N пре 12 часа
родитељ
комит
8ac38b7398
1 измењених фајлова са 23 додато и 0 уклоњено
  1. +23
    -0
      src/app/(main)/report/page.tsx

+ 23
- 0
src/app/(main)/report/page.tsx Прегледај датотеку

@@ -550,6 +550,29 @@ export default function ReportPage() {
{loading ? "生成 Excel..." : "下載報告 (Excel)"}
</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' ? (
<Button
variant="contained"


Loading…
Откажи
Сачувај