diff --git a/src/api/dish/type.js b/src/api/dish/type.js new file mode 100644 index 00000000..cfd1fbea --- /dev/null +++ b/src/api/dish/type.js @@ -0,0 +1,307 @@ +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 addMenuDishesCookApi(data) { + return request({ + url: '/smart-canteen/api/v1/menudishescook/add', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} +// 编辑菜品灶类列表 +export function editMenuDishesCookApi(data) { + return request({ + url: '/smart-canteen/api/v1/menudishescook/edit', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} +// 删除菜品灶类 +export function removeMenuDishesCookApi(cookId) { + return request({ + url: '/smart-canteen/api/v1/menudishescook/remove/'+ cookId, + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + // data: data + }) +} + + +// 查询菜品标签列表 +export function getMenuDishesLabelListApi(data) { + return request({ + url: '/smart-canteen/api/v1/menudisheslabel/page', + method: 'get', + headers: { + "merchant-id":"378915229716713472", + }, + params: data + }) +} +// 新增菜品标签 +export function addMenuDishesLabelApi(data) { + return request({ + url: '/smart-canteen/api/v1/menudisheslabel/add', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} +// 编辑菜品标签 +export function editMenuDishesLabelApi(data) { + return request({ + url: '/smart-canteen/api/v1/menudisheslabel/edit', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} +// 删除菜品标签 +export function removeMenuDishesLabelApi(labelId) { + return request({ + url: '/smart-canteen/api/v1/menudisheslabel/remove/'+ labelId, + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + // data: data + }) +} + +// 查询菜品口味列表 +export function getMenuDishesTasteListApi(data) { + return request({ + url: '/smart-canteen/api/v1/menudishestaste/page', + method: 'get', + headers: { + "merchant-id":"378915229716713472", + }, + params: data + }) +} +// 新增菜品口味 +export function addMenuDishesTasteApi(data) { + return request({ + url: '/smart-canteen/api/v1/menudishestaste/add', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} +// 编辑菜品口味 +export function editMenuDishesTasteApi(data) { + return request({ + url: '/smart-canteen/api/v1/menudishestaste/edit', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} +// 删除菜品口味 +export function removeMenuDishesTasteApi(tasteId) { + return request({ + url: '/smart-canteen/api/v1/menudishestaste/remove/'+ tasteId, + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + // data: data + }) +} + +// 查询菜品功效列表 +export function getMenuDishesEffectListApi(data) { + return request({ + url: '/smart-canteen/api/v1/menudisheseffect/page', + method: 'get', + headers: { + "merchant-id":"378915229716713472", + }, + params: data + }) +} +// 新增菜品功效 +export function addMenuDishesEffectApi(data) { + return request({ + url: '/smart-canteen/api/v1/menudisheseffect/add', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} +// 编辑菜品功效 +export function editMenuDishesEffectApi(data) { + return request({ + url: '/smart-canteen/api/v1/menudisheseffect/edit', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} +// 删除菜品功效 +export function removeMenuDishesEffectApi(effectId) { + return request({ + url: '/smart-canteen/api/v1/menudisheseffect/remove/'+ effectId, + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + // data: data + }) +} + + +// 查询菜品菜系列表 +export function getMenuDishesStyleListApi(data) { + return request({ + url: '/smart-canteen/api/v1/menudishesstyle/page', + method: 'get', + headers: { + "merchant-id":"378915229716713472", + }, + params: data + }) +} +// 新增菜品菜系 +export function addMenuDishesStyleApi(data) { + return request({ + url: '/smart-canteen/api/v1/menudishesstyle/add', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} +// 编辑菜品菜系 +export function editMenuDishesStyleApi(data) { + return request({ + url: '/smart-canteen/api/v1/menudishesstyle/edit', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} +// 删除菜品菜系 +export function removeMenuDishesStyleApi(styleId) { + return request({ + url: '/smart-canteen/api/v1/menudishesstyle/remove/'+ styleId, + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + // data: data + }) +} + + +// 查询菜品适宜人群列表 +export function getMenuDishesSuitListApi(data) { + return request({ + url: '/smart-canteen/api/v1/menudishessuit/page', + method: 'get', + headers: { + "merchant-id":"378915229716713472", + }, + params: data + }) +} +// 新增菜品适宜人群 +export function addMenuDishesSuitApi(data) { + return request({ + url: '/smart-canteen/api/v1/menudishessuit/add', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} +// 编辑菜品适宜人群 +export function editMenuDishesSuitApi(data) { + return request({ + url: '/smart-canteen/api/v1/menudishessuit/edit', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} +// 删除菜品适宜人群 +export function removeMenuDishesSuitApi(suitId) { + return request({ + url: '/smart-canteen/api/v1/menudishessuit/remove/'+ suitId, + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + // data: data + }) +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/dish/type/index.vue b/src/views/dish/type/index.vue new file mode 100644 index 00000000..a0639f2d --- /dev/null +++ b/src/views/dish/type/index.vue @@ -0,0 +1,422 @@ + + + + \ No newline at end of file