222 lines
4.5 KiB
JavaScript
222 lines
4.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
|
|
})
|
|
}
|
|
|
|
|
|
|
|
// -------------入库管理---------------
|
|
//查询入库管理主列表
|
|
export function warehouseInPageApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/ims_warehouse_in/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_warehouse_in/'+data.orderGoodsId,
|
|
method: 'get',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
}
|
|
})
|
|
}
|
|
// 新增入库管理
|
|
export function addWarehouseInApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/ims_warehouse_in',
|
|
method: 'post',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
// 修改入库管理
|
|
export function editWarehouseInApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/ims_warehouse_in/edit',
|
|
method: 'post',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
// 删除入库管理
|
|
export function delWarehouseInApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/ims_warehouse_in/del/'+data.orderGoodsIds,
|
|
method: 'post',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
}
|
|
})
|
|
}
|
|
|
|
|
|
// -------------出库管理---------------
|
|
//查询出库管理主列表
|
|
export function warehouseOutPageApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/ims_warehouse_out/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_warehouse_out/'+data.orderGoodsId,
|
|
method: 'get',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
}
|
|
})
|
|
}
|
|
// 新增出库管理
|
|
export function addWarehouseOutApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/ims_warehouse_out',
|
|
method: 'post',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
// 修改出库管理
|
|
export function editWarehouseOutApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/ims_warehouse_out/edit',
|
|
method: 'post',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
// 删除出库管理
|
|
export function delWarehouseOutApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/ims_warehouse_out/del/'+data.orderGoodsIds,
|
|
method: 'post',
|
|
headers: {
|
|
//"merchant-id":"378915229716713472",
|
|
}
|
|
})
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|