diff --git a/src/views/smartRecipes/dailyRecipes/index.vue b/src/views/smartRecipes/dailyRecipes/index.vue index f977414..9031cd3 100644 --- a/src/views/smartRecipes/dailyRecipes/index.vue +++ b/src/views/smartRecipes/dailyRecipes/index.vue @@ -50,14 +50,7 @@ createTime: "2025-04-30", endTime: "2025-05-18", id: "1917456673534976001", - Monday: - "紫苏洋葱炒鸡/冬瓜炒肉片/红腰豆焖鸭/酸甜锅包肉/肉沫粉丝蒸水蛋/例汤", - Tuesday: - "紫苏洋葱炒鸡/冬瓜炒肉片/红腰豆焖鸭/酸甜锅包肉/肉沫粉丝蒸水蛋/例汤", - Wednesday: - "紫苏洋葱炒鸡/冬瓜炒肉片/红腰豆焖鸭/酸甜锅包肉/肉沫粉丝蒸水蛋/例汤", - Thursday: "", - Friday: + today: "紫苏洋葱炒鸡/冬瓜炒肉片/红腰豆焖鸭/酸甜锅包肉/肉沫粉丝蒸水蛋/例汤", Saturday: "", Sunday: "", @@ -66,17 +59,11 @@ { companyName: "南头央厨", deptName: "南头升辉小学", - type: "午餐", + type: "晚餐", createTime: "2025-04-30", endTime: "2025-05-18", id: "1917456673534976001", - Monday: - "紫苏洋葱炒鸡/冬瓜炒肉片/红腰豆焖鸭/酸甜锅包肉/肉沫粉丝蒸水蛋/例汤", - Tuesday: - "紫苏洋葱炒鸡/冬瓜炒肉片/红腰豆焖鸭/酸甜锅包肉/肉沫粉丝蒸水蛋/例汤", - Wednesday: "", - Thursday: "", - Friday: + today: "紫苏洋葱炒鸡/冬瓜炒肉片/红腰豆焖鸭/酸甜锅包肉/肉沫粉丝蒸水蛋/例汤", Saturday: "", Sunday: "", @@ -95,6 +82,24 @@ type: "input", label: "商品名称", }, + type:{ + type:'select', + label: '餐次', + options:[ + { + value:'早餐', + label:'早餐' + }, + { + value:'中餐', + label:'中餐' + }, + { + value:'晚餐', + label:'晚餐' + } + ] + } }); const columns = ref([ @@ -130,121 +135,13 @@ title: "结束日期", }, { - key: "Monday", - title: "星期一", + key: "today", + title: "当天", width: 100, - render: ({ Monday }) => { + render: ({ today }) => { return (
- {Monday.split("/").map( - (item: any, index: PropertyKey | undefined) => ( - - {item} - - ) - )} -
- ); - }, - }, - { - key: "Tuesday", - title: "星期二", - width: 100, - render: ({ Tuesday }) => { - return ( -
- {Tuesday.split("/").map( - (item: any, index: PropertyKey | undefined) => ( - - {item} - - ) - )} -
- ); - }, - }, - { - key: "Wednesday", - title: "星期三", - width: 100, - render: ({ Wednesday }) => { - return ( -
- {Wednesday.split("/").map( - (item: any, index: PropertyKey | undefined) => ( - - {item} - - ) - )} -
- ); - }, - }, - { - key: "Thursday", - title: "星期四", - width: 100, - render: ({ Thursday }) => { - return ( -
- {Thursday.split("/").map( - (item: any, index: PropertyKey | undefined) => ( - - {item} - - ) - )} -
- ); - }, - }, - { - key: "Friday", - title: "星期五", - width: 100, - render: ({ Friday }) => { - return ( -
- {Friday.split("/").map( - (item: any, index: PropertyKey | undefined) => ( - - {item} - - ) - )} -
- ); - }, - }, - { - key: "Saturday", - title: "星期六", - width: 100, - render: ({ Saturday }) => { - return ( -
- {Saturday.split("/").map( - (item: any, index: PropertyKey | undefined) => ( - - {item} - - ) - )} -
- ); - }, - }, - { - key: "Sunday", - title: "星期日", - width: 100, - render: ({ Sunday }) => { - return ( -
- {Sunday.split("/").map( + {today.split("/").map( (item: any, index: PropertyKey | undefined) => ( {item} diff --git a/src/views/smartRecipes/menuManagement/index.vue b/src/views/smartRecipes/menuManagement/index.vue index 641bc84..8c1d1b9 100644 --- a/src/views/smartRecipes/menuManagement/index.vue +++ b/src/views/smartRecipes/menuManagement/index.vue @@ -1,11 +1,279 @@ - - + + +