bonus-ui/src/api/base/stall.js

198 lines
4.1 KiB
JavaScript

import request from '@/utils/request'
// 通过区域Id查询食堂
export function getCanteenByAreaApi(query) {
return request({
url: '/smart-canteen/alloc_canteen/list',
method: 'get',
headers: {
"merchant-id":"378915229716713472",
},
params: query
})
}
// 通过食堂查询档口
export function getStallByCanteenApi(data) {
return request({
url: '/smart-canteen/api/v2/alloc/canteen/list-multiple-auth-stall',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 查询档口列表
export function getPageStallApi(query) {
return request({
url: '/smart-canteen/alloc_stall/list',
method: 'get',
headers: {
"merchant-id":"378915229716713472",
},
params: query
})
}
// 新增档口
export function addStallApi(data) {
return request({
url: '/smart-canteen/alloc_stall',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 获取档口
export function getStallInfoModifyApi(stallId) {
return request({
url: '/smart-canteen/alloc_stall/'+stallId,
method: 'get',
headers: {
"merchant-id":"378915229716713472",
}
})
}
// 修改档口
export function updateStallApi(data) {
return request({
url: '/smart-canteen/alloc_stall/edit',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 删除档口
export function removeStallApi(stallIds) {
return request({
url: '/smart-canteen/alloc_stall/del/'+stallIds,
method: 'post',
headers: {
"merchant-id":"378915229716713472",
}
})
}
// 查询档口编号
export function getStallNumApi(data) {
return request({
url: 'smart-canteen/api/v2/alloc/canteen/get-canteen-num',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 查询标签列表(分页)
export function getLabelListApi(data) {
return request({
url: '/smart-canteen/api/v2/alloc/label/page',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 查询品类列表(分页)
export function getKindListApi(data) {
return request({
url: '/smart-canteen/api/v2/alloc/kind/list-name',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 通过角色查人员
export function userListByRoleApi(data) {
return request({
url: '/system/user/listByPost',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 人员职位职称查询
export function queryAllCustJobApi(data) {
return request({
url: '/smart-canteen/custJob/queryAllCustJob',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 分页查询人员及职位信息
export function queryCustJobPageApi(data) {
return request({
url: '/smart-canteen/custInfo/page-cust-job-info',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 查询餐次时段列表
export function getMealtimeListApi(data) {
return request({
url: '/smart-canteen/api/v2/alloc/mealtime/list-by-param',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 修改档口 是否支持预订餐
export function changeIfReserveApi(data) {
return request({
url: '/smart-canteen/api/v2/alloc/canteen/modify-stall-if-reserve',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 修改档口/档口 营业状态
export function changeBusinessStateApi(data) {
return request({
url: '/smart-canteen/api/v2/alloc/canteen/modify-business-state',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}