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) }} - - + +