gaoluyang
2026-06-01 ab8ff90598b99b1b88b925c03e82e20ff0426fcf
src/api/inventoryManagement/stockInventory.js
@@ -17,6 +17,14 @@
    });
};
export const getStockInventoryBatchNoQty = (params) => {
    return request({
        url: "/stockInventory/getBatchNoQty",
        method: "get",
        params,
    });
};
// 创建库存记录
export const createStockInventory = (params) => {
    return request({
@@ -30,6 +38,24 @@
export const subtractStockInventory = (params) => {
    return request({
        url: "/stockInventory/subtractStockInventory",
        method: "post",
        data: params,
    });
};
// 新增入库记录(仅创建记录,不调整库存)
export const addStockInRecordOnly = (params) => {
    return request({
        url: "/stockInventory/addStockInRecordOnly",
        method: "post",
        data: params,
    });
};
// 新增出库记录(仅创建记录,不调整库存)
export const addStockOutRecordOnly = (params) => {
    return request({
        url: "/stockInventory/addStockOutRecordOnly",
        method: "post",
        data: params,
    });
@@ -69,3 +95,28 @@
    });
};
export const getStockInventoryByModelId = (productModelId) => {
    return request({
        url: "/stockInventory/getByModelId",
        method: "get",
        params: { productModelId },
    });
};
// 获取物联设备实时数采数据
export const getIotRealtimeData = (id) => {
    return request({
        url: `/stockInventory/iotRealtime/${id}`,
        method: "get",
    });
};
// 绑定物联设备到库存
export const bindIotDevice = (id, warehouse) => {
    return request({
        url: `/stockInventory/bindIotDevice/${id}`,
        method: "put",
        data: { warehouse },
    });
};