From 8299116e84cd704e28dac09d284d3fc33adca511 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期日, 25 十月 2026 12:42:29 +0800
Subject: [PATCH] feat(constants): 添加MES业务枚举常量并更新自动生成码规则
---
src/api/mes/tm/tool/type/index.ts | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/src/api/mes/tm/tool/type/index.ts b/src/api/mes/tm/tool/type/index.ts
index d7e0f15..d159340 100644
--- a/src/api/mes/tm/tool/type/index.ts
+++ b/src/api/mes/tm/tool/type/index.ts
@@ -1,4 +1,4 @@
-import type { PageParam, PageResult } from '..\..\..\..\..\packages\effects\request\src';
+import type { PageParam, PageResult } from '@vben/request';
import { requestClient } from '#/api/request';
@@ -57,3 +57,16 @@
export function exportToolType(params: any) {
return requestClient.download('/mes/tm/tool-type/export-excel', { params });
}
+
+/** 涓嬭浇宸ュ叿绫诲瀷瀵煎叆妯℃澘 */
+export function importToolTypeTemplate() {
+ return requestClient.download('/mes/tm/tool-type/get-import-template');
+}
+
+/** 瀵煎叆宸ュ叿绫诲瀷 */
+export function importToolType(file: File, updateSupport: boolean) {
+ return requestClient.upload(
+ `/mes/tm/tool-type/import?updateSupport=${updateSupport}`,
+ { file },
+ );
+}
--
Gitblit v1.9.3