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

198 lines
4.1 KiB
JavaScript
Raw Normal View History

2025-03-06 18:47:13 +08:00
import request from '@/utils/request'
// 通过区域Id查询食堂
2025-04-08 14:06:40 +08:00
export function getCanteenByAreaApi(query) {
2025-03-06 18:47:13 +08:00
return request({
2025-04-08 14:06:40 +08:00
url: '/smart-canteen/alloc_canteen/list',
method: 'get',
2025-03-06 18:47:13 +08:00
headers: {
"merchant-id":"378915229716713472",
},
2025-04-08 14:06:40 +08:00
params: query
2025-03-06 18:47:13 +08:00
})
}
// 通过食堂查询档口
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
})
}
// 查询档口列表
2025-04-08 14:06:40 +08:00
export function getPageStallApi(query) {
2025-03-06 18:47:13 +08:00
return request({
2025-04-08 14:06:40 +08:00
url: '/smart-canteen/alloc_stall/list',
method: 'get',
2025-03-06 18:47:13 +08:00
headers: {
"merchant-id":"378915229716713472",
},
2025-04-08 14:06:40 +08:00
params: query
2025-03-06 18:47:13 +08:00
})
}
// 新增档口
export function addStallApi(data) {
return request({
2025-04-08 14:06:40 +08:00
url: '/smart-canteen/alloc_stall',
2025-03-06 18:47:13 +08:00
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 获取档口
2025-04-08 14:06:40 +08:00
export function getStallInfoModifyApi(stallId) {
2025-03-06 18:47:13 +08:00
return request({
2025-04-08 14:06:40 +08:00
url: '/smart-canteen/alloc_stall/'+stallId,
method: 'get',
2025-03-06 18:47:13 +08:00
headers: {
"merchant-id":"378915229716713472",
2025-04-08 14:06:40 +08:00
}
2025-03-06 18:47:13 +08:00
})
}
// 修改档口
export function updateStallApi(data) {
return request({
2025-04-08 14:06:40 +08:00
url: '/smart-canteen/alloc_stall/edit',
2025-03-06 18:47:13 +08:00
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 删除档口
2025-04-08 14:06:40 +08:00
export function removeStallApi(stallIds) {
2025-03-06 18:47:13 +08:00
return request({
2025-04-08 14:06:40 +08:00
url: '/smart-canteen/alloc_stall/del/'+stallIds,
2025-03-06 18:47:13 +08:00
method: 'post',
headers: {
"merchant-id":"378915229716713472",
2025-04-08 14:06:40 +08:00
}
2025-03-06 18:47:13 +08:00
})
}
// 查询档口编号
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
})
}
2025-03-27 16:31:51 +08:00
// 通过角色查人员
export function userListByRoleApi(data) {
return request({
url: '/system/user/listByPost',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
2025-03-06 18:47:13 +08:00
// 人员职位职称查询
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
})
}