From ade27e8adf499603c85bcb08cda9e1c4e0bb7f11 Mon Sep 17 00:00:00 2001
From: zzyuan <781948537@qq.com>
Date: Wed, 28 May 2025 16:41:08 +0800
Subject: [PATCH] =?UTF-8?q?=E8=8F=9C=E8=B0=B1=E7=AE=A1=E7=90=86=E6=8E=A5?=
 =?UTF-8?q?=E5=8F=A3=E6=9B=BF=E6=8D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
 src/api/dish/menu.js                    | 39 +++++++++++++++----------
 src/views/device/doubleScreen/index.vue |  4 +--
 src/views/dish/menu/detail.vue          | 12 ++++----
 src/views/dish/menu/edit.vue            | 16 +++++-----
 4 files changed, 39 insertions(+), 32 deletions(-)
diff --git a/src/api/dish/menu.js b/src/api/dish/menu.js
index dadae61f..73f38792 100644
--- a/src/api/dish/menu.js
+++ b/src/api/dish/menu.js
@@ -21,7 +21,7 @@ export function menuTypeListApi(data) {
       },
       data: data
     })
-} 
+}
 
 // 用户范围
 export function getmkteffectiveApi(data) {
@@ -35,10 +35,11 @@ export function getmkteffectiveApi(data) {
     })
 }
 
+
 // 弹窗-菜品列表
 export function getDishesByTypePageApi(data) {
   return request({
-    url: '/smart-canteen/menu_dishes/list',
+    url: '/smart-canteen/cook_dishes/list',
     method: 'post',
     headers: {
         "merchant-id":"378915229716713472",
@@ -54,7 +55,7 @@ export function getDishesByTypePageApi(data) {
 // 获取当前菜谱
 export function getCurrentRecipeListApi(data) {
     return request({
-      url: '/smart-canteen/menu_recipe/list',
+      url: '/smart-canteen/cook_recipe/list',
       method: 'get',
       headers: {
           "merchant-id":"378915229716713472",
@@ -65,23 +66,30 @@ export function getCurrentRecipeListApi(data) {
 // 获取所有菜谱-分页
 export function getPageRecipeListApi(data) {
     return request({
-      url: '/smart-canteen/menu_recipe/getDishesList',
-      method: 'post',
+      url: '/smart-canteen/cook_recipe/list',
+      method: 'get',
       headers: {
           "merchant-id":"378915229716713472",
       },
-      data: data,
-      params:{
-      pageNum:data.pageNum,
-      pageSize:data.pageSize
-    }
+      params: data
     })
 }
  
 //菜谱-新增
 export function addMenuRecipeApi(data) {
   return request({
-    url: '/smart-canteen/menu_recipe/add',
+    url: '/smart-canteen/cook_recipe',
+    method: 'post',
+    headers: {
+        "merchant-id":"378915229716713472",
+    },
+    data: data
+  })
+}
+//菜谱-编辑
+export function editMenuRecipeApi(data) {
+  return request({
+    url: '/smart-canteen/cook_recipe',
     method: 'post',
     headers: {
         "merchant-id":"378915229716713472",
@@ -93,12 +101,11 @@ export function addMenuRecipeApi(data) {
 //所有菜谱-删除
 export function removeMenuRecipeApi(data) {
   return request({
-    url: '/smart-canteen/menu_recipe/deleteRecipeById',
+    url: '/smart-canteen/cook_recipe/del/'+data.recipeId,
     method: 'post',
     headers: {
         "merchant-id":"378915229716713472",
-    },
-    data: data
+    }
   })
 }
 
@@ -118,7 +125,7 @@ export function unbindMenuRecipeApi(data) {
 // 指定日期菜谱-获取菜谱详情
 export function getMenuRecipeDetailApi(data) {
     return request({
-      url: '/smart-canteen/menu_recipe/getDetailByDate',
+      url: '/smart-canteen/cook_recipe/getRecipeDetailByDate',
       method: 'post',
       headers: {
           "merchant-id":"378915229716713472",
@@ -130,7 +137,7 @@ export function getMenuRecipeDetailApi(data) {
 // 每日循环(每周循环)-获取菜谱详情
 export function getMenuRecipeTemplateDetailApi(data) {
   return request({
-    url: '/smart-canteen/menu_recipe/detail',
+    url: '/smart-canteen/cook_recipe/getRecipeDetail',
     method: 'post',
     headers: {
         "merchant-id":"378915229716713472",
diff --git a/src/views/device/doubleScreen/index.vue b/src/views/device/doubleScreen/index.vue
index f0fc5431..fcfb7ca5 100644
--- a/src/views/device/doubleScreen/index.vue
+++ b/src/views/device/doubleScreen/index.vue
@@ -253,8 +253,8 @@
                     {{ (scope.row.salePrice/100).toFixed(2) }}
                 
               
-