20 lines
638 B
TypeScript
20 lines
638 B
TypeScript
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'
|
|
);
|
|
}
|