更新生产计划、销售订单、工作订单和仓库发料功能

This commit is contained in:
panchengyong
2026-03-13 11:11:37 +08:00
parent 34cbf08144
commit 099e01e518
30 changed files with 681 additions and 185 deletions

View File

@@ -140,3 +140,20 @@ export function revokeIssue(mbomId: number): Promise<void> {
export function calcBom(planId: number): Promise<void> {
return request.put(`/erp/mp/plan/bom-calculate/${planId}`)
}
// 齐套检查:查询物料清单的子件库存情况
export interface StockCheckItem {
itemCode: string
itemName: string
unitName?: string
requiredQty: number
availableQty: number
shortage: number
isShortage: boolean
}
export function checkMbomStock(mbomId: number): Promise<StockCheckItem[]> {
return request.get(`/erp/mp/mbom/stock-check/${mbomId}`).then((res: any) => {
return res.data ?? res.rows ?? res ?? []
})
}