From 673b5a596f611099eaacc310f6e7def0e022daca Mon Sep 17 00:00:00 2001
From: heshaofeng <heshaofeng@hnkhzn.com>
Date: 星期三, 29 四月 2026 11:00:55 +0800
Subject: [PATCH] 添加盘点模板和胶箱台账功能

---
 项目代码/WIDESEA_WMSClient/src/extension/stock/stockView.js |   23 +++++++++++++++++++++--
 1 files changed, 21 insertions(+), 2 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/stock/stockView.js" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/stock/stockView.js"
index 56cdda1..f2b2e20 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/stock/stockView.js"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/stock/stockView.js"
@@ -1,10 +1,12 @@
 import { createVNode, render, h, reactive } from 'vue';
 import { ElDialog, ElForm, ElFormItem, ElSelect, ElOption, ElButton, ElMessage, ElLoading } from 'element-plus';
+import gridHeader from './extend/CrossAreaRelocationDialog.vue'
+import gridBody from './extend/BatchOutboundByExcel.vue'
 let extension = {
   components: {
     //鏌ヨ鐣岄潰鎵╁睍缁勪欢
-    gridHeader: '',
-    gridBody: '',
+    gridHeader: gridHeader,
+    gridBody: gridBody,
     gridFooter: '',
     //鏂板缓銆佺紪杈戝脊鍑烘鎵╁睍缁勪欢
     modelHeader: '',
@@ -16,6 +18,13 @@
   methods: {
     //涓嬮潰杩欎簺鏂规硶鍙互淇濈暀涔熷彲浠ュ垹闄�
     onInit() {
+      let BatchOutboundByExcelBtn = this.buttons.find(x => x.value === 'BatchOutboundByExcel');
+      if (BatchOutboundByExcelBtn) {
+        // 閲嶅啓鎸夐挳鐐瑰嚮浜嬩欢
+        BatchOutboundByExcelBtn.onClick = function () {
+          this.$refs.gridBody.open();
+        };
+      }
       // let InOrder = this.buttons.find(x => x.value == 'StockOutbound');
       // if (InOrder) {
       //   InOrder.onClick = function () {
@@ -335,6 +344,16 @@
             });
         }
       }
+      var SelectStockAreaIn = this.buttons.find(x => x.value == "SelectStockAreaIn");
+      if (SelectStockAreaIn != null) {
+        SelectStockAreaIn.onClick = () => {
+          let rows = this.$refs.table.getSelected();
+          if (rows.length == 0) {
+              return this.$message.error("璇峰厛閫夋嫨闇�瑕佺Щ搴撶殑鏁版嵁锛�");
+            }
+          this.$refs.gridHeader.open();
+        }
+      }
     },
     onInited() {
       //妗嗘灦鍒濆鍖栭厤缃悗

--
Gitblit v1.9.3