416 lines
9.5 KiB
JavaScript
416 lines
9.5 KiB
JavaScript
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
|
|
})
|
|
}
|
|
// 仓库新增
|
|
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'
|
|
})
|
|
}
|
|
|
|
// 原料类别树
|
|
export function systemMaterialTreeApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/cook_material_type/getTree',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
// 查询原料列表
|
|
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
|
|
})
|
|
}
|
|
|
|
|
|
// -------------货品库存---------------
|
|
// 查询货品库存列表
|
|
export function getStockMaterialListApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/api/v1/drpinventory/list',
|
|
method: 'post',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
},
|
|
data: data,
|
|
params:{
|
|
pageNum:data.pageNum,
|
|
pageSize:data.pageSize
|
|
}
|
|
})
|
|
}
|
|
|
|
// 货品批次详情-入库批次列表
|
|
export function getMaterialInStockBatchApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/ims/into-inventory/warehouse/materials',
|
|
method: 'post',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
},
|
|
data: data,
|
|
params:{
|
|
pageNum:data.pageNum,
|
|
pageSize:data.pageSize
|
|
}
|
|
})
|
|
}
|
|
|
|
// 配置库存数量(最大最小)
|
|
export function editStockMaterialApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/ims/inventory/edit',
|
|
method: 'post',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
},
|
|
data: data,
|
|
params:{
|
|
pageNum:data.pageNum,
|
|
pageSize:data.pageSize
|
|
}
|
|
})
|
|
}
|
|
|
|
|
|
|
|
// -------------入库管理---------------
|
|
//查询入库管理主列表
|
|
export function warehouseInPageApi(data) {
|
|
return request({
|
|
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({
|
|
url: '/smart-canteen/ims/into-inventory/'+data.intoId,
|
|
method: 'get',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
}
|
|
})
|
|
}
|
|
// 新增入库管理
|
|
export function addWarehouseInApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/ims/into-inventory',
|
|
method: 'post',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
// 修改入库管理
|
|
export function editWarehouseInApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/ims/into-inventory/edit',
|
|
method: 'post',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
// 删除入库管理
|
|
export function delWarehouseInApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/ims/into-inventory/del/'+data.intoIds,
|
|
method: 'post',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
}
|
|
})
|
|
}
|
|
|
|
|
|
// -------------出库管理---------------
|
|
//查询出库管理主列表
|
|
export function warehouseOutPageApi(data) {
|
|
return request({
|
|
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({
|
|
url: '/smart-canteen/ims/out-inventory/'+data.outId,
|
|
method: 'get',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
}
|
|
})
|
|
}
|
|
// 新增出库管理
|
|
export function addWarehouseOutApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/ims/out-inventory',
|
|
method: 'post',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
// 修改出库管理
|
|
export function editWarehouseOutApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/ims/out-inventory/edit',
|
|
method: 'post',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
// 删除出库管理
|
|
export function delWarehouseOutApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/ims/out-inventory/del/'+data.outIds,
|
|
method: 'post',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
}
|
|
})
|
|
}
|
|
|
|
|
|
|
|
// -------------库存盘点---------------
|
|
//查询库存盘点列表
|
|
export function checkInventoryPageApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/ims_check_inventory/page',
|
|
method: 'get',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
},
|
|
params:data
|
|
})
|
|
}
|
|
//获取盘点库存原料
|
|
export function getCheckInventoryMaterialPageApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/ims_check_inventory/list/check/inventory/material',
|
|
method: 'get',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
},
|
|
params:data
|
|
})
|
|
}
|
|
//获取库存盘点详细信息
|
|
export function getCheckInventoryInfoApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/ims_check_inventory/detail',
|
|
method: 'get',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
},
|
|
params:data
|
|
})
|
|
}
|
|
// 新增库存盘点-保存
|
|
export function addCheckInventorySaveApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/ims_check_inventory/add/save',
|
|
method: 'post',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
// 新增库存盘点-提交
|
|
export function addCheckInventoryCommitApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/ims_check_inventory/add/commit',
|
|
method: 'post',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
//修改库存盘点-保存
|
|
export function editCheckInventorySaveApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/ims_check_inventory/edit/save',
|
|
method: 'post',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
// 修改库存盘点-提交
|
|
export function editCheckInventoryCommitApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/ims_check_inventory/edit/commit',
|
|
method: 'post',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
// 删除库存盘点
|
|
export function delCheckInventoryApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/ims_check_inventory/remove',
|
|
method: 'post',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
}
|
|
})
|
|
}
|
|
|
|
|
|
|
|
// -------------货品调拨---------------
|
|
//查询货品调拨列表
|
|
export function goodsTransferPageApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/ims_goods_transfer/page',
|
|
method: 'get',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
},
|
|
params:data
|
|
})
|
|
}
|
|
//获取货品调拨详细信息
|
|
export function getGoodsTransferInfoApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/ims_goods_transfer/info',
|
|
method: 'get',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
},
|
|
params:data
|
|
})
|
|
}
|
|
// 新增货品调拨-保存
|
|
export function addGoodsTransferSaveApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/ims_goods_transfer/add/save',
|
|
method: 'post',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
// 新增货品调拨-提交
|
|
export function addGoodsTransferCommitApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/ims_goods_transfer/add/commit',
|
|
method: 'post',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除货品调拨
|
|
export function delGoodsTransferApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/ims_goods_transfer/delete',
|
|
method: 'post',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
}
|
|
})
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|