From 4dd827a00627d9c30990b4c14549260c42bd06d7 Mon Sep 17 00:00:00 2001
From: 吴羡 <16976746+Xian-TT3@user.noreply.gitee.com>
Date: 星期一, 28 九月 2026 14:13:37 +0800
Subject: [PATCH] feat: 发票导入、质检批量导入与检测台账、回款必填、报价单号提示、退货物料搜索
---
src/api/mes/qc/ipqc/index.ts | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/src/api/mes/qc/ipqc/index.ts b/src/api/mes/qc/ipqc/index.ts
index 72c0e49..48fe15c 100644
--- a/src/api/mes/qc/ipqc/index.ts
+++ b/src/api/mes/qc/ipqc/index.ts
@@ -40,11 +40,18 @@
majorQuantity?: number; // 涓ラ噸缂洪櫡鏁伴噺
minorQuantity?: number; // 杞诲井缂洪櫡鏁伴噺
checkResult?: number; // 妫�娴嬬粨鏋�
+ indicatorResultSummary?: string; // 妫�娴嬬粨鏋滐紙妫�楠岄」瀹炴祴鍊兼眹鎬伙紝濡傘�屾俯搴�:15锛岀數闃�:1銆嶏級
inspectDate?: number; // 妫�娴嬫棩鏈�
inspectorUserId?: number; // 妫�娴嬩汉鍛樼敤鎴� ID
inspectorNickname?: string; // 妫�娴嬩汉鍛樻樀绉帮紙鍏宠仈鏌ヨ锛�
status?: number; // 鐘舵��
remark?: string; // 澶囨敞
+ }
+
+ /** 杩囩▼妫�楠屽崟瀵煎叆缁撴灉 */
+ export interface ImportResult {
+ createList?: string[]; // 鏂板鎴愬姛鐨勬楠屽崟缂栧彿
+ failureList?: Record<string, string>; // 瀵煎叆澶辫触鏄庣粏锛歬ey 涓恒�屾楠屽崟缂栧彿 X銆嶆垨銆岀 N 琛屻��
}
}
@@ -84,3 +91,15 @@
export function exportIpqc(params: any) {
return requestClient.download('/mes/qc/ipqc/export-excel', { params });
}
+
+/** 涓嬭浇杩囩▼妫�楠屽崟瀵煎叆妯℃澘 */
+export function importIpqcTemplate() {
+ return requestClient.download('/mes/qc/ipqc/get-import-template');
+}
+
+/** 瀵煎叆杩囩▼妫�楠屽崟 */
+export function importIpqc(file: File) {
+ return requestClient.upload<MesQcIpqcApi.ImportResult>('/mes/qc/ipqc/import', {
+ file,
+ });
+}
--
Gitblit v1.9.3