bonus-ui/src/api/foodManage/stockManage.js

246 lines
5.1 KiB
JavaScript
Raw Normal View History

2025-07-01 11:25:10 +08:00
import request from '@/utils/request'
// 分页查询 仓库-列表
export function getWareHousePageApi(data) {
return request({
url: '/smart-canteen/ims_warehouse_info/list',
method: 'get',
headers: {
//"merchant-id":"378915229716713472",
},
params:data
})
}
// 仓库
export function drpWareHousePageApi(data) {
return request({
url: '/smart-canteen/ims_warehouse_info/listAll',
method: 'get',
headers: {
//"merchant-id":"378915229716713472",
},
params: data
})
}
2025-07-01 11:25:10 +08:00
// 仓库新增
export function addWareHouseApi(data) {
return request({
url: '/smart-canteen/ims_warehouse_info',
method: 'post',
headers: {
//"merchant-id":"378915229716713472",
},
data: data
})
}
// 仓库新增
export function editWareHouseApi(data) {
return request({
url: '/smart-canteen/ims_warehouse_info/edit',
method: 'post',
headers: {
//"merchant-id":"378915229716713472",
},
data: data
})
}
// 仓库删除
export function delWareHouseApi(data) {
return request({
url: '/smart-canteen/ims_warehouse_info/del/'+data.warehouseId,
method: 'post'
})
}
2025-07-08 17:27:57 +08:00
2025-07-01 11:25:10 +08:00
// 原料类别树
export function systemMaterialTreeApi(data) {
return request({
url: '/smart-canteen/cook_material_type/getTree',
method: 'post',
data: data
})
}
2025-07-08 17:27:57 +08:00
// 查询原料列表
export function getMaterialListApi(data) {
return request({
url: '/smart-canteen/cook_material/list',
method: 'get',
headers: {
//"merchant-id":"378915229716713472",
},
params: data
})
}
//查询供应商列表 isPaging 0不分页 2分页
export function supplierPageApi(data) {
return request({
url: '/smart-canteen/ims_supplier/list',
method: 'get',
headers: {
//"merchant-id":"378915229716713472",
},
params:data
})
}
// -------------货品库存---------------
// 查询货品库存列表
2025-07-08 16:26:58 +08:00
export function getStockMaterialListApi(data) {
return request({
2025-07-08 16:26:58 +08:00
url: '/smart-canteen/ims/inventory/list',
method: 'post',
headers: {
//"merchant-id":"378915229716713472",
},
2025-07-08 16:26:58 +08:00
data: data,
params:{
pageNum:data.pageNum,
pageSize:data.pageSize
}
})
}
2025-07-01 11:25:10 +08:00
// -------------入库管理---------------
//查询入库管理主列表
export function warehouseInPageApi(data) {
return request({
2025-07-08 17:27:57 +08:00
url: '/smart-canteen/ims/into-inventory/list',
method: 'post',
headers: {
//"merchant-id":"378915229716713472",
},
data:data,
params:{
pageNum:data.pageNum,
pageSize:data.pageSize
}
})
}
//获取入库管理详细信息
export function getWarehouseInInfoApi(data) {
return request({
2025-07-08 17:27:57 +08:00
url: '/smart-canteen/ims/into-inventory/'+data.intoId,
method: 'get',
headers: {
//"merchant-id":"378915229716713472",
}
})
}
// 新增入库管理
export function addWarehouseInApi(data) {
return request({
2025-07-08 17:27:57 +08:00
url: '/smart-canteen/ims/into-inventory',
method: 'post',
headers: {
//"merchant-id":"378915229716713472",
},
data: data
})
}
// 修改入库管理
export function editWarehouseInApi(data) {
return request({
2025-07-08 17:27:57 +08:00
url: '/smart-canteen/ims/into-inventory/edit',
method: 'post',
headers: {
//"merchant-id":"378915229716713472",
},
data: data
})
}
// 删除入库管理
export function delWarehouseInApi(data) {
return request({
2025-07-08 17:27:57 +08:00
url: '/smart-canteen/ims/into-inventory/del/'+data.intoIds,
method: 'post',
headers: {
//"merchant-id":"378915229716713472",
}
})
}
2025-07-01 11:25:10 +08:00
// -------------出库管理---------------
//查询出库管理主列表
export function warehouseOutPageApi(data) {
return request({
2025-07-08 17:27:57 +08:00
url: '/smart-canteen/ims/out-inventory/list',
method: 'post',
headers: {
//"merchant-id":"378915229716713472",
},
data:data,
params:{
pageNum:data.pageNum,
pageSize:data.pageSize
}
})
}
//获取出库管理详细信息
export function getWarehouseOutInfoApi(data) {
return request({
2025-07-08 17:27:57 +08:00
url: '/smart-canteen/ims/out-inventory/'+data.outId,
method: 'get',
headers: {
//"merchant-id":"378915229716713472",
}
})
}
// 新增出库管理
export function addWarehouseOutApi(data) {
return request({
2025-07-08 17:27:57 +08:00
url: '/smart-canteen/ims/out-inventory',
method: 'post',
headers: {
//"merchant-id":"378915229716713472",
},
data: data
})
}
// 修改出库管理
export function editWarehouseOutApi(data) {
return request({
2025-07-08 17:27:57 +08:00
url: '/smart-canteen/ims/out-inventory/edit',
method: 'post',
headers: {
//"merchant-id":"378915229716713472",
},
data: data
})
}
// 删除出库管理
export function delWarehouseOutApi(data) {
return request({
2025-07-08 17:27:57 +08:00
url: '/smart-canteen/ims/out-inventory/del/'+data.outIds,
method: 'post',
headers: {
//"merchant-id":"378915229716713472",
}
})
}
2025-07-01 11:25:10 +08:00