feat: 客户管理和项目管理导入支持

This commit is contained in:
caiyuchao
2025-08-07 15:37:06 +08:00
parent a66b84b8ba
commit 9e776ec06b
9 changed files with 355 additions and 1 deletions

View File

@@ -72,6 +72,19 @@ export function exportCustomer(params: any) {
return requestClient.download('/license/customer/export-excel', params);
}
/** 下载导入模板 */
export function importTemplate() {
return requestClient.download('/license/customer/get-import-template');
}
/** 导入客户 */
export function importCustomer(file: File, updateSupport: boolean) {
return requestClient.upload('/license/customer/import', {
file,
updateSupport,
});
}
/** 客户名称是否唯一 */
export async function isCustomerNameUnique(
name: string,

View File

@@ -67,6 +67,19 @@ export function exportProject(params: any) {
return requestClient.download('/license/project/export-excel', params);
}
/** 下载导入模板 */
export function importTemplate() {
return requestClient.download('/license/project/get-import-template');
}
/** 导入项目 */
export function importProject(file: File, updateSupport: boolean) {
return requestClient.upload('/license/project/import', {
file,
updateSupport,
});
}
/** 项目名称是否唯一 */
export async function isProjectNameUnique(
name: string,