From 0ea4a390d09679425cf3ad217a38a9e717641c95 Mon Sep 17 00:00:00 2001
From: wankeda <Administrator@DESKTOP-HAU3ST3>
Date: 星期一, 14 四月 2025 16:23:12 +0800
Subject: [PATCH] 增加串行库位任务下发机制防呆

---
 代码管理/WMS/WIDESEA_WMSClient/src/views/Index.vue |   64 ++++++++++++++++++++++++++++++--
 1 files changed, 60 insertions(+), 4 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/Index.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/Index.vue"
index d7d5304..0790b6b 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/Index.vue"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/Index.vue"
@@ -30,6 +30,7 @@
             </a>
           </div> -->
         </div>
+        <!-- <el-button @click="end">1231321</el-button> -->
         <div class="header-info">
           <div class="h-link">
             <a href="javascript:void(0)" @click="to(item)" v-for="(item, index) in links.filter((c) => {
@@ -135,6 +136,7 @@
 import { useRouter, useRoute } from "vue-router";
 import store from "../store/index";
 import http from "@/../src/api/http.js";
+import { ElNotification } from 'element-plus'
 export default defineComponent({
   components: {
     VolMenu,
@@ -156,7 +158,16 @@
   setup(props, context) {
     // 鑾峰彇鍏ㄥ眬灞炴�у拰鏂规硶
     const { proxy } = getCurrentInstance();
-
+    const MsgAction=()=>{
+      ElNotification({
+          title: ' 鏃犱汉鍙夎溅寮傚父',
+          message: closeNotice,
+          position: 'bottom-right',
+          type:'error',
+          duration: 0
+        })
+    };
+    const closeNotice =true;
     // 鑿滃崟瀵艰埅榛樿瀹藉害
     const menuWidth = ref(200);
     const contextMenuVisible = ref(false);
@@ -480,7 +491,9 @@
         }
       }
     );
-
+    // const end=()=>{
+    //   MsgAction();
+    // }
     /**
      * 绯荤粺鍒涘缓寮�濮�
      */
@@ -575,6 +588,8 @@
       closeTabsMenu,
       closeTabs,
       currentMenuId,
+      MsgAction,
+      // end
     };
   },
   /**
@@ -587,11 +602,52 @@
     $interval = setInterval(function () {
       $indexDate.innerText = showTime();
     }, 1000);
-
+      // this.$nextTick(x=>{
+          // this.getConfigList();
+      // });
+      //  setInterval(() => {
+       this.getConfigList();
+    // }, 5000);
     this.bindRightClickMenu(true);
   },
-
   methods: {
+       getConfigList(){
+          http.post("/api/Task/GetConfig").then(x=>{
+             console.log(x.status);
+             if(x.status==true){
+             // this.MsgAction();
+                 const message = x.data; // 鍋囪鎺ュ彛杩斿洖鐨勬暟鎹槸浣犻渶瑕佺殑閫氱煡娑堟伅
+    ElNotification({
+           title: ' 鏃犱汉鍙夎溅寮傚父',
+          message: message,
+          // position: 'bottom-right',
+          type:'error',
+          duration: 0
+    });
+             }
+
+              // if(x.status){
+               
+              //     this.configs=[];
+              //     x.data.forEach(item => {
+              //       for (let index = 0; index < item.layout.length; index++) {
+              //           item.layout[index].status=JSON.parse(item.layout[index].status);
+              //       }
+              //       this.configs.push(item);
+              //     });
+              // }
+              // if(this.isGetConfig){
+              //   this.isGetConfig=false;
+              //   this.timer=setInterval(()=>{
+              //     this.$nextTick(x=>{
+              //       this.getConfigList();
+              //     });
+              //   },3000)
+              // }
+          }).catch(error=>{
+              console.log("鍑洪敊"+error);
+          });
+      },
     /**
      * 缁戝畾鍙抽敭浜嬩欢
      * @param {*} enable 鏄惁鍚敤鍙抽敭浜嬩欢[true:鍚敤;false:绂佺敤;]

--
Gitblit v1.9.3