linan 4 lat temu
rodzic
commit
cff3ca47ca

+ 22 - 5
src/router/routes.js

@@ -6,6 +6,11 @@ import Detail from '@/views/deliveryRoomManagement/detail/Detail.vue'
 /* 统计分许 */
 import PSY from '@/views/statisticAnalysis/PSY.vue'
 import Crop from '@/views/statisticAnalysis/Crop.vue'
+import back from '@/views/statisticAnalysis/back.vue'
+/* 消息通知 */
+import productionWarn from '@/views/infoInform/productionWarn.vue'
+/* 系统配置 */
+import parameterSetting from '@/views/system/parameterSetting.vue'
 
 
 /* 群体管理 */
@@ -23,11 +28,6 @@ import Af from '../views/template/Af.vue'
 
 export default [
   {
-    path: '/about',
-    name: 'about',
-    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
-  },
-  {
 		path: '/home',
 		component: Home,
 		children: [
@@ -58,6 +58,23 @@ export default [
 				name: 'Crop',
 				component: Crop
 			},
+			{
+				path: 'back',
+				name: 'back',
+				component: back
+			},
+			/* 消息通知 */
+			{
+				path: 'productionWarn',
+				name: 'productionWarn',
+				component: productionWarn
+			},
+			/* 系统配置 */
+			{
+				path: 'parameterSetting',
+				name: 'parameterSetting',
+				component: parameterSetting
+			},
 			// 个体管理 deliveryRoom
 			{
 				path: 'UnityTrace',

+ 0 - 16
src/views/About.vue

@@ -1,16 +0,0 @@
-<template>
-  <div class="about">
-    <h1>关于页面</h1>
-  </div>
-</template>
-<script>
-export default {
-  name: 'about',
-  mounted() {
-    setTimeout(() => {
-      this.$eventBus.emit('visitedAbout')
-    }, 500)
-  }
-}
-</script>
-

+ 10 - 80
src/views/Home/mencCofig.js

@@ -51,6 +51,11 @@ export const menuData = [
                 optionName: '出栏预测',
                 index: '2-2',
                 routerName: "Crop"
+            },
+            {
+                optionName: '反推',
+                index: '2-3',
+                routerName: "back"
             }
             
         ]
@@ -63,14 +68,9 @@ export const menuData = [
         disabled: false,
         childList: [
             {
-                optionName: '设备故障',
-                index: '21-1',
-                routerName: ""
-            },
-            {
                 optionName: '生产预警',
-                index: '21-2',
-                routerName: ""
+                index: '21-1',
+                routerName: "productionWarn"
             },
         ]
     },
@@ -81,24 +81,9 @@ export const menuData = [
         disabled: false,
         childList: [
             {
-                optionName: '设备配置',
+                optionName: '参数配置',
                 index: '4-1',
-                routerName: ""
-            },
-            {
-                optionName: '软件设置',
-                index: '4-2',
-                routerName: ""
-            },
-            {
-                optionName: '角色设置',
-                index: '4-3',
-                routerName: ""
-            },
-            {
-                optionName: '权限管理',
-                index: '4-4',
-                routerName: ""
+                routerName: "parameterSetting"
             }
         ]
     },
@@ -109,67 +94,12 @@ export const menuData = [
         disabled: false, // 是否禁用
         childList: [
             {
-                optionName: '牧场信息',
-                index: '5-1',
-                routerName: ""
-            },
-            {
-                optionName: '猪舍信息',
+                optionName: '牧场配置',
                 index: '5-2',
                 routerName: ""
-            },
-            {
-                optionName: '种猪信息',
-                index: '5-3',
-                routerName: ""
-            },
-            {
-                optionName: '员工信息',
-                index: '5-4',
-                routerName: ""
             }
         ]
     },
-    // {
-    //     optionName: "开发用模板",
-    //     iconClassName: "el-icon-menu",
-    //     index: '100',
-    //     disabled: false, // 是否禁用
-    //     childList: [
-    //         {
-    //             optionName: '模板 1',
-    //             index: '100-1',
-    //             routerName: "aa"
-    //         },
-    //         {
-    //             optionName: '普通表格',
-    //             index: '100-2',
-    //             routerName: "ab"
-    //         },
-    //         {
-    //             optionName: '模板 3',
-    //             index: '100-3',
-    //             routerName: "ac"
-    //         },
-    //         {
-    //             optionName: '模板 4',
-    //             index: '100-4',
-    //             routerName: "ad"
-    //         },
-    //         {
-    //             optionName: '模板 5',
-    //             index: '100-5',
-    //             routerName: "ee"
-    //         },
-    //         {
-    //             optionName: '模板 6',
-    //             index: '100-6',
-    //             routerName: "af"
-    //         }
-
-    //     ]
-    // },
-
 ]
 
 // export default {menuData}

+ 1 - 1
src/views/deliveryRoomManagement/DeliveryRoom.vue

@@ -188,7 +188,7 @@ let list = [
         id: 16532
     },
     {
-        type: 4,
+        type: 2,
         id: 16546
     },
     {

+ 70 - 6
src/views/deliveryRoomManagement/detail/Detail.vue

@@ -45,7 +45,71 @@
             </article>
 
             <article class="right">
-                <ul class="ul" v-if="roomType==1||roomType==2">
+                <ul class="ul" v-if="roomType==1">
+                    <li class="li">
+                        <span class="title">产仔数:</span>
+                        <span class="content" style="font-size: 26px">{{0}}只</span>
+                    </li>
+                    <li class="li">
+                        <span class="title">活仔数:</span>
+                        <!-- 小于等于八只的标红 -->
+                        <span class="content" style="font-size: 26px">{{0}}只</span>
+                    </li>
+                    <li class="li">
+                        <span class="title">存活率:</span>
+                        <!-- 小于等于80%的标红 -->
+                        <span class="content" style="font-size: 26px">100%</span>
+                    </li>
+                    <li class="li">
+                        <span class="title">猪仔日龄:</span>
+                        <span class="content" style="font-size: 26px">{{0}}天</span>
+                    </li>
+                    <li class="li">
+                        <span class="title">产床状态:</span>
+                        <span class="content">空</span>
+                    </li>
+                    <li class="li">
+                        <span class="title">出生日期:</span>
+                        <span class="content"></span>
+                    </li>
+                    <li class="li">
+                        <span class="title">预计断奶剩余天数:</span>
+                        <span class="content"></span>
+                    </li>
+                </ul>
+                <ul class="ul" v-else-if="roomType==2">
+                    <li class="li">
+                        <span class="title">产仔数:</span>
+                        <span class="content" style="font-size: 26px">{{0}}只</span>
+                    </li>
+                    <li class="li">
+                        <span class="title">活仔数:</span>
+                        <!-- 小于等于八只的标红 -->
+                        <span class="content" style="font-size: 26px">{{0}}只</span>
+                    </li>
+                    <li class="li">
+                        <span class="title">存活率:</span>
+                        <!-- 小于等于80%的标红 -->
+                        <span class="content" style="font-size: 26px">100%</span>
+                    </li>
+                    <li class="li">
+                        <span class="title">猪仔日龄:</span>
+                        <span class="content" style="font-size: 26px">{{0}}天</span>
+                    </li>
+                    <li class="li">
+                        <span class="title">产床状态:</span>
+                        <span class="content">空</span>
+                    </li>
+                    <li class="li">
+                        <span class="title">出生日期:</span>
+                        <span class="content"></span>
+                    </li>
+                    <li class="li">
+                        <span class="title">预计断奶剩余天数:</span>
+                        <span class="content"></span>
+                    </li>
+                </ul>
+                <ul class="ul" v-else-if="roomType==3">
                     <li class="li">
                         <span class="title">产仔数:</span>
                         <span class="content" style="font-size: 26px">{{0}}只</span>
@@ -246,11 +310,11 @@ export default {
         this.getDeliveryRoomInfo({ bedNo: "10086-1" });
 
         window.clearInterval(this.timer1)
-        this.getImglist()
-        this.timer1 = setInterval(() => {
-            this.getImglist()
-            console.log("1")
-        }, 10000)
+        // this.getImglist()
+        // this.timer1 = setInterval(() => {
+        //     this.getImglist()
+        //     console.log("1")
+        // }, 10000)
 
     },
     beforeDestroy() {

+ 5 - 0
src/views/filleInfo/prairieConfig.vue

@@ -0,0 +1,5 @@
+<template>
+    <div>
+        <h2 style="margin-bottom: 20px;padding-bottom:7px;border-bottom:2px solid #ddd">牧场配置</h2>
+    </div>
+</template>

+ 114 - 0
src/views/infoInform/productionWarn.vue

@@ -0,0 +1,114 @@
+<template>
+    <div class="productionWarn">
+        <h2 style="margin-bottom: 20px;padding-bottom:7px;border-bottom:2px solid #ddd">生产预警</h2>
+        <section class="section">
+            <h3>预警信息:</h3>
+            <article class="item item_1">
+                <div class="left el-icon-mobile-phone"></div>
+                <div class="right">
+                    <p class="top">消息警报</p>
+                    <p class="middle">伊维菌素已经低于安全库存请及时补充!</p>
+                    <span class="bottom">查看详情</span>
+                </div>
+            </article>
+            <article class="item item_1">
+                <div class="left el-icon-mobile-phone"></div>
+                <div class="right">
+                    <p class="top">消息警报</p>
+                    <p class="middle">2622种母羊还有七天到达预产期请注意!</p>
+                    <span class="bottom">查看详情</span>
+                </div>
+            </article>
+            <article class="item item_1">
+                <div class="left el-icon-mobile-phone"></div>
+                <div class="right">
+                    <p class="top">消息警报</p>
+                    <p class="middle">3456种母羊已经到达可断奶日期,请及时断奶!</p>
+                    <span class="bottom">查看详情</span>
+                </div>
+            </article>
+            <article class="item item_1">
+                <div class="left el-icon-mobile-phone"></div>
+                <div class="right">
+                    <p class="top">消息警报</p>
+                    <p class="middle">伊维菌素已经低于安全库存请及时补充!</p>
+                    <span class="bottom">查看详情</span>
+                </div>
+            </article>
+            <article class="item item_1">
+                <div class="left el-icon-mobile-phone"></div>
+                <div class="right">
+                    <p class="top">消息警报</p>
+                    <p class="middle">2622种母羊还有七天到达预产期请注意!</p>
+                    <span class="bottom">查看详情</span>
+                </div>
+            </article>
+            <article class="item item_1">
+                <div class="left el-icon-mobile-phone"></div>
+                <div class="right">
+                    <p class="top">消息警报</p>
+                    <p class="middle">3456种母羊已经到达可断奶日期,请及时断奶!</p>
+                    <span class="bottom">查看详情</span>
+                </div>
+            </article>
+        </section>
+    </div>
+</template>
+
+<script>
+export default {
+    data() {
+        return {};
+    },
+    created() {},
+    methods: {}
+};
+</script>
+
+<style lang="scss" scoped>
+.productionWarn {
+    .section{
+        padding: 0 3%;
+        h3{
+            color: #333;
+            font-size: 22px;
+            margin-bottom: 30px;
+        }
+        .item{
+            height: 110px;
+            margin: 15px 0;
+            display: flex;
+            box-sizing: border-box;
+            border-radius: 10px;
+            align-items: center;
+            
+            .left{
+                font-size: 30px;
+                margin-left: 20px;
+                margin-right: 20px;
+            }
+            .right{
+                .top{
+                    font-size: 20px;
+                    font-weight: 600;
+                    color: #746363;
+                }
+                .middle{
+                    font-size: 16px;
+                    color: #999;
+                }
+                .bottom{
+                    font-size: 16px;
+                    color: rgb(48, 115, 240);
+                }
+            }
+        }
+        .item_1{
+            background-color: #FFF5E6;
+            .left{
+                color: #FE9400;
+            }
+        }
+    }
+}
+</style>

+ 5 - 0
src/views/statisticAnalysis/back.vue

@@ -0,0 +1,5 @@
+<template>
+    <div>
+        <h2 style="margin-bottom: 20px;padding-bottom:7px;border-bottom:2px solid #ddd">反推</h2>
+    </div>
+</template>

+ 5 - 0
src/views/system/parameterSetting.vue

@@ -0,0 +1,5 @@
+<template>
+    <div>
+        <h2 style="margin-bottom: 20px;padding-bottom:7px;border-bottom:2px solid #ddd">参数配置</h2>
+    </div>
+</template>