回筐导出

This commit is contained in:
liu
2026-08-15 00:14:19 +08:00
parent 7c3f6147ac
commit cd35213ae6
7 changed files with 459 additions and 3 deletions
+19
View File
@@ -0,0 +1,19 @@
import { downloadBlob } from '@/api/common/download.ts';
/**
* 汇总导出回筐记录:行=日期(同日记录合并),列=门店,
* 单元格为抵扣(附加)金额,含行合计/列合计,当天门店无记录填 0
*
* @param storeIds 门店ID列表,空数组=全部门店
*/
export async function exportContainerReturns(startDate: string, endDate: string, storeIds: number[]) {
return downloadBlob(
'/recon/container-return/export',
{
start_date: startDate,
end_date: endDate,
...(storeIds.length > 0 ? { store_ids: storeIds.join(',') } : {}),
},
'回筐记录.xlsx'
);
}