From 561ff75c5e3c0857ba813290fcf25dae3443f73e Mon Sep 17 00:00:00 2001
From: pan <antony1029@163.com>
Date: 星期四, 04 十二月 2025 11:38:41 +0800
Subject: [PATCH] 提交

---
 项目代码/WIDESEA_WMSClient/src/views/outbound/BatchPickingConfirm.vue |  392 +++++++++++++++++--------------------------------------
 1 files changed, 124 insertions(+), 268 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/views/outbound/BatchPickingConfirm.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/views/outbound/BatchPickingConfirm.vue"
index c98438a..b938edd 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/views/outbound/BatchPickingConfirm.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/views/outbound/BatchPickingConfirm.vue"
@@ -92,7 +92,7 @@
     </div>
 
     <!-- 鎷嗗寘寮圭獥 -->
-    <div  v-show="showCustomSplitDialog" class="custom-dialog-overlay">
+    <div  v-show="showCustomSplitDialog" class="custom-dialog-overlay" style="z-index: 2001;">
       <div class="custom-dialog-wrapper">
         <div class="custom-dialog">
           <div class="custom-dialog-header">
@@ -154,7 +154,7 @@
     </div>
 
     <!-- 鎾ら攢鎷嗗寘寮圭獥 -->
-    <div  v-show="showRevertSplitDialog" class="custom-dialog-overlay">
+    <div  v-show="showRevertSplitDialog" class="custom-dialog-overlay" style="z-index: 2001;">
       <div class="custom-dialog-wrapper">
         <div class="custom-dialog">
           <div class="custom-dialog-header">
@@ -214,7 +214,7 @@
     </div>
 
     <!-- 鎷嗗寘閾句俊鎭脊绐� -->
-<div v-show="showSplitChainDialog" class="custom-dialog-overlay">
+<div v-show="showSplitChainDialog" class="custom-dialog-overlay" style="z-index: 2003;">
   <div class="custom-dialog-wrapper">
     <div class="custom-dialog" style="width: 750px;">
       <div class="custom-dialog-header">
@@ -338,7 +338,7 @@
 </div>
 
     <!-- 鎵归噺鍥炲簱寮圭獥 -->
-    <div v-if="showBatchReturnDialog" class="custom-dialog-overlay">
+    <div v-if="showBatchReturnDialog" class="custom-dialog-overlay"  style="z-index: 2004;">
       <div class="custom-dialog-wrapper">
         <div class="custom-dialog">
           <div class="custom-dialog-header">
@@ -370,7 +370,7 @@
     </div>
 
     <!-- 鍙栬蛋绌虹寮圭獥 -->
-    <div v-if="showEmptyPalletDialog" class="custom-dialog-overlay">
+    <div v-if="showEmptyPalletDialog" class="custom-dialog-overlay"  style="z-index: 2005;">
       <div class="custom-dialog-wrapper">
         <div class="custom-dialog">
           <div class="custom-dialog-header">
@@ -412,11 +412,13 @@
 import { useRoute } from 'vue-router'
 import printView from "@/extension/outbound/extend/printView.vue"
 
