Implement product Excel file import functionality, including new service methods for handling Excel attachments. Update the ProductController to list imported Excel files by product code. Enhance BmsProduct and related entities to store references to the imported Excel files. Update front-end components to support displaying and managing Excel file attachments for products.

This commit is contained in:
wuweihua
2026-10-09 16:46:52 +08:00
parent 853187ad58
commit 533d360cdc
21 changed files with 589 additions and 31 deletions
+8
View File
@@ -167,3 +167,11 @@ export async function importProductCountryExcelAsync(file, countryCode, effectiv
}
return pollProductImportTask(taskId, onProgress)
}
/** List imported Excel attachments for product_code */
export function listProductExcelFiles(productCode) {
return request({
url: '/price/product/' + encodeURIComponent(productCode) + '/excelFiles',
method: 'get'
})
}