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/api/crm/saleQuotation/index.ts |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/src/api/crm/saleQuotation/index.ts b/src/api/crm/saleQuotation/index.ts
index 108444b..76b17dd 100644
--- a/src/api/crm/saleQuotation/index.ts
+++ b/src/api/crm/saleQuotation/index.ts
@@ -36,6 +36,14 @@
     items?: SaleQuotationItem[];
   }
 
+  /** 瀹℃壒娴佺▼瀹氫箟 */
+  export interface ApproveProcess {
+    id: string;
+    key: string;
+    name: string;
+    version: number;
+  }
+
   /** 鎶ヤ环鍗曠墿鏂欐槑缁� */
   export interface SaleQuotationItem {
     id: number;
@@ -108,4 +116,25 @@
   return requestClient.post<number>('/crm/sale-quotation/convert-contract', null, {
     params: { id },
   });
+}
+
+/** 鎻愪氦鎶ヤ环鍗曞鎵� */
+export function submitSaleQuotation(id: number, processDefinitionKey: string) {
+  return requestClient.put('/crm/sale-quotation/submit', null, {
+    params: { id, processDefinitionKey },
+  });
+}
+
+/** 鑾峰彇鎶ヤ环鍗曞鎵规祦绋嬪垪琛� */
+export function getSaleQuotationApproveProcessList() {
+  return requestClient.get<CrmSaleQuotationApi.ApproveProcess[]>(
+    '/crm/sale-quotation/approve-process-list',
+  );
+}
+
+/** 涓嬭浇甯︾珷鎶ヤ环鍗� Word */
+export function downloadSaleQuotationDocument(id: number) {
+  return requestClient.download('/crm/sale-quotation/export-word', {
+    params: { id },
+  });
 }
\ No newline at end of file

--
Gitblit v1.9.3