From d1013ed3371659c2835106fffeb772309607a451 Mon Sep 17 00:00:00 2001
From: tuqin <tuqin@tuqin.cn>
Date: 星期五, 11 九月 2026 09:39:45 +0800
Subject: [PATCH] feat(crm/erp): 新增采购申请、合同管理导入弹窗

---
 src/api/erp/purchase/request/index.ts |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/src/api/erp/purchase/request/index.ts b/src/api/erp/purchase/request/index.ts
index 3ba18a9..3553382 100644
--- a/src/api/erp/purchase/request/index.ts
+++ b/src/api/erp/purchase/request/index.ts
@@ -46,6 +46,16 @@
   }
 }
 
+/** 閲囪喘鐢宠瀵煎叆缁撴灉 */
+export interface ImportResult {
+  /** 鍒涘缓鎴愬姛鐨勯噰璐敵璇峰崟鍙� */
+  createList?: string[];
+  /** 鏇存柊鎴愬姛鐨勯噰璐敵璇峰崟鍙� */
+  updateList?: string[];
+  /** 瀵煎叆澶辫触闆嗗悎锛宬ey 涓洪噰璐敵璇峰崟鍙锋垨琛屽彿锛寁alue 涓哄け璐ュ師鍥� */
+  failureList?: Record<string, string>;
+}
+
 /** 鍒涘缓閲囪喘鐢宠 */
 export function createPurchaseRequest(data: ErpPurchaseRequestApi.PurchaseRequest) {
   return requestClient.post('/erp/purchase-request/create', data);
@@ -134,3 +144,13 @@
     }
   }
 }
+
+/** 涓嬭浇閲囪喘鐢宠瀵煎叆妯℃澘 */
+export function importPurchaseRequestTemplate() {
+  return requestClient.download('/erp/purchase-request/get-import-template');
+}
+
+/** 瀵煎叆閲囪喘鐢宠 */
+export function importPurchaseRequest(file: File) {
+  return requestClient.upload<ImportResult>('/erp/purchase-request/import', { file });
+}

--
Gitblit v1.9.3