瀏覽代碼

ItemQCFailReport Excel Version

MergeProblem1
B.E.N.S.O.N 18 小時之前
父節點
當前提交
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)"} {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"


Loading…
取消
儲存