+
 export default defineComponent({
   name: 'BatchOutboundPicking',
   components: {printView},
   data() {
     return {
+      // 淇濇寔鍘熷鏁版嵁缁撴瀯涓嶅彉
       scanData: {
         orderNo: '',
         palletCode: '',
@@ -432,19 +434,19 @@
       },
       palletStatus: '鏈煡',
       
-      // 寮圭獥鐘舵��
+      // 寮圭獥鐘舵�� - 淇濇寔鍘熷鐘舵��
       showCustomSplitDialog: false,
       showRevertSplitDialog: false,
       showBatchReturnDialog: false,
       showEmptyPalletDialog: false,
-      showSplitChainDialog: false, // 鏂板锛氭媶鍖呴摼淇℃伅寮圭獥
+      showSplitChainDialog: false,
       
       // 鍔犺浇鐘舵��
       splitLoading: false,
       revertSplitLoading: false,
       batchReturnLoading: false,
       emptypalletOutLoading: false,
-      splitChainLoading: false, // 鏂板锛氭媶鍖呴摼鍔犺浇鐘舵��
+      splitChainLoading: false,
       
       // 琛ㄥ崟鏁版嵁
       splitForm: {
@@ -472,7 +474,7 @@
         palletCode: ''
       },
       
-      // 鏂板锛氭媶鍖呴摼鐩稿叧鏁版嵁
+      // 鎷嗗寘閾剧浉鍏虫暟鎹�
       splitChainInfo: {
         originalBarcode: '',
         totalSplitTimes: 0,
@@ -501,88 +503,14 @@
           { required: true, message: '璇疯緭鍏ユ墭鐩樼爜', trigger: 'blur' }
         ]
       },
-       // 寮圭獥鐘舵�� - 鏀逛负浣跨敤瀵硅薄绠$悊锛岄伩鍏嶅悓鏃舵墦寮�澶氫釜寮圭獥
-      dialogs: {
-        customSplit: false,
-        revertSplit: false,
-        splitChain: false,
-        batchReturn: false,
-        emptyPallet: false
-      },
       
-      // 鍔犺浇鐘舵��
-      loading: {
-        split: false,
-        revertSplit: false,
-        batchReturn: false,
-        emptyPallet: false,
-        splitChain: false
-      },
+      isProcessing: false,
       
-      // 褰撳墠娲诲姩鐨勫脊绐楃被鍨�
-      activeDialog: null,
-      isProcessing: false
+      // 鏂板: 鐢ㄤ簬闃叉寮圭獥閲嶅彔
+      isDialogOpening: false
     }
   },
   computed: {
-     // 璁$畻灞炴�ф槧灏勫埌dialogs瀵硅薄
-    showCustomSplitDialog: {
-      get() { return this.dialogs.customSplit; },
-      set(val) { 
-        this.dialogs.customSplit = val;
-        this.activeDialog = val ? 'customSplit' : null;
-      }
-    },
-    showRevertSplitDialog: {
-      get() { return this.dialogs.revertSplit; },
-      set(val) { 
-        this.dialogs.revertSplit = val;
-        this.activeDialog = val ? 'revertSplit' : null;
-      }
-    },
-    showSplitChainDialog: {
-      get() { return this.dialogs.splitChain; },
-      set(val) { 
-        this.dialogs.splitChain = val;
-        this.activeDialog = val ? 'splitChain' : null;
-      }
-    },
-    showBatchReturnDialog: {
-      get() { return this.dialogs.batchReturn; },
-      set(val) { 
-        this.dialogs.batchReturn = val;
-        this.activeDialog = val ? 'batchReturn' : null;
-      }
-    },
-    showEmptyPalletDialog: {
-      get() { return this.dialogs.emptyPallet; },
-      set(val) { 
-        this.dialogs.emptyPallet = val;
-        this.activeDialog = val ? 'emptyPallet' : null;
-      },
-    },
-     // 鍔犺浇鐘舵�佹槧灏�
-    splitLoading: {
-      get() { return this.loading.split; },
-      set(val) { this.loading.split = val; }
-    },
-    revertSplitLoading: {
-      get() { return this.loading.revertSplit; },
-      set(val) { this.loading.revertSplit = val; }
-    },
-    batchReturnLoading: {
-      get() { return this.loading.batchReturn; },
-      set(val) { this.loading.batchReturn = val; }
-    },
-    emptypalletOutLoading: {
-      get() { return this.loading.emptyPallet; },
-      set(val) { this.loading.emptyPallet = val; }
-    },
-    splitChainLoading: {
-      get() { return this.loading.splitChain; },
-      set(val) { this.loading.splitChain = val; }
-    },
-    // 鏄惁鍙互鍙栨秷鏁翠釜鎷嗗寘閾�
     canCancelWholeChain() {
       return this.splitChainInfo.splitChain && 
              this.splitChainInfo.splitChain.some(item => !item.isReverted);
@@ -604,7 +532,7 @@
       this.$router.back()
     },
 
-    // 鍒嗘嫞鐩稿叧鏂规硶
+    // 淇: 娣诲姞闃查噸澶嶇偣鍑绘満鍒�
     async confirmPicking() {
       if (this.isProcessing) return;
       
@@ -644,29 +572,41 @@
       }
     },
 
-    // 鎷嗗寘鐩稿叧鏂规硶
+    // 淇: 鎵撳紑鎷嗗寘寮圭獥 - 娣诲姞闃查噸鍙犳満鍒�
     openSplitDialog() {
+      if (this.isDialogOpening) return;
+      
       if (!this.scanData.palletCode) {
         this.$message.warning('璇峰厛鎵弿鎵樼洏鐮�');
         return;
       }
-         // 鍏抽棴鍏朵粬鎵�鏈夊脊绐�
-      this.closeAllDialogs();
-        // 寤惰繜鎵撳紑鏂板脊绐楋紝纭繚鍏朵粬寮圭獥瀹屽叏鍏抽棴
-      this.$nextTick(() => {
-        this.showCustomSplitDialog = true;
-        this.resetSplitForm();
-        this.splitForm.orderNo = this.scanData.orderNo;
-        this.splitForm.palletCode = this.scanData.palletCode;
+      
+      this.isDialogOpening = true;
+      
+      try {
+        // 纭繚鍏抽棴鍏朵粬寮圭獥
+        this.closeAllDialogs();
         
-        // 纭繚杈撳叆妗嗚幏寰楃劍鐐�
+        // 寤惰繜鎵撳紑锛岀‘淇滵OM鏇存柊瀹屾垚
         this.$nextTick(() => {
-          const inputs = document.querySelectorAll('.custom-dialog input');
-          if (inputs.length > 0) {
-            inputs[0].focus();
-          }
+          this.showCustomSplitDialog = true;
+          this.resetSplitForm();
+          this.splitForm.orderNo = this.scanData.orderNo;
+          this.splitForm.palletCode = this.scanData.palletCode;
+          
+          // 纭繚杈撳叆妗嗚幏寰楃劍鐐�
+          this.$nextTick(() => {
+            const input = document.querySelector('#splitOriginalBarcode');
+            if (input) {
+              input.focus();
+            }
+            this.isDialogOpening = false;
+          });
         });
-      });
+      } catch (error) {
+        console.error('鎵撳紑鎷嗗寘寮圭獥澶辫触:', error);
+        this.isDialogOpening = false;
+      }
     },
 
     async onSplitBarcodeScan() {
@@ -697,17 +637,18 @@
 
     async handleSplitPackage() {
       if (this.$refs.splitFormRef) {
-        const valid = await this.$refs.splitFormRef.validate();
-        if (!valid) return;
-        
-        this.splitLoading = true;
         try {
+          const valid = await this.$refs.splitFormRef.validate();
+          if (!valid) return;
+          
+          this.splitLoading = true;
           const res = await http.post('/api/OutboundBatchPicking/split-package', {
             orderNo: this.splitForm.orderNo,
             palletCode: this.splitForm.palletCode,
             originalBarcode: this.splitForm.originalBarcode,
             splitQuantity: this.splitForm.splitQuantity
           });
+          
           if (res.status) {
             this.$message.success('鎷嗗寘鎴愬姛');
             this.showCustomSplitDialog = false;
@@ -716,45 +657,57 @@
             this.$message.error(res.message || '鎷嗗寘澶辫触');
           }
         } catch (error) {
-          this.$message.error('鎷嗗寘澶辫触: ' + (error.message || '缃戠粶閿欒'));
+          this.$message.error('鎷嗗寘澶辫触');
         } finally {
           this.splitLoading = false;
         }
       }
     },
-// 鍦ㄦ媶鍖呭脊绐椾腑鏌ョ湅鎷嗗寘閾�
-async viewSplitChainFromSplit(barcode) {
-  if (!barcode) {
-    this.$message.warning('璇峰厛杈撳叆鏉$爜');
-    return;
-  }
-  
-  // 鍏堝叧闂媶鍖呭脊绐�
-  this.closeCustomSplitDialog();
-  
-  await this.$nextTick();
-  
-  // 鐒跺悗鎵撳紑鎷嗗寘閾句俊鎭脊绐�
-  await this.viewSplitChain(barcode);
-},
-    // 鎾ら攢鎷嗗寘
+
+    // 淇: 鎾ら攢鎷嗗寘寮圭獥
+    openRevertSplitDialog() {
+      if (this.isDialogOpening) return;
+      
+      this.isDialogOpening = true;
+      
+      try {
+        this.closeAllDialogs();
+        
+        this.$nextTick(() => {
+          this.showRevertSplitDialog = true;
+          this.revertSplitForm.newBarcode = '';
+          this.$nextTick(() => {
+            const input = document.querySelector('#revertSplitBarcode');
+            if (input) {
+              input.focus();
+            }
+            this.isDialogOpening = false;
+          });
+        });
+      } catch (error) {
+        console.error('鎵撳紑鎾ら攢鎷嗗寘寮圭獥澶辫触:', error);
+        this.isDialogOpening = false;
+      }
+    },
+
     async onRevertSplitBarcodeScan() {
-        if (!this.revertSplitForm.newBarcode) return;
+      if (!this.revertSplitForm.newBarcode) return;
       this.revertSplitForm.newBarcode = this.revertSplitForm.newBarcode.replace(/\n/g, '').trim();
     },
 
     async handleRevertSplit() {
-       if (this.$refs.revertSplitFormRef) {
-        const valid = await this.$refs.revertSplitFormRef.validate();
-        if (!valid) return;
-        
-        this.revertSplitLoading = true;
+      if (this.$refs.revertSplitFormRef) {
         try {
+          const valid = await this.$refs.revertSplitFormRef.validate();
+          if (!valid) return;
+          
+          this.revertSplitLoading = true;
           const res = await http.post('/api/OutboundBatchPicking/cancel-split', {
             orderNo: this.scanData.orderNo,
             palletCode: this.scanData.palletCode,
             newBarcode: this.revertSplitForm.newBarcode
           });
+          
           if (res.status) {
             this.$message.success('鎾ら攢鎷嗗寘鎴愬姛');
             this.showRevertSplitDialog = false;
@@ -763,40 +716,22 @@
             this.$message.error(res.message || '鎾ら攢鎷嗗寘澶辫触');
           }
         } catch (error) {
-          this.$message.error('鎾ら攢鎷嗗寘澶辫触: ' + (error.message || '缃戠粶閿欒'));
+          this.$message.error('鎾ら攢鎷嗗寘澶辫触');
         } finally {
           this.revertSplitLoading = false;
         }
       }
     },
-// 鏌ユ壘瀹屾暣鎷嗗寘閾撅紙浠庢牴鏉$爜寮�濮嬶級
-async findRootChain(currentBarcode) {
-  this.splitChainLoading = true;
-  try {
-    const res = await http.post('/api/OutboundBatchPicking/find-root-split-chain', {
-      orderNo: this.scanData.orderNo,
-      barcode: currentBarcode
-    });
-    
-    if (res.status) {
-      this.splitChainInfo = res.data;
-      this.$message.success('宸插姞杞藉畬鏁存媶鍖呴摼');
-    } else {
-      this.$message.error(res.message || '鏌ユ壘瀹屾暣鎷嗗寘閾惧け璐�');
-    }
-  } catch (error) {
-    this.$message.error('鏌ユ壘瀹屾暣鎷嗗寘閾惧け璐�');
-  } finally {
-    this.splitChainLoading = false;
-  }
-},
-    // 鎷嗗寘閾剧浉鍏虫柟娉�
-   // 鏌ョ湅鎷嗗寘閾句俊鎭�
-async viewSplitChain(barcode) {
-   if (!barcode) {
+
+    // 淇: 鏌ョ湅鎷嗗寘閾�
+    async viewSplitChain(barcode) {
+      if (!barcode) {
         this.$message.warning('璇峰厛杈撳叆鏉$爜');
         return;
       }
+      
+      if (this.isDialogOpening) return;
+      this.isDialogOpening = true;
       
       this.splitChainLoading = true;
       try {
@@ -808,85 +743,40 @@
         if (res.status) {
           this.splitChainInfo = res.data;
           
-          // 鍏抽棴鍏朵粬寮圭獥鍚庡啀鎵撳紑鎷嗗寘閾惧脊绐�
+          // 鍏抽棴鍏朵粬寮圭獥
           this.closeAllDialogs();
           
           await this.$nextTick(() => {
             this.showSplitChainDialog = true;
-            
-            // 鏄剧ず鎻愮ず淇℃伅
-            let chainType = "褰撳墠鏉$爜鐨勬媶鍖呴摼";
-            if (this.splitChainInfo.chainType === 'root') {
-              chainType = "瀹屾暣鎷嗗寘閾撅紙浠庡師濮嬫潯鐮佸紑濮嬶級";
-            } else if (this.splitChainInfo.chainType === 'branch') {
-              chainType = "鍒嗘敮鎷嗗寘閾�";
-            }
-            
-            this.$message.info(`宸插姞杞�${chainType}锛屽叡${this.splitChainInfo.totalSplitTimes}娆℃媶鍖卄);
+            this.isDialogOpening = false;
           });
         } else {
           this.$message.error(res.message || '鑾峰彇鎷嗗寘閾句俊鎭け璐�');
+          this.isDialogOpening = false;
         }
       } catch (error) {
-        this.$message.error('鑾峰彇鎷嗗寘閾句俊鎭け璐�: ' + (error.message || '缃戠粶閿欒'));
+        this.$message.error('鑾峰彇鎷嗗寘閾句俊鎭け璐�');
+        this.isDialogOpening = false;
       } finally {
         this.splitChainLoading = false;
       }
-},
+    },
 
-    // 鍏抽棴鎷嗗寘閾句俊鎭脊绐�
+    // 淇: 鍏抽棴鎷嗗寘閾句俊鎭脊绐�
     closeSplitChainDialog() {
       this.showSplitChainDialog = false;
-      
     },
-    // 鍦ㄦ挙閿�鎷嗗寘寮圭獥涓煡鐪嬫媶鍖呴摼
-async viewSplitChainFromRevert(barcode) {
-  if (!barcode) {
-    this.$message.warning('璇峰厛杈撳叆鏉$爜');
-    return;
-  }
-  
-  // 鍏堝叧闂挙閿�鎷嗗寘寮圭獥
-  this.closeRevertSplitDialog();
-  
-  await this.$nextTick();
-  
-  // 鐒跺悗鎵撳紑鎷嗗寘閾句俊鎭脊绐�
-  await this.viewSplitChain(barcode);
-},
-// 蹇�熼噸鏂版墦寮�鎷嗗寘閾惧脊绐�
-async quickReopenSplitChainDialog(barcode) {
-  if (!barcode) return;
-  
-  this.showSplitChainDialog = true;
-  this.splitChainLoading = true;
-  
-  try {
-    const res = await http.post('/api/OutboundBatchPicking/split-package-chain-info', {
-      orderNo: this.scanData.orderNo,
-      barcode: barcode
-    });
-    
-    if (res.status) {
-      this.splitChainInfo = res.data;
-    }
-  } catch (error) {
-    console.error('閲嶆柊鍔犺浇鎷嗗寘閾句俊鎭け璐�:', error);
-  } finally {
-    this.splitChainLoading = false;
-  }
-},
-    // 鍙栨秷鍗曚釜鎷嗗寘璁板綍
-async cancelSingleSplit(newBarcode) {
-   try {
+
+    // 淇: 鍙栨秷鍗曚釜鎷嗗寘璁板綍
+    async cancelSingleSplit(newBarcode) {
+      try {
         await ElMessageBox.confirm(
           `纭畾瑕佸彇娑堟潯鐮� ${newBarcode} 鐨勬媶鍖呮搷浣滃悧锛焋, 
           '鍙栨秷鍗曚釜鎷嗗寘', 
           {
             confirmButtonText: '纭畾鍙栨秷',
             cancelButtonText: '鍐嶆兂鎯�',
-            type: 'warning',
-            customClass: 'message-box-top'
+            type: 'warning'
           }
         );
         
@@ -911,17 +801,15 @@
         }
       } catch (error) {
         if (error !== 'cancel') {
-          this.$message.error('鍙栨秷鎷嗗寘澶辫触: ' + error.message);
+          this.$message.error('鍙栨秷鎷嗗寘澶辫触');
         }
       } finally {
         this.revertSplitLoading = false;
       }
-},
+    },
 
-// 鍙栨秷鏁翠釜鎷嗗寘閾�  
-async cancelWholeSplitChain() {
-  if (!this.canCancelWholeChain) return;
-      
+    // 淇: 鍙栨秷鏁翠釜鎷嗗寘閾�  
+    async cancelWholeSplitChain() {
       try {
         await ElMessageBox.confirm(
           `纭畾瑕佸彇娑堟暣涓媶鍖呴摼鍚楋紵\n杩欏皢鍙栨秷浠庢潯鐮� ${this.splitChainInfo.originalBarcode} 寮�濮嬬殑鎵�鏈夋媶鍖呮搷浣溿�俙, 
@@ -929,10 +817,7 @@
           {
             confirmButtonText: '纭畾鍙栨秷',
             cancelButtonText: '鍐嶆兂鎯�',
-            type: 'warning',
-            center: true,
-            closeOnClickModal: false,
-            customClass: 'message-box-top'
+            type: 'warning'
           }
         );
         
@@ -953,12 +838,12 @@
         }
       } catch (error) {
         if (error !== 'cancel') {
-          this.$message.error('鍙栨秷鎷嗗寘閾惧け璐�: ' + error.message);
+          this.$message.error('鍙栨秷鎷嗗寘閾惧け璐�');
         }
       } finally {
         this.revertSplitLoading = false;
       }
-},
+    },
 
     // 妫�鏌ユ潯鐮佹槸鍚﹀凡琚垎鎷�
     hasPicked(barcode) {
@@ -971,22 +856,23 @@
       const date = new Date(dateTime);
       return `${date.getFullYear()}-${(date.getMonth() + 1).toString().padStart(2, '0')}-${date.getDate().toString().padStart(2, '0')} ${date.getHours().toString().padStart(2, '0')}:${date.getMinutes().toString().padStart(2, '0')}:${date.getSeconds().toString().padStart(2, '0')}`;
     },
- closeAllDialogs() {
+
+    // 淇: 鏂板鍏抽棴鎵�鏈夊脊绐楃殑鏂规硶
+    closeAllDialogs() {
       this.showCustomSplitDialog = false;
       this.showRevertSplitDialog = false;
       this.showSplitChainDialog = false;
       this.showBatchReturnDialog = false;
       this.showEmptyPalletDialog = false;
-      this.activeDialog = null;
     },
+
     // 鍥炲簱鐩稿叧鏂规硶
     openBatchReturnDialog() {
-     if (!this.scanData.palletCode) {
+      if (!this.scanData.palletCode) {
         this.$message.warning('璇峰厛鎵弿鎵樼洏鐮�');
         return;
       }
       
-      // 鍏抽棴鍏朵粬寮圭獥
       this.closeAllDialogs();
       
       this.$nextTick(() => {
@@ -1013,7 +899,7 @@
           this.$message.error(res.message || '鍥炲簱澶辫触');
         }
       } catch (error) {
-        this.$message.error('鍥炲簱澶辫触: ' + (error.message || '缃戠粶閿欒'));
+        this.$message.error('鍥炲簱澶辫触');
       } finally {
         this.batchReturnLoading = false;
       }
@@ -1021,7 +907,6 @@
 
     // 鍙栫┖绠辨柟娉�
     handleEmptyPallet() {
-      // 鍏抽棴鍏朵粬寮圭獥
       this.closeAllDialogs();
       
       this.$nextTick(() => {
@@ -1046,7 +931,7 @@
           this.$message.error(res.message || '鍙栬蛋绌虹澶辫触');
         }
       } catch (error) {
-        this.$message.error('鍙栬蛋绌虹澶辫触: ' + (error.message || '缃戠粶閿欒'));
+        this.$message.error('鍙栬蛋绌虹澶辫触');
       } finally {
         this.emptypalletOutLoading = false;
       }
@@ -1054,7 +939,7 @@
 
     // 鏁版嵁鍔犺浇鏂规硶
     async loadPalletData() {
-       if (!this.scanData.orderNo || !this.scanData.palletCode) return;
+      if (!this.scanData.orderNo || !this.scanData.palletCode) return;
       
       try {
         await Promise.all([
@@ -1068,7 +953,7 @@
     },
 
     async loadUnpickedList() {
-       try {
+      try {
         const res = await http.post('/api/OutboundBatchPicking/pallet-locks', {
           orderNo: this.scanData.orderNo,
           palletCode: this.scanData.palletCode
@@ -1104,7 +989,7 @@
     },
 
     async loadPalletStatus() {
-          try {
+      try {
         const res = await http.post('/api/OutboundBatchPicking/pallet-status', {
           orderNo: this.scanData.orderNo,
           palletCode: this.scanData.palletCode
@@ -1120,7 +1005,7 @@
 
     // 鎵爜鐩稿叧鏂规硶
     onPalletScan() {
-       this.scanData.palletCode = this.scanData.palletCode.replace(/\n/g, '').trim();
+      this.scanData.palletCode = this.scanData.palletCode.replace(/\n/g, '').trim();
       if (!this.scanData.palletCode) return;
       
       this.loadPalletData();
@@ -1130,7 +1015,7 @@
     },
 
     onBarcodeScan() {
-       this.scanData.barcode = this.scanData.barcode.replace(/\n/g, '').trim();
+      this.scanData.barcode = this.scanData.barcode.replace(/\n/g, '').trim();
       if (!this.scanData.barcode) return;
       this.confirmPicking();
     },
@@ -1165,8 +1050,7 @@
           {
             confirmButtonText: '纭畾',
             cancelButtonText: '鍙栨秷',
-            type: 'warning',
-            customClass: 'message-box-top'
+            type: 'warning'
           }
         );
         
@@ -1205,16 +1089,6 @@
     closeCustomSplitDialog() {
       this.showCustomSplitDialog = false;
       this.resetSplitForm();
-    },
-
-    openRevertSplitDialog() {
-       // 鍏抽棴鍏朵粬寮圭獥
-      this.closeAllDialogs();
-      
-      this.$nextTick(() => {
-        this.showRevertSplitDialog = true;
-        this.revertSplitForm.newBarcode = '';
-      });
     },
 
     closeRevertSplitDialog() {
@@ -1278,24 +1152,7 @@
   color: #909399;
 }
 
-/* 鑷畾涔夊脊绐楁牱寮� */
-:deep(.el-message-box) {
-  z-index: 9999 !important;
-}
-
-:deep(.el-overlay) {
-  z-index: 9998 !important;
-}
-
-:deep(.el-message) {
-  z-index: 10000 !important;
-}
-
-/* 纭繚纭瀵硅瘽妗嗗湪鏈�鍓嶉潰 */
-:deep(.message-box-top) {
-  z-index: 10001 !important;
-}
-
+/* 鑷畾涔夊脊绐楁牱寮� - 鍏抽敭淇: 绉婚櫎鍙兘瀵艰嚧鍐茬獊鐨剒-index瑙勫垯 */
 .custom-dialog-overlay {
   position: fixed;
   top: 0;
@@ -1306,12 +1163,11 @@
   display: flex;
   align-items: center;
   justify-content: center;
-  z-index: 2000;
+  /* 绉婚櫎杩欓噷鐨剒-index锛屽湪妯℃澘涓崟鐙缃� */
 }
 
 .custom-dialog-wrapper {
   position: relative;
-  z-index: 2001;
 }
 
 .custom-dialog {

--
Gitblit v1.9.3