From 268b3e77f3beaba03a1273d643d8aa4fa5db1c10 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 16 十月 2026 13:08:27 +0800
Subject: [PATCH] feat: 全量列表页接入 Excel 导入按钮与共享弹窗
---
src/api/mes/pd/ctc/index.ts | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/src/api/mes/pd/ctc/index.ts b/src/api/mes/pd/ctc/index.ts
index 55e5a0c..df06ab4 100644
--- a/src/api/mes/pd/ctc/index.ts
+++ b/src/api/mes/pd/ctc/index.ts
@@ -126,3 +126,16 @@
export function calcCtcReel(data: MesPdCtcApi.ReelCalcReq) {
return requestClient.post<MesPdCtcApi.ReelCalcResp>('/mes/pd/ctc/calc-reel', data);
}
+
+/** 涓嬭浇鎹綅瀵肩嚎鎶�鏈弬鏁板鍏ユā鏉� */
+export function importCtcTemplate() {
+ return requestClient.download('/mes/pd/ctc/get-import-template');
+}
+
+/** 瀵煎叆鎹綅瀵肩嚎鎶�鏈弬鏁� */
+export function importCtc(file: File, updateSupport: boolean) {
+ return requestClient.upload(
+ `/mes/pd/ctc/import?updateSupport=${updateSupport}`,
+ { file },
+ );
+}
--
Gitblit v1.9.3