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/erp/purchase/request/index.ts | 26 +++++++++++++++++++++++++-
1 files changed, 25 insertions(+), 1 deletions(-)
diff --git a/src/api/erp/purchase/request/index.ts b/src/api/erp/purchase/request/index.ts
index 3ba18a9..128bdd0 100644
--- a/src/api/erp/purchase/request/index.ts
+++ b/src/api/erp/purchase/request/index.ts
@@ -38,12 +38,26 @@
productUnitId?: number; // 浜у搧鍗曚綅缂栧彿
productUnitName?: string; // 浜у搧鍗曚綅鍚嶇О
productBarCode?: string; // 浜у搧鏉$爜
- productPrice?: number; // 浜у搧鍗曚环锛堝弬鑰冧环锛�
+ productPrice?: number; // 鍚◣鍗曚环锛堝弬鑰冧环锛�
count: number; // 鏁伴噺
taxPercent?: number; // 绋庣巼
+ totalPrice?: number; // 涓嶅惈绋庨噾棰�
+ taxPrice?: number; // 绋庨
demandTime?: string; // 闇�姹傛棩鏈�
remark?: string; // 澶囨敞
+ qcCheckFlag?: boolean; // 鏄惁璐ㄦ
+ inCount?: number; // 鍏ュ簱鏁伴噺
}
+}
+
+/** 閲囪喘鐢宠瀵煎叆缁撴灉 */
+export interface ImportResult {
+ /** 鍒涘缓鎴愬姛鐨勯噰璐敵璇峰崟鍙� */
+ createList?: string[];
+ /** 鏇存柊鎴愬姛鐨勯噰璐敵璇峰崟鍙� */
+ updateList?: string[];
+ /** 瀵煎叆澶辫触闆嗗悎锛宬ey 涓洪噰璐敵璇峰崟鍙锋垨琛屽彿锛寁alue 涓哄け璐ュ師鍥� */
+ failureList?: Record<string, string>;
}
/** 鍒涘缓閲囪喘鐢宠 */
@@ -134,3 +148,13 @@
}
}
}
+
+/** 涓嬭浇閲囪喘鐢宠瀵煎叆妯℃澘 */
+export function importPurchaseRequestTemplate() {
+ return requestClient.download('/erp/purchase-request/get-import-template');
+}
+
+/** 瀵煎叆閲囪喘鐢宠 */
+export function importPurchaseRequest(file: File) {
+ return requestClient.upload<ImportResult>('/erp/purchase-request/import', { file });
+}
--
Gitblit v1.9.3