From c2e8526f8f857be5e3a8c6f2b39c5efd424de33e Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期四, 15 十月 2026 11:50:24 +0800
Subject: [PATCH] refactor(auth): 优化认证逻辑和界面组件结构
---
src/api/mes/qc/iqc/index.ts | 30 +++++++++++++++++++++++++++---
1 files changed, 27 insertions(+), 3 deletions(-)
diff --git a/src/api/mes/qc/iqc/index.ts b/src/api/mes/qc/iqc/index.ts
index 5edd869..a2e8297 100644
--- a/src/api/mes/qc/iqc/index.ts
+++ b/src/api/mes/qc/iqc/index.ts
@@ -1,6 +1,8 @@
-import type { PageParam, PageResult } from '..\..\..\..\packages\effects\request\src';
+import type { PageParam, PageResult } from '@vben/request';
import { requestClient } from '#/api/request';
+
+import { normalizeQcDateFilter } from '../date-filter';
export namespace MesQcIqcApi {
/** MES 鏉ユ枡妫�楠屽崟 */
@@ -14,6 +16,7 @@
sourceLineId?: number; // 鏉ユ簮鍗曟嵁琛� ID
sourceDocCode?: string; // 鏉ユ簮鍗曟嵁缂栧彿锛堝叧鑱旀煡璇級
vendorId?: number; // 渚涘簲鍟� ID
+ vendorName?: string; // 渚涘簲鍟嗗悕绉帮紙鎵嬪~锛�
vendorNickname?: string; // 渚涘簲鍟嗙畝绉帮紙鍏宠仈鏌ヨ锛�
vendorBatch?: string; // 渚涘簲鍟嗘壒娆″彿
itemId?: number; // 浜у搧鐗╂枡 ID
@@ -32,6 +35,7 @@
majorQuantity?: number; // 涓ラ噸缂洪櫡鏁伴噺
minorQuantity?: number; // 杞诲井缂洪櫡鏁伴噺
checkResult?: number; // 妫�娴嬬粨鏋�
+ indicatorResultSummary?: string; // 妫�娴嬬粨鏋滐紙妫�楠岄」瀹炴祴鍊兼眹鎬伙紝濡傘�屾俯搴�:15锛岀數闃�:1銆嶏級
receiveDate?: number; // 鏉ユ枡鏃ユ湡
inspectDate?: number; // 妫�娴嬫棩鏈�
inspector?: string; // 妫�娴嬩汉鍛橈紙鏄电О锛�
@@ -40,12 +44,18 @@
status?: number; // 鐘舵��
remark?: string; // 澶囨敞
}
+
+ /** 鏉ユ枡妫�楠屽崟瀵煎叆缁撴灉 */
+ export interface ImportResult {
+ createList?: string[]; // 鏂板鎴愬姛鐨勬楠屽崟缂栧彿
+ failureList?: Record<string, string>; // 瀵煎叆澶辫触鏄庣粏锛歬ey 涓恒�屾楠屽崟缂栧彿 X銆嶆垨銆岀 N 琛屻��
+ }
}
/** 鏌ヨ鏉ユ枡妫�楠屽崟鍒嗛〉 */
export function getIqcPage(params: PageParam) {
return requestClient.get<PageResult<MesQcIqcApi.Iqc>>('/mes/qc/iqc/page', {
- params,
+ params: normalizeQcDateFilter(params),
});
}
@@ -76,5 +86,19 @@
/** 瀵煎嚭鏉ユ枡妫�楠屽崟 */
export function exportIqc(params: any) {
- return requestClient.download('/mes/qc/iqc/export-excel', { params });
+ return requestClient.download('/mes/qc/iqc/export-excel', {
+ params: normalizeQcDateFilter(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