From efdde6be39183f0cce71e57bb3147c5f4161caac Mon Sep 17 00:00:00 2001 From: xzh <42543075@qq.com> Date: Tue, 25 Mar 2025 23:05:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=A4=BC=E8=96=84=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E5=AF=BC=E5=87=BAPDF=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/main/giftBookDetails/index.vue | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/views/main/giftBookDetails/index.vue b/src/views/main/giftBookDetails/index.vue index e15029a..c9503c2 100644 --- a/src/views/main/giftBookDetails/index.vue +++ b/src/views/main/giftBookDetails/index.vue @@ -63,6 +63,9 @@ 导出 + + 导出PDF + 导入 @@ -120,6 +123,7 @@ v-model="form.year" type="year" placeholder="请选择年份" + value-format="YYYY" /> @@ -373,6 +377,17 @@ const handleExport = () => { `礼薄明细_${new Date().getTime()}.xlsx` ); }; + +/** 导出按钮操作 */ +const handleExportWrod = () => { + proxy?.download( + 'main/giftBookDetails/exportPDF', + { + ...queryParams.value + }, + `礼薄明细_${new Date().getTime()}.pdf` + ); +}; /** 查询礼薄列表 */ const getGiftBookList = async () => { const res = await listGiftBook({ querypageNum: -1 });