新增:批量导入商品功能

This commit is contained in:
2025-12-31 09:55:31 +08:00
parent f4e6705f3f
commit 3be4a42fe8
6 changed files with 75 additions and 5 deletions

View File

@@ -151,7 +151,7 @@ export async function importGoodsExcelFile(
formData.append(key, String(value));
});
const res = await request.post<ApiResult<GoodsImportResult>>(
MODULES_API_URL + '/shop/goods/import-excel',
MODULES_API_URL + '/shop/goods/import',
formData,
{ params }
);

View File

@@ -98,8 +98,7 @@
const params: GoodsImportExcelParam = {
sheetName: form.sheetName,
skipExisting: form.skipExisting,
createCategory: form.createCategory,
defaultFiles: '[]'
createCategory: form.createCategory
};
const merchantId = getMerchantId();
if (merchantId) {