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

168 lines
3.1 KiB
JavaScript

import request from '@/utils/request'
// 原料类别树
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 getStockMaterialListApi(data) {
return request({
url: '/smart-canteen/ims/inventory/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
}
})
}
//查询供应商列表 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 drpWareHousePageApi(data) {
return request({
url: '/smart-canteen/ims_warehouse_info/listAll',
method: 'get',
headers: {
//"merchant-id":"378915229716713472",
},
params: data
})
}
// -------------退货单---------------
//获取退货单分页列表
export function returnMaterialPageApi(data) {
return request({
url: '/smart-canteen/ims_refund_goods/list',
method: 'get',
headers: {
//"merchant-id":"378915229716713472",
},
params:data
})
}
//获取退货单详情
export function getReturnMaterialInfoApi(data) {
return request({
url: '/smart-canteen/ims_refund_goods/page-detail',
method: 'get',
headers: {
//"merchant-id":"378915229716713472",
},
params:data
})
}
// 新增退货单-保存
export function addReturnMaterialApi(data) {
return request({
url: '/smart-canteen/ims_refund_goods/save',
method: 'post',
headers: {
//"merchant-id":"378915229716713472",
},
data: data
})
}
// 编辑退货单-提交
export function editReturnMaterialApi(data) {
return request({
url: '/smart-canteen/ims_refund_goods/commit',
method: 'post',
headers: {
//"merchant-id":"378915229716713472",
},
data: data
})
}
// 删除退货单
export function delReturnMaterialApi(data) {
return request({
url: '/smart-canteen/ims_refund_goods/remove/'+data.refundGoodsId,
method: 'post',
headers: {
//"merchant-id":"378915229716713472",
}
})
}