批量对账

This commit is contained in:
liu
2026-09-07 22:53:50 +08:00
parent 379aeac2b3
commit 7de51391e4
9 changed files with 469 additions and 39 deletions
+17
View File
@@ -73,6 +73,23 @@ export async function getPurchaseCell(purchaseId: number, productId: number, sto
});
}
/** 切换单品「已对账」标记(入库持久化,再次调用取消标记) */
export async function togglePurchaseItemCheck(purchaseId: number, productId: number) {
return createAxios<{ checked: boolean }>({
url: `/purchase/order/${purchaseId}/check/${productId}`,
method: 'put',
});
}
/** 批量设置单品「已对账」标记(全选:checked=true 批量标记,false 批量取消) */
export async function batchPurchaseItemCheck(purchaseId: number, productIds: number[], checked: boolean) {
return createAxios<{ count: number }>({
url: `/purchase/order/${purchaseId}/check`,
method: 'put',
data: { product_ids: productIds, checked },
});
}
/** 门店订单明细修改(订货量、重量、单价),自动重算价格 */
export async function updatePurchaseCellItem(itemId: number, data: PurchaseCellUpdateParams) {
return createAxios({