Revert "feat: 前端 API 层新增出库单带明细创建和可用库存查询"

This reverts commit c03e1a97cc.
This commit is contained in:
zhouz
2026-07-22 13:38:17 +08:00
parent ffa2c7ee03
commit 80fe1e4dcb

View File

@@ -77,69 +77,4 @@ export function exportIostorInv(params: any) {
return requestClient.download('/wms/iostor-inv/export-excel', { params });
}
// ========== 出库单带明细创建 ==========
/** 出库明细项 */
export interface OutboundDetail {
materialCode: string;
materialId?: string;
pcsn?: string;
planQty: number;
qtyUnitId?: string;
qtyUnitName?: string;
remark?: string;
sourceBillCode?: string;
sourceBillType?: string;
sourceBilldtlId?: string;
}
/** 出库单创建请求(含明细) */
export interface OutboundCreateReq {
billType: string;
storId: string;
storCode?: string;
storName?: string;
bizDate: string;
remark?: string;
details: OutboundDetail[];
}
/** 可用库存项 */
export interface AvailableInventory {
vehicleCode: string;
pcsn: string;
materialCode: string;
materialId: string;
qty: number;
frozenQty: number;
availableQty: number;
qtyUnitId: string;
qtyUnitName: string;
extCode: string;
extType: string;
extDtlCode: string;
storId: string;
storCode: string;
storName: string;
}
/** 可用库存查询参数 */
export interface AvailableInventoryQuery {
storId: string;
materialCode?: string;
pcsn?: string;
vehicleCode?: string;
}
/** 创建出库单(含明细) */
export function createIostorInvWithDetails(data: OutboundCreateReq) {
return requestClient.post<string>('/wms/iostor-inv/create-with-details', data);
}
/** 查询可用库存 */
export function getAvailableInventory(params: AvailableInventoryQuery) {
return requestClient.get<AvailableInventory[]>(
'/wms/iostorinv-dtl/available-inventory',
{ params },
);
}