From a2d9fcb259621829bf4ec9680b5dbeac95ab5805 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 15 十月 2026 16:19:54 +0800
Subject: [PATCH] fix(crm): 销售目标达成分析默认查当前季度

---
 src/api/mes/qc/oqc/index.ts |   27 +++++++++++++++++++++++++--
 1 files changed, 25 insertions(+), 2 deletions(-)

diff --git a/src/api/mes/qc/oqc/index.ts b/src/api/mes/qc/oqc/index.ts
index 793f6db..75a07eb 100644
--- a/src/api/mes/qc/oqc/index.ts
+++ b/src/api/mes/qc/oqc/index.ts
@@ -2,6 +2,8 @@
 
 import { requestClient } from '#/api/request';
 
+import { normalizeQcDateFilter } from '../date-filter';
+
 export namespace MesQcOqcApi {
   /** MES 鍑鸿揣妫�楠屽崟 */
   export interface Oqc {
@@ -34,6 +36,7 @@
     majorQuantity?: number; // 涓ラ噸缂洪櫡鏁伴噺
     minorQuantity?: number; // 杞诲井缂洪櫡鏁伴噺
     checkResult?: number; // 妫�娴嬬粨鏋�
+    indicatorResultSummary?: string; // 妫�娴嬬粨鏋滐紙妫�楠岄」瀹炴祴鍊兼眹鎬伙紝濡傘�屾俯搴�:15锛岀數闃�:1銆嶏級
     outDate?: number; // 鍑鸿揣鏃ユ湡
     inspectDate?: number; // 妫�娴嬫棩鏈�
     inspectorUserId?: number; // 妫�娴嬩汉鍛樼敤鎴� ID
@@ -41,12 +44,18 @@
     status?: number; // 鐘舵��
     remark?: string; // 澶囨敞
   }
+
+  /** 鍑鸿揣妫�楠屽崟瀵煎叆缁撴灉 */
+  export interface ImportResult {
+    createList?: string[]; // 鏂板鎴愬姛鐨勬楠屽崟缂栧彿
+    failureList?: Record<string, string>; // 瀵煎叆澶辫触鏄庣粏锛歬ey 涓恒�屾楠屽崟缂栧彿 X銆嶆垨銆岀 N 琛屻��
+  }
 }
 
 /** 鏌ヨ鍑鸿揣妫�楠屽崟鍒嗛〉 */
 export function getOqcPage(params: PageParam) {
   return requestClient.get<PageResult<MesQcOqcApi.Oqc>>('/mes/qc/oqc/page', {
-    params,
+    params: normalizeQcDateFilter(params),
   });
 }
 
@@ -77,5 +86,19 @@
 
 /** 瀵煎嚭鍑鸿揣妫�楠屽崟 */
 export function exportOqc(params: any) {
-  return requestClient.download('/mes/qc/oqc/export-excel', { params });
+  return requestClient.download('/mes/qc/oqc/export-excel', {
+    params: normalizeQcDateFilter(params),
+  });
+}
+
+/** 涓嬭浇鍑鸿揣妫�楠屽崟瀵煎叆妯℃澘 */
+export function importOqcTemplate() {
+  return requestClient.download('/mes/qc/oqc/get-import-template');
+}
+
+/** 瀵煎叆鍑鸿揣妫�楠屽崟 */
+export function importOqc(file: File) {
+  return requestClient.upload<MesQcOqcApi.ImportResult>('/mes/qc/oqc/import', {
+    file,
+  });
 }

--
Gitblit v1.9.3