From 7998c86aa14db974a41be355ec3ded60d833ca3a Mon Sep 17 00:00:00 2001
From: zzyuan <781948537@qq.com>
Date: Tue, 11 Mar 2025 18:32:30 +0800
Subject: [PATCH] =?UTF-8?q?=E8=8F=9C=E5=93=81=E7=B1=BB=E5=9E=8B=E5=AF=B9?=
=?UTF-8?q?=E6=8E=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/dish/type.js | 307 +++++++++++++++++++++++++
src/views/dish/type/index.vue | 422 ++++++++++++++++++++++++++++++++++
2 files changed, 729 insertions(+)
create mode 100644 src/api/dish/type.js
create mode 100644 src/views/dish/type/index.vue
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 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+ {{(queryParams.pageNum - 1) * 10 + scope.$index + 1}}
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file