From 173855b299e89930b5ea2ff9a9295fde9d0f55b5 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期六, 07 十一月 2026 08:51:43 +0800
Subject: [PATCH] feat: 同步质检、生产、销售、财务与人事前端功能
---
src/utils/contract-document.ts | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/utils/contract-document.ts b/src/utils/contract-document.ts
index f1e10c0..6c5c062 100644
--- a/src/utils/contract-document.ts
+++ b/src/utils/contract-document.ts
@@ -1,8 +1,15 @@
import { downloadFileFromBlobPart } from '@vben/utils';
import { downloadContractDocument } from '#/api/crm/contract';
+import { downloadSaleQuotationDocument } from '#/api/crm/saleQuotation';
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 });
}
+
+export async function downloadSaleQuotationWord(id: number, no?: string) {
+ const source = await downloadSaleQuotationDocument(id);
+ const suffix = (no || String(id)).replaceAll(/[\\/:*?"<>|]/g, '_');
+ downloadFileFromBlobPart({ fileName: `鎶ヤ环鍗�-${suffix}.docx`, source });
+}
--
Gitblit v1.9.3