小程序导出账单接口

This commit is contained in:
liu
2026-08-14 20:28:07 +08:00
parent 9a0999742f
commit 398bb98356
9 changed files with 693 additions and 4 deletions
+10
View File
@@ -1,4 +1,5 @@
import createAxios from '@/utils/request';
import { downloadBlob } from '@/api/common/download.ts';
import type { IBillDetail } from '@/domain/iBill.ts';
/** 账单详情(账单信息 + 合并商品明细 + 关联订单) */
@@ -17,3 +18,12 @@ export async function payBill(id: number, data: { paid_at: string; pay_remark?:
data,
});
}
/** 合并导出账单:勾选账单跨账单按商品合并明细,可按一级分类过滤 */
export async function exportBills(ids: number[], categoryId: number) {
return downloadBlob(
'/recon/bill/export',
{ ids: ids.join(','), category_id: categoryId },
'门店账单.xlsx'
);
}