83 lines
1.5 KiB
JavaScript
83 lines
1.5 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
// 仓库
|
|
export function drpWareHousePageApi(data) {
|
|
return request({
|
|
url: '/smart-canteen/supply_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
|
|
})
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|