zhangwencui
2026-05-16 88f5470dc4829e2bdde9dc4aeb79be85837c1c84
src/api/inventoryManagement/stockInventory.js
@@ -1,6 +1,6 @@
import request from "@/utils/request";
// 分页查询库存记录列表
export const getStockInventoryListPage = (params) => {
export const getStockInventoryListPage = params => {
    return request({
        url: "/stockInventory/pagestockInventory",
        method: "get",
@@ -9,7 +9,7 @@
};
// 分页查询联合库存记录列表(包含商品信息)
export const getStockInventoryListPageCombined = (params) => {
export const getStockInventoryListPageCombined = params => {
    return request({
        url: "/stockInventory/pageListCombinedStockInventory",
        method: "get",
@@ -18,7 +18,7 @@
};
// 创建库存记录
export const createStockInventory = (params) => {
export const createStockInventory = params => {
    return request({
        url: "/stockInventory/addstockInventory",
        method: "post",
@@ -27,7 +27,7 @@
};
// 减少库存记录
export const subtractStockInventory = (params) => {
export const subtractStockInventory = params => {
    return request({
        url: "/stockInventory/subtractStockInventory",
        method: "post",
@@ -35,7 +35,7 @@
    });
};
export const getStockInventoryReportList = (params) => {
export const getStockInventoryReportList = params => {
    return request({
        url: "/stockInventory/stockInventoryPage",
        method: "get",
@@ -43,7 +43,7 @@
    });
};
export const getStockInventoryInAndOutReportList = (params) => {
export const getStockInventoryInAndOutReportList = params => {
    return request({
        url: "/stockInventory/stockInAndOutRecord",
        method: "get",
@@ -52,7 +52,7 @@
};
// 冻结库存记录
export const frozenStockInventory = (params) => {
export const frozenStockInventory = params => {
    return request({
        url: "/stockInventory/frozenStock",
        method: "post",
@@ -61,10 +61,18 @@
};
// 解冻库存记录
export const thawStockInventory = (params) => {
export const thawStockInventory = params => {
    return request({
        url: "/stockInventory/thawStock",
        method: "post",
        data: params,
    });
};
export const getStockInventoryByModelId = productModelId => {
  return request({
    url: "/stockInventory/getByModelId",
    method: "get",
    params: { productModelId },
  });
};