From 61b10eba26107393b1812c8b5d3af1f451d7726d Mon Sep 17 00:00:00 2001 From: chenhao Date: Thu, 29 Jan 2026 18:07:31 +0800 Subject: [PATCH] =?UTF-8?q?feat(quotation):=20=E6=B7=BB=E5=8A=A0=E6=8A=A5?= =?UTF-8?q?=E4=BB=B7=E5=8D=95=E5=AF=BC=E5=87=BA=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在报价单列表页面添加导出按钮,支持单个报价单导出为Excel文件 - 实现exportSingle方法,支持按ID导出指定报价单数据 - 集成EasyExcel库,实现报价单数据的Excel格式化导出 - 添加报价单导出的API接口和权限控制 - 实现包含Logo、标题、产品明细等完整报价单格式的Excel文件生成 - 添加导出功能的前端调用和下载处理逻辑 --- oms_web/oms_vue/src/api/base/quotation.js | 6 + .../src/views/base/quotation/index.vue | 17 +- .../sip/controller/QuotationController.java | 4 + .../ruoyi/sip/service/IQuotationService.java | 1 + .../service/impl/QuotationServiceImpl.java | 293 +++++++++++++++++- 5 files changed, 318 insertions(+), 3 deletions(-) diff --git a/oms_web/oms_vue/src/api/base/quotation.js b/oms_web/oms_vue/src/api/base/quotation.js index 24485517..ddd8d6ad 100644 --- a/oms_web/oms_vue/src/api/base/quotation.js +++ b/oms_web/oms_vue/src/api/base/quotation.js @@ -42,3 +42,9 @@ export function delQuotation(id) { method: 'delete' }) } +export function exportSingleQuotation(id) { + return request({ + url: '/quotation/export/single/' + id, + method: 'get' + }) +} diff --git a/oms_web/oms_vue/src/views/base/quotation/index.vue b/oms_web/oms_vue/src/views/base/quotation/index.vue index 83e6b25e..10de1091 100644 --- a/oms_web/oms_vue/src/views/base/quotation/index.vue +++ b/oms_web/oms_vue/src/views/base/quotation/index.vue @@ -108,6 +108,13 @@ @click="handleDelete(scope.row)" v-hasPermi="['base:quotation:remove']" >删除 + 导出 @@ -215,10 +222,11 @@