云
2026-10-25 8299116e84cd704e28dac09d284d3fc33adca511
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 },
  );
}