From f53d392a6cafd507575be0a89b722b969a2655d6 Mon Sep 17 00:00:00 2001 From: ycy <2861518472@qq.com> Date: Wed, 10 Apr 2024 15:06:54 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=20=E5=AF=BC=E5=87=BApdf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 + src/layout/components/LayoutAside.vue | 3 + src/pages/finance-bill-manage/billDraw.vue | 343 +++++++++++++++++++++ src/router/modules/financeBillManage.js | 9 + src/utils/pdf.js | 20 ++ 5 files changed, 377 insertions(+) create mode 100644 src/pages/finance-bill-manage/billDraw.vue create mode 100644 src/utils/pdf.js diff --git a/package.json b/package.json index beb66d2..cfb60b4 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "file-saver": "^2.0.5", "less": "^4.2.0", "mockjs": "^1.1.0", + "pdfmake": "^0.2.10", "pinia": "^2.1.7", "pinia-plugin-persistedstate": "^3.2.1", "tdesign-vue-next": "^1.9.3", @@ -26,6 +27,7 @@ "devDependencies": { "@vitejs/plugin-vue": "^5.0.4", "@vitejs/plugin-vue-jsx": "^3.1.0", + "gulp": "^5.0.0", "sass": "^1.74.1", "vite": "^5.1.6" } diff --git a/src/layout/components/LayoutAside.vue b/src/layout/components/LayoutAside.vue index 15d9975..cc7adef 100644 --- a/src/layout/components/LayoutAside.vue +++ b/src/layout/components/LayoutAside.vue @@ -34,6 +34,9 @@ 报表明细 + + 票据列表 +