From ebb821acad23f2003198284c18054281f26d953a Mon Sep 17 00:00:00 2001 From: "zangch@mesnac.com" Date: Tue, 10 Mar 2026 15:04:41 +0800 Subject: [PATCH] =?UTF-8?q?refactor(crm):=20=E9=87=8D=E6=9E=84=E6=8A=A5?= =?UTF-8?q?=E4=BB=B7=E5=8D=95=E6=A8=A1=E6=9D=BF=E5=AF=BC=E5=87=BA=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除旧版后端直出模板导出接口 exportQuoteTemplate - 将模板导出方式从后端直接下载改为前端路由跳转到 /quote/quoteView - 通过模板变量赋值后由前端 UmoEditor 导出 PDF - 注释掉 Excel 导出相关代码及按钮 - 更新模板导出权限标识从 exportTemplate 改为 export - 修改 handleExportTemplate 方法实现新的跳转逻辑 - 调整表格列布局以改善代码格式 --- src/api/oa/crm/crmQuoteInfo/index.ts | 8 +-- src/views/oa/crm/crmQuoteInfo/index.vue | 91 +++++++++++++++---------- 2 files changed, 59 insertions(+), 40 deletions(-) diff --git a/src/api/oa/crm/crmQuoteInfo/index.ts b/src/api/oa/crm/crmQuoteInfo/index.ts index f07405b..050e995 100644 --- a/src/api/oa/crm/crmQuoteInfo/index.ts +++ b/src/api/oa/crm/crmQuoteInfo/index.ts @@ -98,16 +98,16 @@ export const recalcQuoteTotals = (quoteId: string | number): AxiosPromise { +/* export const exportQuoteTemplate = (quoteId: string | number) => { return request({ url: '/oa/crm/crmQuoteInfo/exportTemplate/' + quoteId, method: 'get', responseType: 'blob' }); -}; +}; */ /** * 提交报价单并发起流程 diff --git a/src/views/oa/crm/crmQuoteInfo/index.vue b/src/views/oa/crm/crmQuoteInfo/index.vue index e6b22fc..8f3397c 100644 --- a/src/views/oa/crm/crmQuoteInfo/index.vue +++ b/src/views/oa/crm/crmQuoteInfo/index.vue @@ -160,9 +160,9 @@ >删除 - - 导出 - + + + - + - + - + - + @@ -272,10 +300,10 @@ - - - - + + + + @@ -287,7 +315,7 @@ type="success" icon="Document" @click="handleExportTemplate(scope.row)" - v-hasPermi="['oa/crm:crmQuoteInfo:exportTemplate']" + v-hasPermi="['oa/crm:crmQuoteInfo:export']" > @@ -482,11 +510,9 @@