From d597d2114e566b82afe12415adf5ee5668459b22 Mon Sep 17 00:00:00 2001
From: wangyilin <1454641981@qq.com>
Date: Wed, 7 May 2025 11:35:44 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A3=9F=E6=9D=90=E7=AE=A1=E7=90=86=E7=BC=96?=
=?UTF-8?q?=E5=86=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../departmentStructure/index.vue | 1 +
.../smartRecipes/foodManagement/index.ts | 175 +++++
.../smartRecipes/foodManagement/index.vue | 617 +++++++++++++++++-
3 files changed, 788 insertions(+), 5 deletions(-)
create mode 100644 src/views/smartRecipes/foodManagement/index.ts
diff --git a/src/views/personnelManagement/departmentStructure/index.vue b/src/views/personnelManagement/departmentStructure/index.vue
index 7512eb0..3c05fe7 100644
--- a/src/views/personnelManagement/departmentStructure/index.vue
+++ b/src/views/personnelManagement/departmentStructure/index.vue
@@ -4,6 +4,7 @@
:isPageTable="true">
添加库存
+ 导入
diff --git a/src/views/smartRecipes/foodManagement/index.ts b/src/views/smartRecipes/foodManagement/index.ts
new file mode 100644
index 0000000..98c7edb
--- /dev/null
+++ b/src/views/smartRecipes/foodManagement/index.ts
@@ -0,0 +1,175 @@
+export interface FoodItemValue {
+ ca?:number | string,
+ carbs?:number | string,
+ code?:string,
+ createTime?:string,
+ createUserId?:string,
+ createUserName?:string,
+ dietaryFiber?: number | string,
+ fat?: number | string,
+ fe?: number | string,
+ id?: string,
+ image?:string,
+ label?:number | string,
+ labelStr?:string,
+ name?:string,
+ power?:number | string,
+ primaryType?:string,
+ primaryTypeName?:string,
+ protein?:number | string,
+ se?: number | string,
+ secondaryType?:string,
+ secondaryTypeName?:string,
+ supplier?: string,
+ supplyCost?:number | string,
+ supplyProductCode?:string,
+ supplyProductName?:string,
+ updateTime?:string,
+ vitaminA?:number | string,
+ vitaminB1?: number | string,
+ vitaminB2?:number | string,
+ vitaminC?: number | string,
+ vitaminE?: number | string,
+ zn?: number | string
+}
+
+const datalist:FoodItemValue[] = [
+ {
+ ca:28,
+ carbs: 2,
+ code:"0452061",
+ createTime:"2024-04-10 00:15:48",
+ createUserId:"1",
+ createUserName:"系统管理员",
+ dietaryFiber: 1.2,
+ fat: 0.4,
+ fe: 1,
+ id: "1777629039623471334",
+ image:"https://07akioni.oss-cn-beijing.aliyuncs.com/07akioni.jpeg",
+ label:3,
+ labelStr:"果蔬",
+ name:"梅菜",
+ power:16,
+ primaryType:"1732325785633374210",
+ primaryTypeName:"蔬菜类及制品",
+ protein:1.8,
+ se: 0.53,
+ secondaryType:"1732327277182402562",
+ secondaryTypeName:"嫩茎、叶、花菜类",
+ supplier: "",
+ supplyCost:0,
+ supplyProductCode:"FBC10001",
+ supplyProductName:"甜梅菜",
+ updateTime:"2024-08-03 23:07:20",
+ vitaminA:142,
+ vitaminB1: 0.02,
+ vitaminB2:0.11,
+ vitaminC: 72,
+ vitaminE: 0.64,
+ zn: 0.41
+ },
+ {
+ ca:28,
+ carbs: 2,
+ code:"0452061",
+ createTime:"2024-04-10 00:15:48",
+ createUserId:"1",
+ createUserName:"系统管理员",
+ dietaryFiber: 1.2,
+ fat: 0.4,
+ fe: 1,
+ id: "1777629039623471334",
+ image:"https://picsum.photos/id/10/100/100",
+ label:3,
+ labelStr:"果蔬",
+ name:"梅菜",
+ power:16,
+ primaryType:"1732325785633374210",
+ primaryTypeName:"蔬菜类及制品",
+ protein:1.8,
+ se: 0.53,
+ secondaryType:"1732327277182402562",
+ secondaryTypeName:"嫩茎、叶、花菜类",
+ supplier: "",
+ supplyCost:0,
+ supplyProductCode:"FBC10001",
+ supplyProductName:"甜梅菜",
+ updateTime:"2024-08-03 23:07:20",
+ vitaminA:142,
+ vitaminB1: 0.02,
+ vitaminB2:0.11,
+ vitaminC: 72,
+ vitaminE: 0.64,
+ zn: 0.41
+ },
+ {
+ ca:28,
+ carbs: 2,
+ code:"0452061",
+ createTime:"2024-04-10 00:15:48",
+ createUserId:"1",
+ createUserName:"系统管理员",
+ dietaryFiber: 1.2,
+ fat: 0.4,
+ fe: 1,
+ id: "1777629039623471334",
+ image:"https://07akioni.oss-cn-beijing.aliyuncs.com/07akioni.jpeg",
+ label:3,
+ labelStr:"果蔬",
+ name:"梅菜",
+ power:16,
+ primaryType:"1732325785633374210",
+ primaryTypeName:"蔬菜类及制品",
+ protein:1.8,
+ se: 0.53,
+ secondaryType:"1732327277182402562",
+ secondaryTypeName:"嫩茎、叶、花菜类",
+ supplier: "",
+ supplyCost:0,
+ supplyProductCode:"FBC10001",
+ supplyProductName:"甜梅菜",
+ updateTime:"2024-08-03 23:07:20",
+ vitaminA:142,
+ vitaminB1: 0.02,
+ vitaminB2:0.11,
+ vitaminC: 72,
+ vitaminE: 0.64,
+ zn: 0.41
+ },
+ {
+ ca:28,
+ carbs: 2,
+ code:"0452061",
+ createTime:"2024-04-10 00:15:48",
+ createUserId:"1",
+ createUserName:"系统管理员",
+ dietaryFiber: 1.2,
+ fat: 0.4,
+ fe: 1,
+ id: "1777629039623471334",
+ image:"https://07akioni.oss-cn-beijing.aliyuncs.com/07akioni.jpeg",
+ label:3,
+ labelStr:"果蔬",
+ name:"梅菜",
+ power:16,
+ primaryType:"1732325785633374210",
+ primaryTypeName:"蔬菜类及制品",
+ protein:1.8,
+ se: 0.53,
+ secondaryType:"1732327277182402562",
+ secondaryTypeName:"嫩茎、叶、花菜类",
+ supplier: "",
+ supplyCost:0,
+ supplyProductCode:"FBC10001",
+ supplyProductName:"甜梅菜",
+ updateTime:"2024-08-03 23:07:20",
+ vitaminA:142,
+ vitaminB1: 0.02,
+ vitaminB2:0.11,
+ vitaminC: 72,
+ vitaminE: 0.64,
+ zn: 0.41
+ }
+];
+
+export default datalist;
diff --git a/src/views/smartRecipes/foodManagement/index.vue b/src/views/smartRecipes/foodManagement/index.vue
index 44a0dba..afa9a52 100644
--- a/src/views/smartRecipes/foodManagement/index.vue
+++ b/src/views/smartRecipes/foodManagement/index.vue
@@ -1,11 +1,618 @@
-
-
-食材管理
+
+
\ No newline at end of file