更新生产计划、销售订单、工作订单和仓库发料功能
This commit is contained in:
@@ -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 ?? []
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user