150 lines
3.2 KiB
JavaScript
150 lines
3.2 KiB
JavaScript
|
|
|
||
|
|
import request from '@/utils/request'
|
||
|
|
|
||
|
|
// // 查询菜品灶类列表
|
||
|
|
// export function getMenuDishesCookListApi(data) {
|
||
|
|
// return request({
|
||
|
|
// url: '/smart-canteen/api/v1/menudishescook/page',
|
||
|
|
// method: 'get',
|
||
|
|
// headers: {
|
||
|
|
// "merchant-id":"378915229716713472",
|
||
|
|
// },
|
||
|
|
// params: data
|
||
|
|
// })
|
||
|
|
// }
|
||
|
|
|
||
|
|
|
||
|
|
// 菜品种类-全量数据
|
||
|
|
export function menuDishesTypeAllListApi(data) {
|
||
|
|
return request({
|
||
|
|
url: '/smart-canteen/api/v1/menudishestype/all/list',
|
||
|
|
method: 'post',
|
||
|
|
headers: {
|
||
|
|
"merchant-id":"378915229716713472",
|
||
|
|
},
|
||
|
|
data: data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
// 菜品种类-新增 areaId typeName
|
||
|
|
export function addMenuDishesTypeApi(data) {
|
||
|
|
return request({
|
||
|
|
url: '/smart-canteen/api/v1/menudishestype/add',
|
||
|
|
method: 'post',
|
||
|
|
headers: {
|
||
|
|
"merchant-id":"378915229716713472",
|
||
|
|
},
|
||
|
|
data: data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
// 菜品种类-修改 areaId typeId typeName
|
||
|
|
export function editMenuDishesTypeApi(data) {
|
||
|
|
return request({
|
||
|
|
url: '/smart-canteen/api/v1/menudishestype/edit',
|
||
|
|
method: 'post',
|
||
|
|
headers: {
|
||
|
|
"merchant-id":"378915229716713472",
|
||
|
|
},
|
||
|
|
data: data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
// 菜品种类-删除 typeId
|
||
|
|
export function removeMenuDishesTypeApi(typeId) {
|
||
|
|
return request({
|
||
|
|
url: '/smart-canteen/api/v1/menudishestype/remove/'+typeId,
|
||
|
|
method: 'post',
|
||
|
|
headers: {
|
||
|
|
"merchant-id":"378915229716713472",
|
||
|
|
},
|
||
|
|
// data: data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
// 系统区域权限树
|
||
|
|
export function systemAreaTreeApi(data) {
|
||
|
|
return request({
|
||
|
|
url: '/smart-canteen/api/v2/alloc/area/system-auth/tree',
|
||
|
|
method: 'post',
|
||
|
|
headers: {
|
||
|
|
"merchant-id":"378915229716713472",
|
||
|
|
},
|
||
|
|
data: data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
// 通过区域Id查询食堂
|
||
|
|
export function getCanteenByAreaApi(data) {
|
||
|
|
return request({
|
||
|
|
url: '/smart-canteen/api/v2/alloc/canteen/list-all-auth-canteen',
|
||
|
|
method: 'post',
|
||
|
|
headers: {
|
||
|
|
"merchant-id":"378915229716713472",
|
||
|
|
},
|
||
|
|
data: data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
// 通过食堂Id查询档口
|
||
|
|
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 getMenuDishesListApi(data) {
|
||
|
|
return request({
|
||
|
|
url: '/smart-canteen/api/v2/menudishes/page',
|
||
|
|
method: 'post',
|
||
|
|
headers: {
|
||
|
|
"merchant-id":"378915229716713472",
|
||
|
|
},
|
||
|
|
data: data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
// 菜品列表-新增
|
||
|
|
export function addMenuDishesApi(data) {
|
||
|
|
return request({
|
||
|
|
url: '/smart-canteen/api/v2/menudishes/add',
|
||
|
|
method: 'post',
|
||
|
|
headers: {
|
||
|
|
"merchant-id":"378915229716713472",
|
||
|
|
},
|
||
|
|
data: data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
// 菜品列表-修改
|
||
|
|
export function editMenuDishesApi(data) {
|
||
|
|
return request({
|
||
|
|
url: '/smart-canteen/api/v2/menudishes/edit',
|
||
|
|
method: 'post',
|
||
|
|
headers: {
|
||
|
|
"merchant-id":"378915229716713472",
|
||
|
|
},
|
||
|
|
data: data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
// 菜品列表-删除
|
||
|
|
export function removeMenuDishesApi(dishesId) {
|
||
|
|
return request({
|
||
|
|
url: '/smart-canteen/api/v2/menudishes/remove/'+dishesId,
|
||
|
|
method: 'post',
|
||
|
|
headers: {
|
||
|
|
"merchant-id":"378915229716713472",
|
||
|
|
},
|
||
|
|
// data: data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|