152 lines
3.2 KiB
JavaScript
152 lines
3.2 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
// 仓库
|
|
export function drpWareHousePageApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/ims_warehouse_info/list',
|
|
method: 'get',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
params: data
|
|
})
|
|
}
|
|
|
|
|
|
// 超市列表
|
|
export function supermarketPageListApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/supermarket_info/list',
|
|
method: 'get',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
params: data
|
|
})
|
|
}
|
|
// 超市列表-新增
|
|
export function insertSupermarketApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/supermarket_info',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
// 超市列表-编辑
|
|
export function editSupermarketApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/supermarket_info/edit',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 超市列表-删除
|
|
export function deleteSupermarketApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/supermarket_info/del/'+data.supermarketId,
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
}
|
|
})
|
|
}
|
|
|
|
// 通过角色查人员
|
|
export function userListByRoleApi(data) {
|
|
return request({
|
|
url: '/system/user/listByPost',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
// 商超商品列表
|
|
export function shopPageListApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/supermarket_product/list',
|
|
method: 'get',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
params: data
|
|
})
|
|
}
|
|
// 商品列表
|
|
export function shopProductPageListApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/supermarket_product/getAddList',
|
|
method: 'get',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
params: data
|
|
})
|
|
}
|
|
// 批量添加商品
|
|
export function batchRemoveMaterialApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/supermarket_product/addProducts',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
// 删除商品
|
|
export function delShopProductApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/supermarket_product/delProduct',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 商品详情
|
|
export function getShopProductApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/supermarket_product/getInfo',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
// 商品编辑
|
|
export function eitdShopProductApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/supermarket_product/edit',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
// 商品上线销售
|
|
export function onlienShopProductApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/supermarket_product/onlines',
|
|
method: 'post',
|
|
headers: {
|
|
"merchant-id":"378915229716713472",
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
|
|
|