From 8fa692c8c6693d9f8833c58ce84f6b61f6b6610e Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期六, 10 十月 2026 23:09:56 +0800
Subject: [PATCH] feat: 导入 添加导入按钮

---
 src/api/crm/invoice/index.ts |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/src/api/crm/invoice/index.ts b/src/api/crm/invoice/index.ts
index 121f6ec..c567875 100644
--- a/src/api/crm/invoice/index.ts
+++ b/src/api/crm/invoice/index.ts
@@ -120,3 +120,23 @@
     `/crm/invoice/simple-list?contractId=${contractId}`,
   );
 }
+
+/** 寮�绁ㄥ鍏ョ粨鏋� */
+export interface InvoiceImportResult {
+  /** 鍒涘缓鎴愬姛鐨勫紑绁ㄧ紪鍙� */
+  createList?: string[];
+  /** 瀵煎叆澶辫触鐨勯泦鍚堬細key 涓恒�屽彂绁ㄥ彿鐮� xxx銆嶆垨銆岀 N 琛屻�� */
+  failureList?: Record<string, string>;
+}
+
+/** 涓嬭浇寮�绁ㄥ鍏ユā鏉� */
+export function importInvoiceTemplate() {
+  return requestClient.download('/crm/invoice/get-import-template');
+}
+
+/** 瀵煎叆寮�绁� */
+export function importInvoice(file: File) {
+  return requestClient.upload<InvoiceImportResult>('/crm/invoice/import', {
+    file,
+  });
+}

--
Gitblit v1.9.3