采购单优化

This commit is contained in:
liu
2026-08-13 00:11:44 +08:00
parent 0211e5e98d
commit 6c794d0732
6 changed files with 362 additions and 19 deletions
+10
View File
@@ -2,6 +2,7 @@ import createAxios from '@/utils/request';
import type {
IPurchaseCell,
IPurchaseDetail,
IPurchaseStoreSummary,
} from '@/domain/iPurchaseOrder.ts';
/** 订单商品参数修改 */
@@ -64,3 +65,12 @@ export async function updatePurchaseCellItem(itemId: number, data: PurchaseCellU
data,
});
}
/** 门店购买详情:采购单内某门店的采购汇总(按商品聚合) */
export async function getPurchaseStoreSummary(purchaseId: number, storeId: number) {
return createAxios<IPurchaseStoreSummary>({
url: `/purchase/order/${purchaseId}/store`,
method: 'get',
params: { store_id: storeId },
});
}