批量对账
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user