From baddb052ccd4a91ef1881ba663e6a4e55b05f4fb Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 14 十月 2026 15:51:55 +0800
Subject: [PATCH] feat(hrm): 社保公积金方案表单加「适用部门」与默认缴费基数,修比例输入精度
---
src/api/mes/qc/ipqc/index.ts | 37 ++++++++++++++++++++++++++++---------
1 files changed, 28 insertions(+), 9 deletions(-)
diff --git a/src/api/mes/qc/ipqc/index.ts b/src/api/mes/qc/ipqc/index.ts
index 72c0e49..d606f28 100644
--- a/src/api/mes/qc/ipqc/index.ts
+++ b/src/api/mes/qc/ipqc/index.ts
@@ -14,15 +14,8 @@
sourceDocId?: number; // 鏉ユ簮鍗曟嵁 ID
sourceLineId?: number; // 鏉ユ簮鍗曟嵁琛� ID
sourceDocCode?: string; // 鏉ユ簮鍗曟嵁缂栧彿锛堝叧鑱旀煡璇級
- workOrderId?: number; // 鐢熶骇璁㈠崟 ID
- workOrderCode?: string; // 璁㈠崟缂栧彿锛堝叧鑱旀煡璇級
- workOrderName?: string; // 璁㈠崟鍚嶇О锛堝叧鑱旀煡璇級
- taskId?: number; // 鐢熶骇浠诲姟 ID
- workstationId?: number; // 宸ヤ綅 ID
- workstationName?: string; // 宸ヤ綅鍚嶇О锛堝叧鑱旀煡璇級
- processId?: number; // 宸ュ簭 ID
- processName?: string; // 宸ュ簭鍚嶇О锛堝叧鑱旀煡璇級
- itemId?: number; // 浜у搧鐗╂枡 ID
+ batchCode?: string; // 鎵瑰彿
+ itemId?: number; // 浜у搧鐗╂枡 ID锛圡DM 鐗╂枡 ID锛�
itemCode?: string; // 浜у搧鐗╂枡缂栫爜锛堝叧鑱旀煡璇級
itemName?: string; // 浜у搧鐗╂枡鍚嶇О锛堝叧鑱旀煡璇級
itemSpecification?: string; // 瑙勬牸鍨嬪彿锛堝叧鑱旀煡璇級
@@ -40,11 +33,25 @@
majorQuantity?: number; // 涓ラ噸缂洪櫡鏁伴噺
minorQuantity?: number; // 杞诲井缂洪櫡鏁伴噺
checkResult?: number; // 妫�娴嬬粨鏋�
+ indicatorResultSummary?: string; // 妫�娴嬬粨鏋滐紙妫�楠岄」瀹炴祴鍊兼眹鎬伙紝濡傘�屾俯搴�:15锛岀數闃�:1銆嶏級
inspectDate?: number; // 妫�娴嬫棩鏈�
inspectorUserId?: number; // 妫�娴嬩汉鍛樼敤鎴� ID
inspectorNickname?: string; // 妫�娴嬩汉鍛樻樀绉帮紙鍏宠仈鏌ヨ锛�
+ auditUserId?: number; // 澶嶆牳浜� ID
+ auditNickname?: string; // 澶嶆牳浜烘樀绉帮紙鍏宠仈鏌ヨ锛�
+ approveUserId?: number; // 瀹℃牳浜� ID
+ approveNickname?: string; // 瀹℃牳浜烘樀绉帮紙鍏宠仈鏌ヨ锛�
+ samplingLocation?: string; // 閲囨牱鍦扮偣
+ certificateNo?: string; // 璇佷功缂栧彿/鍚堟牸璇佸彿
+ executeStandard?: 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