From d80646eb519768b160e1af1afc561a4937a4a8b8 Mon Sep 17 00:00:00 2001
From: czx <28353131@qq.com>
Date: Thu, 28 Jan 2021 17:58:17 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=95=B0=E6=8D=AE=E5=88=97?=
=?UTF-8?q?=E8=A1=A8=E6=98=BE=E7=A4=BA=E6=95=88=E6=9E=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../views/fantang/mealsStatistics/index.vue | 83 +++++++++++++++++--
1 file changed, 75 insertions(+), 8 deletions(-)
diff --git a/ruoyi-ui/src/views/fantang/mealsStatistics/index.vue b/ruoyi-ui/src/views/fantang/mealsStatistics/index.vue
index 02bd413f9..33090355e 100644
--- a/ruoyi-ui/src/views/fantang/mealsStatistics/index.vue
+++ b/ruoyi-ui/src/views/fantang/mealsStatistics/index.vue
@@ -81,15 +81,16 @@
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
+
@@ -261,6 +262,71 @@ export default {
return '加餐';
},
+ formatToRice(row) {
+ if(row.rice)
+ return '加饭';
+ else
+ return '-';
+ },
+ formatToMeat(row) {
+ if(row.meat)
+ return '加肉';
+ else
+ return '-';
+ },
+ formatToVegetables(row) {
+ if(row.vegetables)
+ return '加菜';
+ else
+ return '-';
+ },
+ formatToEgg(row) {
+ if(row.egg)
+ return row.egg;
+ else
+ return '-';
+ },
+
+ formatToOpenFlag(row) {
+ if(row.openFlag)
+ return '是';
+ else
+ return '-';
+ },
+ formatToReplace(row) {
+ if (row.openFlag) {
+ if(row.isReplaceFood)
+ return '替';
+ else
+ return '加';
+ } else
+ return '-';
+ },
+
+
+ formatToNutritionName(row) {
+ if (row.openFlag) {
+ return row.nutritionName;
+ } else
+ return '-';
+ },
+ formatToNutritionFoodPrice(row) {
+ if (row.openFlag) {
+ return row.nutritionFoodPrice;
+ } else
+ return '-';
+ },
+ formatToNutritionFoodFlag(row) {
+ if (row.openFlag) {
+ if(row.nutritionFoodFlag)
+ return '报';
+ else
+ return '停';
+ } else
+ return '-';
+
+ },
+
/** 查询报餐管理列表 */
getList() {
this.loading = true;
@@ -268,6 +334,7 @@ export default {
this.mealsList = response.rows;
this.total = response.total;
this.loading = false;
+ console.log(this.mealsList);
});
},
// 取消按钮