商品列表状态保存

This commit is contained in:
2026-10-30 09:34:43 +08:00
parent 44e422febb
commit f0375cdb50
4 changed files with 84 additions and 218 deletions
+3 -3
View File
@@ -123,9 +123,9 @@ export function getBillDetailApi(id: number) {
}
/**
* 账单合并导出文件地址:GET /mini/bill/export
* 单个账单导出文件地址:GET /mini/bill/{id}/export
* 返回 xlsx 文件流(非 JSON,需带 token 下载);categoryId 仅过滤商品明细,费用仍全额汇总
*/
export function getBillExportUrl(ids: number[], categoryId = 0): string {
return `${BASE_URL}/mini/bill/export?ids=${ids.join(',')}&category_id=${categoryId}`
export function getBillExportUrl(id: number, categoryId = 0): string {
return `${BASE_URL}/mini/bill/${id}/export?category_id=${categoryId}`
}