From f3cac4aa2db56d6017c1d1dc035bcfeaec76c3e2 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 05 十一月 2026 18:31:13 +0800
Subject: [PATCH] feat(crm): 投标保证金迁移到销售管理并接入销售台账
---
src/api/mes/pro/route/index.ts | 25 ++++++++++++++++++++++++-
1 files changed, 24 insertions(+), 1 deletions(-)
diff --git a/src/api/mes/pro/route/index.ts b/src/api/mes/pro/route/index.ts
index 9b55925..76a3f8d 100644
--- a/src/api/mes/pro/route/index.ts
+++ b/src/api/mes/pro/route/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';
@@ -61,3 +61,26 @@
export function exportRoute(params: any) {
return requestClient.download('/mes/pro/route/export-excel', { params });
}
+
+/** 涓嬭浇宸ヨ壓璺嚎瀵煎叆妯℃澘 */
+export function importRouteTemplate() {
+ return requestClient.download('/mes/pro/route/get-import-template');
+}
+
+/** 瀵煎叆宸ヨ壓璺嚎 */
+export function importRoute(file: File, updateSupport: boolean) {
+ return requestClient.upload(
+ `/mes/pro/route/import?updateSupport=${updateSupport}`,
+ { file },
+ );
+}
+
+/** 涓嬭浇鍖呭惈璺嚎銆佷骇鍝併�佸伐搴忋�佸伐搴忎骇鍑恒�佸伐搴忔姇鏂欎簲寮犲伐浣滆〃鐨勬ā鏉� */
+export function importCompleteRouteTemplate() {
+ return requestClient.download('/mes/pro/route/get-complete-import-template');
+}
+
+/** 鎵归噺瀵煎叆瀹屾暣宸ヨ壓璺嚎 */
+export function importCompleteRoute(file: File) {
+ return requestClient.upload('/mes/pro/route/import-complete', { file });
+}
--
Gitblit v1.9.3