完善导入导出

This commit is contained in:
WUSIJIAN
2025-12-04 16:26:26 +08:00
parent 990bbfd8fd
commit 9e62b288b2
7 changed files with 550 additions and 215 deletions

View File

@@ -47,11 +47,14 @@ export function exportProduct(data: object) {
}
//导入产品
export function importProduct(data: object) {
export function importProduct(data: FormData) {
return newService({
url: '/customerService/product/import',
responseType: 'blob',
method: 'post',
data: data,
headers: {
'Content-Type': 'multipart/form-data', // 文件上传需要使用form-data
},
timeout: 60000, // 文件上传可能较慢
});
}