修复一些错误

This commit is contained in:
liu
2026-08-14 21:28:55 +08:00
parent 398bb98356
commit 228212f8e3
20 changed files with 489 additions and 100 deletions
+3 -4
View File
@@ -5,7 +5,6 @@ import type {
IPurchaseCell,
IPurchaseDetail,
IPurchaseStoreSummary,
PurchaseExportType,
} from '@/domain/iPurchaseOrder.ts';
/** 订单商品参数修改 */
@@ -103,11 +102,11 @@ export async function generateBill(purchaseId: number, stores: BillGenerateStore
});
}
/** C2/C3 导出采购单(Excel 表格)type=all 全品类 / category 仅蔬果分类 */
export async function exportPurchase(id: number, type: PurchaseExportType = 'all') {
/** 导出采购单(Excel 表格,全品类 */
export async function exportPurchase(id: number) {
return downloadBlob(
`/purchase/order/${id}/export`,
{ type },
{},
`采购单_${id}.xlsx`,
);
}