From 2403e0b0a127278d40e2fc780311d93262bef52c Mon Sep 17 00:00:00 2001
From: liulijun <liulijun@hnkhzn.com>
Date: 星期三, 25 三月 2026 16:47:03 +0800
Subject: [PATCH] 修复库位平面图三四五巷道部分货位没有按列显示的问题

---
 项目代码/WMS/WMSClient/src/extension/stock/ProStockView.js |   99 -------------------------------------------------
 1 files changed, 1 insertions(+), 98 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/extension/stock/ProStockView.js" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/extension/stock/ProStockView.js"
index 7fecdb4..ca4c8fe 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/extension/stock/ProStockView.js"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/extension/stock/ProStockView.js"
@@ -19,12 +19,6 @@
   methods: {
     //涓嬮潰杩欎簺鏂规硶鍙互淇濈暀涔熷彲浠ュ垹闄�
     onInit() {
-      // 鍒濆鍖栫┖鎵樻鏌ュ畾鏃跺櫒
-      // 璁剧疆瀹氭椂鍣紝姣�60绉掓鏌ヤ竴娆�
-      this.checkEmptyPalletTimer = setInterval(() => {
-        this.checkEmptyPalletWarning();
-      }, 10000); // 姣�10绉掓鏌ヤ竴娆�
-
       // 鍘熸湁浠g爜...
       // let InOrder = this.buttons.find(x => x.value == 'StockOutbound');
       // if (InOrder) {
@@ -151,98 +145,7 @@
       //鐪嬩笉鎳傚氨鎶婅緭鍑虹湅锛歝onsole.log(this.editFormOptions)
     },
     
-    // 妫�鏌ョ┖鎵樻暟閲�
-    checkEmptyPalletWarning() {
-      // 鑾峰彇鍏ㄥ眬瀵硅薄鍜宻tore锛屾鏌ユ槸鍚﹀瓨鍦ㄧ浉鍚岀殑璀﹀憡娑堟伅
-      const globalObj = this.$global || window.$global || {};
-      const store = this.$store || window.$store;
-      const globalMessageList = globalObj.messageList || [];
-      const storeMessageList = store?.state?.messageList || [];
-      
-      // 妫�鏌ユ槸鍚﹀凡缁忓瓨鍦ㄦ湭娓呴櫎鐨勭┖鎵橀璀︽秷鎭�
-      const hasExistingWarning = [...globalMessageList, ...storeMessageList].some(msg => 
-        msg.businessType === 'pallet_warning' && msg.type === 'warning'
-      );
-      
-      if (hasExistingWarning) return;
-      
-      // 鑾峰彇褰撳墠鎵�鏈夊簱瀛樻暟鎹�
-      const stockData = this.$refs.table?.rowData || this.$refs.table?.tableData || [];
-      
-      // 璁$畻绌烘墭鎬绘暟閲忥細鍙绠梡roStockAttribute涓�5鐨勮褰�
-      let totalEmptyPalletCount = 0;
-      
-      // 閬嶅巻鎵�鏈夊簱瀛樿褰曪紝绱姞绌烘墭鏁伴噺
-      stockData.forEach(stock => {
-        const proStockAttribute = stock.proStockAttribute || stock.ProStockAttribute || 0;
-        if (proStockAttribute === 5) {
-          // 瑙f瀽sumStock鐨勫�硷紝鎻愬彇鏁板瓧閮ㄥ垎
-          const sumStocks = stock.sumStocks || stock.sumStock || 0;
-          const stockQuantity = typeof sumStocks === 'string' 
-            ? parseInt(sumStocks.match(/\d+/)?.[0] || 0) 
-            : parseInt(sumStocks || 0);
-          totalEmptyPalletCount += stockQuantity;
-        }
-      });
-      
-      // 绌烘墭棰勮闃堝�间负50涓�
-      const warningThreshold = 50;
-      
-      // 濡傛灉绌烘墭鎬绘暟閲忓皬浜庨槇鍊硷紝鍙戦�佽鍛婃秷鎭�
-      if (totalEmptyPalletCount < warningThreshold) {
-        this.sendPalletWarningMessage(totalEmptyPalletCount, warningThreshold);
-      }
-    },
-    
-    // 鍙戦�佺┖鎵樿鍛婃秷鎭�
-    sendPalletWarningMessage(emptyPalletCount, warningThreshold) {
-      // 鍒涘缓璀﹀憡娑堟伅
-      const warningMessage = {
-        id: Date.now(),
-        title: '绌烘墭鏁伴噺棰勮',
-        message: `鎴愬搧搴撶┖鎵樻暟閲忎笉瓒筹紝褰撳墠鎬绘暟閲忥細${emptyPalletCount}锛屼綆浜庨璀﹂槇鍊硷細${warningThreshold}锛屽缓璁強鏃惰ˉ鍏咃紒`,
-        type: 'warning',
-        businessType: 'pallet_warning',
-        createTime: new Date().toLocaleString(),
-        relatedData: {
-          EmptyPalletCount: emptyPalletCount,
-          Threshold: warningThreshold
-        }
-      };
-      
-      // 鑾峰彇鍏ㄥ眬瀵硅薄鍜宻tore
-      const globalObj = this.$global || window.$global || {};
-      const store = this.$store || window.$store;
-      
-      // 娣诲姞娑堟伅鍒皊tore
-      if (store) {
-        store.commit('addMessage', warningMessage);
-      }
-      
-      // 娣诲姞娑堟伅鍒板叏灞�娑堟伅鍒楄〃锛岀‘淇濆垪琛ㄥ瓨鍦�
-      if (!globalObj.messageList) {
-        globalObj.messageList = [];
-      }
-      globalObj.messageList.push(warningMessage);
-      
-      // 鏄剧ず鎻愮ず妗�
-      // const $alert = this.$alert;
-      // const $message = this.$message;
-      
-      // if ($alert) {
-      //   $alert(warningMessage.message, warningMessage.title, {
-      //     confirmButtonText: '纭畾',
-      //     type: warningMessage.type,
-      //     closeOnClickModal: false,
-      //     closeOnPressEscape: false,
-      //     showCancelButton: false
-      //   });
-      // } else if ($message) {
-      //   $message.warning(warningMessage.message);
-      // } else {
-      //   alert(`${warningMessage.title}: ${warningMessage.message}`);
-      // }
-    },
+
     
     // 鍦ㄦ煡璇㈠悗澶勭悊鏁版嵁
     searchAfter(result) {

--
Gitblit v1.9.3