From a2d9fcb259621829bf4ec9680b5dbeac95ab5805 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 15 十月 2026 16:19:54 +0800
Subject: [PATCH] fix(crm): 销售目标达成分析默认查当前季度

---
 src/utils/contract-document.ts |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/utils/contract-document.ts b/src/utils/contract-document.ts
new file mode 100644
index 0000000..f1e10c0
--- /dev/null
+++ b/src/utils/contract-document.ts
@@ -0,0 +1,8 @@
+import { downloadFileFromBlobPart } from '@vben/utils';
+import { downloadContractDocument } from '#/api/crm/contract';
+
+export async function downloadContractWord(id: number, no?: string) {
+  const source = await downloadContractDocument(id);
+  const suffix = (no || String(id)).replaceAll(/[\\/:*?"<>|]/g, '_');
+  downloadFileFromBlobPart({ fileName: `璐攢鍚堝悓-${suffix}.docx`, source });
+}

--
Gitblit v1.9.3