From baad30699918c536d0b96e36df70b8f352d520e4 Mon Sep 17 00:00:00 2001
From: 刘磊 <1161824510@qq.com>
Date: 星期五, 15 八月 2025 10:15:53 +0800
Subject: [PATCH] 同步

---
 项目代码/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_PalletStockInfo.js |   35 +++++++++++++++++++++++++++++------
 1 files changed, 29 insertions(+), 6 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_PalletStockInfo.js" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_PalletStockInfo.js"
index a168827..0b8ffdd 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_PalletStockInfo.js"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_PalletStockInfo.js"
@@ -38,12 +38,12 @@
           // var data = {
           //   palletCode: row.palletCode
           // };
-          console.log(row.palletCode);
+          //console.log(row.palletCode);
           var _this = this;
           this.http
             .post("/api/Dt_PalletStockInfoDetail/GetBarcodeDetial", row.palletCode, "鏌ヨ鏁版嵁涓�")
             .then((x) => {
-              console.log(x.data);
+              //console.log(x.data);
               if (x.status == 1) {
                 _this.$refs.gridHeader.materielList = x.data;
               }
@@ -52,17 +52,40 @@
       };
       this.columns.splice(1, 0, options);
 
-
       var ManualOutbound = this.buttons.find(x => x.value == "ManualOutBound");
       if (ManualOutbound != null) {
         ManualOutbound.onClick = () => {
           let rows = this.$refs.table.getSelected();
           if (rows.length == 0) {
             return this.$error("璇烽�夋嫨鏁版嵁!");
-          } else if (rows.length > 1) {
-            return this.$error("鍙兘閫夋嫨鍗曟潯鏁版嵁");
           }
-          this.$refs.gridBody.open(rows[0].palletCode);
+
+          console.log(rows);
+
+          let errmsg = "";
+          rows.forEach(element => {
+            if (element.stockStatus != 2)
+              errmsg = "褰撳墠閫夋嫨鏁版嵁涓湁涓嶇鍚堝嚭搴撶姸鎬佸簱瀛�!";
+
+            if(element.areaCode != rows[0].areaCode)
+              errmsg = "褰撳墠閫夋嫨鏁版嵁涓惈鏈変笉鍚屽簱鍖虹殑鏁版嵁";
+          });
+
+          if (errmsg != "")
+            return this.$error(errmsg)
+
+
+          var barcodeList = rows.map(x =>
+            x.palletCode
+          );
+
+          if (barcodeList.length == 0)
+            return this.$error("璇烽�夋嫨瑕佸嚭搴撶殑搴撳瓨鏁版嵁!");
+
+          // else if (rows.length > 1) {
+          //   return this.$error("鍙兘閫夋嫨鍗曟潯鏁版嵁");
+          // }
+          this.$refs.gridBody.open(barcodeList);
           this.refresh();
         }
       };

--
Gitblit v1.9.3