From daea1a90c2fa1b5cc2f52e62be15bd95cc4155f6 Mon Sep 17 00:00:00 2001
From: Tiandele <tiandele@hnkhzn.com>
Date: 星期五, 20 三月 2026 17:16:04 +0800
Subject: [PATCH] 优化手动锁车逻辑

---
 项目代码/WMS/WMSClient/src/extension/widesea_wms/stock/VV_StockInfo.js |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 52 insertions(+), 0 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/extension/widesea_wms/stock/VV_StockInfo.js" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/extension/widesea_wms/stock/VV_StockInfo.js"
index 4a47084..cc46243 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/extension/widesea_wms/stock/VV_StockInfo.js"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/extension/widesea_wms/stock/VV_StockInfo.js"
@@ -91,6 +91,58 @@
         }
       };
 
+
+
+
+      // 搴撳瓨閿佸畾
+      var stockLock = this.buttons.find(x => x.value == "stockLock");
+      if (stockLock != null) {
+        stockLock.onClick = () => {
+          let rows = this.$refs.table.getSelected();
+          if (rows.length == 0) {
+            return this.$error("璇烽�夋嫨鏁版嵁!");
+          }
+          let ids = rows.map(x => {
+            return x.id;
+          })
+          this.http.post(`/api/VV_StockInfo/stockLock`, ids, "搴撳瓨閿佸畾涓�...").then((result) => {
+            if (result.status) {
+              this.$Message.success(result.message);
+              this.refresh();
+            } else {
+              this.$Message.error(result.message);
+              this.refresh();
+            }
+          })
+
+        }
+      };
+
+      // 搴撳瓨瑙i攣
+      var stockUnLock = this.buttons.find(x => x.value == "stockUnLock");
+      if (stockUnLock != null) {
+        stockUnLock.onClick = () => {
+          let rows = this.$refs.table.getSelected();
+          if (rows.length == 0) {
+            return this.$error("璇烽�夋嫨鏁版嵁!");
+          }
+          let ids = rows.map(x => {
+            return x.id;
+          })
+          this.http.post(`/api/VV_StockInfo/stockUnLock`, ids, "搴撳瓨瑙i攣涓�...").then((result) => {
+            if (result.status) {
+              this.$Message.success(result.message);
+              this.refresh();
+            } else {
+              this.$Message.error(result.message);
+              this.refresh();
+            }
+          })
+
+        }
+      };
+
+
       // this.columns.forEach((column) => {
       //   if (column.field == 'materielName') {
       //     column.formatter = (row) => {

--
Gitblit v1.9.3