From fa061c4f157017cdf59e4357cbe182a0e1204ee7 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 14 十月 2026 09:29:28 +0800
Subject: [PATCH] feat(crm-invoice): 新增开票Excel批量导入功能

---
 src/api/mes/qc/iqc/index.ts |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/src/api/mes/qc/iqc/index.ts b/src/api/mes/qc/iqc/index.ts
index 94b2c3d..969e1c0 100644
--- a/src/api/mes/qc/iqc/index.ts
+++ b/src/api/mes/qc/iqc/index.ts
@@ -32,6 +32,7 @@
     majorQuantity?: number; // 涓ラ噸缂洪櫡鏁伴噺
     minorQuantity?: number; // 杞诲井缂洪櫡鏁伴噺
     checkResult?: number; // 妫�娴嬬粨鏋�
+    indicatorResultSummary?: string; // 妫�娴嬬粨鏋滐紙妫�楠岄」瀹炴祴鍊兼眹鎬伙紝濡傘�屾俯搴�:15锛岀數闃�:1銆嶏級
     receiveDate?: number; // 鏉ユ枡鏃ユ湡
     inspectDate?: number; // 妫�娴嬫棩鏈�
     inspector?: string; // 妫�娴嬩汉鍛橈紙鏄电О锛�
@@ -46,6 +47,12 @@
     executeStandard?: string; // 鎵ц鏍囧噯
     status?: number; // 鐘舵��
     remark?: string; // 澶囨敞
+  }
+
+  /** 鏉ユ枡妫�楠屽崟瀵煎叆缁撴灉 */
+  export interface ImportResult {
+    createList?: string[]; // 鏂板鎴愬姛鐨勬楠屽崟缂栧彿
+    failureList?: Record<string, string>; // 瀵煎叆澶辫触鏄庣粏锛歬ey 涓恒�屾楠屽崟缂栧彿 X銆嶆垨銆岀 N 琛屻��
   }
 }
 
@@ -85,3 +92,15 @@
 export function exportIqc(params: any) {
   return requestClient.download('/mes/qc/iqc/export-excel', { params });
 }
+
+/** 涓嬭浇鏉ユ枡妫�楠屽崟瀵煎叆妯℃澘 */
+export function importIqcTemplate() {
+  return requestClient.download('/mes/qc/iqc/get-import-template');
+}
+
+/** 瀵煎叆鏉ユ枡妫�楠屽崟 */
+export function importIqc(file: File) {
+  return requestClient.upload<MesQcIqcApi.ImportResult>('/mes/qc/iqc/import', {
+    file,
+  });
+}

--
Gitblit v1.9.3