From 70b7935fc261cd5e8eaaf1cfbc8078b04db576d2 Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期六, 07 十一月 2026 14:51:06 +0800
Subject: [PATCH] fix(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 d37a94c..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