From 6dbcd7df8e116cb83dbbd34d0acd6508f9b99991 Mon Sep 17 00:00:00 2001
From: heshaofeng <heshaofeng@hnkhzn.com>
Date: 星期四, 05 二月 2026 16:58:44 +0800
Subject: [PATCH] 优化组盘页面区域的选择和拣选页面,添加拉线名称的查询

---
 项目代码/WIDESEA_WMSClient/src/extension/check/extend/ReCheckGroupPallet.vue |   33 +++++++++++++++++++++++++++++++--
 1 files changed, 31 insertions(+), 2 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/check/extend/ReCheckGroupPallet.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/check/extend/ReCheckGroupPallet.vue"
index 3bfaaa6..57655b5 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/check/extend/ReCheckGroupPallet.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/check/extend/ReCheckGroupPallet.vue"
@@ -19,8 +19,8 @@
       <div class="location-section compact">
         <el-form :model="form" :rules="rules" ref="locationForm" class="compact-form">
           <el-form-item label="浠撳簱鍖哄煙" prop="locationType" class="location-select compact-item">
-            <el-select v-model="form.locationType" placeholder="璇峰厛閫夋嫨浠撳簱" clearable filterable
-              @change="handleLocationChange" style="width: 100%" :loading="locationLoading" size="medium">
+            <el-select v-model="form.locationType" placeholder="鑷姩鑾峰彇浠撳簱鍖哄煙" clearable filterable
+              @change="handleLocationChange" style="width: 100%" :loading="locationLoading" size="medium" :disabled="true">
               <el-option v-for="item in locationTypes" :key="item.locationType" :label="item.locationTypeDesc"
                 :value="item.locationType" />
             </el-select>
@@ -282,6 +282,7 @@
       }
     },
     
+    
     visible(newVal, oldVal) {
       this.palletVisible = newVal;
 
@@ -412,6 +413,33 @@
       }
     },
 
+    fetchLocationByWarehouse(warehouseCode) {
+      if (!warehouseCode) {
+        this.form.locationType = null;
+        return;
+      }
+      this.locationLoading = true;
+      http.post(`/api/InboundOrder/GetLocationType?code=${warehouseCode}`)
+        .then(({ data }) => {
+          if (data) {
+            this.form.locationType = data.locationType || data;
+            if (!this.locationTypes.find(item => item.locationType === this.form.locationType)) {
+              this.locationTypes.push({
+                locationType: this.form.locationType,
+                locationTypeDesc: this.form.locationType
+              });
+            }
+          }
+        })
+        .catch((err) => {
+          console.error("鑾峰彇浠撳簱鍖哄煙澶辫触:", err);
+          this.$message.error("鑾峰彇浠撳簱鍖哄煙澶辫触锛岃閲嶈瘯");
+          this.form.locationType = null;
+        })
+        .finally(() => {
+          this.locationLoading = false;
+        });
+    },
     async fetchStockStatistics(orderNo) {
       // 鍗曟嵁鍙蜂负绌烘椂涓嶆煡璇�
       if (!orderNo) {
@@ -860,6 +888,7 @@
       this.barcode = '';
       this.materials = [];
       this.error = '';
+      this.fetchLocationByWarehouse(this.form.warehouseType);
     },
     
     // 鍖哄煙鍒囨崲浜嬩欢

--
Gitblit v1.9.3