菜谱下拉接口替换
This commit is contained in:
parent
652e437fcf
commit
827eb8694c
|
|
@ -74,6 +74,18 @@ export function getPageRecipeListApi(data) {
|
|||
params: data
|
||||
})
|
||||
}
|
||||
// 获取所有菜谱-不分页
|
||||
export function getPageRecipeListAllApi(data) {
|
||||
return request({
|
||||
url: '/smart-canteen/cook_recipe/listAll',
|
||||
method: 'get',
|
||||
headers: {
|
||||
//"merchant-id":"378915229716713472",
|
||||
},
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//菜谱-新增
|
||||
export function addMenuRecipeApi(data) {
|
||||
|
|
|
|||
|
|
@ -344,7 +344,7 @@
|
|||
|
||||
<script>
|
||||
import { systemAreaTreeApi,getCanteenByAreaApi,getStallByCanteenApi } from "@/api/base/stall";
|
||||
import { getmkteffectiveApi,getDishesByTypePageApi,addMenuRecipeApi,getPageRecipeListApi,getMenuRecipeDetailApi,getMenuRecipeTemplateDetailApi } from "@/api/dish/menu";
|
||||
import { getmkteffectiveApi,getDishesByTypePageApi,addMenuRecipeApi,getPageRecipeListAllApi,getMenuRecipeDetailApi,getMenuRecipeTemplateDetailApi } from "@/api/dish/menu";
|
||||
import { menuDishesTypeAllListApi } from "@/api/dish/dish";
|
||||
|
||||
export default {
|
||||
|
|
@ -1107,7 +1107,7 @@ export default {
|
|||
canteenId:this.dialogQueryParams.canteenId,
|
||||
stallId:this.dialogQueryParams.stallId,
|
||||
}
|
||||
getPageRecipeListApi(param).then((response) => {
|
||||
getPageRecipeListAllApi(param).then((response) => {
|
||||
this.recipeOptions = response.rows||[]
|
||||
this.dialogQueryParams.recipeId = null
|
||||
this.dialogQueryParams.recipeType = null;
|
||||
|
|
|
|||
|
|
@ -344,7 +344,7 @@
|
|||
|
||||
<script>
|
||||
import { systemAreaTreeApi,getCanteenByAreaApi,getStallByCanteenApi } from "@/api/base/stall";
|
||||
import { mealTimeListApi,getmkteffectiveApi,getDishesByTypePageApi,editMenuRecipeApi,getPageRecipeListApi,getMenuRecipeDetailApi,getMenuRecipeTemplateDetailApi } from "@/api/dish/menu";
|
||||
import { mealTimeListApi,getmkteffectiveApi,getDishesByTypePageApi,editMenuRecipeApi,getPageRecipeListAllApi,getMenuRecipeDetailApi,getMenuRecipeTemplateDetailApi } from "@/api/dish/menu";
|
||||
import { menuDishesTypeAllListApi } from "@/api/dish/dish";
|
||||
|
||||
export default {
|
||||
|
|
@ -1325,7 +1325,7 @@ export default {
|
|||
canteenId:this.dialogQueryParams.canteenId,
|
||||
stallId:this.dialogQueryParams.stallId,
|
||||
}
|
||||
getPageRecipeListApi(param).then((response) => {
|
||||
getPageRecipeListAllApi(param).then((response) => {
|
||||
this.recipeOptions = response.rows||[]
|
||||
this.dialogQueryParams.recipeId = null
|
||||
this.dialogQueryParams.recipeType = null;
|
||||
|
|
|
|||
|
|
@ -266,7 +266,7 @@
|
|||
<script>
|
||||
import { systemAreaTreeApi,getCanteenByAreaApi,getStallByCanteenApi } from "@/api/base/stall";
|
||||
import { mealTimeListApi,menuTypeListApi } from "@/api/dish/menu";
|
||||
import { getCurrentRecipeListApi, getPageRecipeListApi,removeMenuRecipeApi,unbindMenuRecipeApi,menuUpLoadApi } from "@/api/dish/menu";
|
||||
import { getCurrentRecipeListApi, getPageRecipeListApi,getPageRecipeListAllApi,removeMenuRecipeApi,unbindMenuRecipeApi,menuUpLoadApi } from "@/api/dish/menu";
|
||||
import { getToken } from '@/utils/auth'
|
||||
import { downloadFileByUrl } from '@/utils/download'
|
||||
export default {
|
||||
|
|
@ -535,15 +535,8 @@
|
|||
this.$router.push({ path: "/canteen/dish/menuDetail" });
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
// let param = {
|
||||
// recipeId:row.recipeId
|
||||
// }
|
||||
// getPageRecipeListApi(param).then(response => {
|
||||
// let obj = response.rows[0]
|
||||
|
||||
this.$router.push({ path: "/canteen/dish/menuEdit",query: {pageJson:JSON.stringify(row)} });
|
||||
// });
|
||||
handleUpdate(row) {
|
||||
this.$router.push({ path: "/canteen/dish/menuEdit",query: {pageJson:JSON.stringify(row)} });
|
||||
},
|
||||
/** 查看设备 */
|
||||
handleDevice(row) {
|
||||
|
|
@ -585,11 +578,10 @@
|
|||
//当日菜谱-选择菜谱按钮
|
||||
choseMenuRecipe(row){
|
||||
this.rowData = row
|
||||
let param = {
|
||||
size:-1,
|
||||
let param = {
|
||||
stallId:row.stallId
|
||||
}
|
||||
getPageRecipeListApi(param).then(response => {
|
||||
getPageRecipeListAllApi(param).then(response => {
|
||||
// console.log(response.records)
|
||||
this.recipeOptionsData = response.rows
|
||||
this.resetForm("menuForm");
|
||||
|
|
|
|||
|
|
@ -207,7 +207,7 @@
|
|||
<script>
|
||||
import { systemAreaTreeApi,getCanteenByAreaApi,getStallByCanteenApi } from "@/api/base/stall";
|
||||
import { getProductionPlanInfoApi, addProductionPlanApi, editProductionPlanApi } from "@/api/foodManage/purchaseManage";
|
||||
import { getDishesByTypePageApi,getPageRecipeListApi,getMenuRecipeDetailApi } from "@/api/dish/menu";
|
||||
import { getDishesByTypePageApi,getPageRecipeListAllApi,getMenuRecipeDetailApi } from "@/api/dish/menu";
|
||||
import { menuDishesTypeAllListApi } from "@/api/dish/dish";
|
||||
export default {
|
||||
name: "ProductionPlanEdit",
|
||||
|
|
@ -342,7 +342,7 @@ export default {
|
|||
this.stallOptions=response.rows||[]
|
||||
this.$set(this.baseInfo,"stallId",this.baseInfo.stallId)
|
||||
});
|
||||
getPageRecipeListApi({areaId:this.baseInfo.areaId,canteenId:this.baseInfo.canteenId,stallId:this.baseInfo.stallId,}).then((response) => {
|
||||
getPageRecipeListAllApi({areaId:this.baseInfo.areaId,canteenId:this.baseInfo.canteenId,stallId:this.baseInfo.stallId,}).then((response) => {
|
||||
this.recipeOptions = response.rows||[]
|
||||
this.$set(this.baseInfo,"recipeId",this.baseInfo.recipeId)
|
||||
});
|
||||
|
|
@ -351,7 +351,7 @@ export default {
|
|||
this.dateRangeList = this.getDateRange(this.dateRange[0],this.dateRange[1])
|
||||
this.dateRangeIndex = 0
|
||||
this.dateRangeRadio = this.formatDate(this.dateRange[0]);
|
||||
|
||||
|
||||
for (let i = 0; i < resDetailList.length; i++) {
|
||||
this.dateRangeList.forEach(item=>{
|
||||
if(resDetailList[i].detailDate==item.applyDate){
|
||||
|
|
@ -415,7 +415,7 @@ export default {
|
|||
canteenId:this.baseInfo.canteenId,
|
||||
stallId:this.baseInfo.stallId,
|
||||
}
|
||||
getPageRecipeListApi(param).then((response) => {
|
||||
getPageRecipeListAllApi(param).then((response) => {
|
||||
this.recipeOptions = response.rows||[]
|
||||
this.$set(this.baseInfo,"recipeId",null)
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue