gongchunyi
2 天以前 1677b6e8c20c3c8dd8297c08428538ca5e0029fc
src/api/inventoryManagement/stockManage.js
@@ -3,11 +3,37 @@
// 查询库存信息列表
export const getStockManagePage = (params) => {
    return request({
        url: "/stockmanagement/page",
        url: "/stockin/listPageCopy",
        method: "get",
        params,
    });
};
// 查询生产入库库存信息列表
export const getStockManagePageByProduction = (params) => {
    return request({
        url: "/stockin/listPageCopyByProduction",
        method: "get",
        params,
    });
};
// 查询成品库存信息列表
export const getStockManageProduction = (params) => {
    return request({
        url: "/stockin/listPageProductionStock",
        method: "get",
        params,
    });
};
// 查询自定义入库库存信息列表
export const getStockManagePageByCustom = (params) => {
    return request({
        url: "/stockin/listPageCopyByCustom",
        method: "get",
        params,
    });
};
// 修改库存信息
export const updateStockManage = (data) => {
@@ -21,8 +47,8 @@
// 删除库存信息
export function delStockManage(ids) {
    return request({
        url: '/stockmanagement/del',
        method: 'delete',
        url: '/stockin/del',
        method: 'post',
        data: ids
    })
}
@@ -37,11 +63,37 @@
    })
}
//出库接口
// 出库管理-领用接口
export const stockOut = (data) => {
    return request({
        url: '/stockmanagement/stockout',
        method: 'post',
        data: data
    })
}
//根据id获取库存信息
export function getStockManageById(id) {
    return request({
        url: '/stockmanagement/' + id,
        method: 'get'
    })
}
// 采购入库-库存管理-冻结不合格产品
export function frozenQuality(ids) {
    return request({
        url: '/stockin/frozenQuality',
        method: 'post',
        data: ids
    })
}
// 采购入库-库存管理-解冻不合格产品
export function thawQuality(ids) {
    return request({
        url: '/stockin/thawQuality',
        method: 'post',
        data: ids
    })
}