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/outbound/extend/EmptyTrayOutbound.vue |   57 +++++++++++++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 49 insertions(+), 8 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/outbound/extend/EmptyTrayOutbound.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/outbound/extend/EmptyTrayOutbound.vue"
index e368a58..b2c56a0 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/outbound/extend/EmptyTrayOutbound.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/outbound/extend/EmptyTrayOutbound.vue"
@@ -25,10 +25,33 @@
           </el-input-number>
         </el-form-item>
       </el-form>
+
+      <!-- ===================== 鏂板锛氫緵搴斿晢缂栫爜锛堝疄鏃舵悳绱笅鎷夛級 ===================== -->
+      <el-form ref="form" :model="form" label-width="90px">
+        <el-form-item label="渚涘簲鍟嗙紪鐮�:">
+          <el-select
+            v-model="supplierCode"
+            filterable
+            remote
+            reserve-keyword
+            placeholder="璇疯緭鍏�/閫夋嫨渚涘簲鍟嗙紪鐮�"
+            :remote-method="remoteSearchSupplier"
+            style="width: 100%"
+          >
+            <el-option
+              v-for="item in supplierList"
+              :key="item"
+              :label="item"
+              :value="item"
+            />
+          </el-select>
+        </el-form-item>
+      </el-form>
+      <!-- ======================================================================== -->
+
     </template>
     <template #footer>
       <div>
-        <!-- 娣诲姞loading鐘舵�佸拰disabled灞炴�� -->
         <el-button 
           type="danger" 
           size="small" 
@@ -62,8 +85,11 @@
       show: false,
       locationTypes: [],
       locationType: "",
-      // 鏂板鎻愪氦鐘舵�佹爣璇�
-      isSubmitting: false
+      isSubmitting: false,
+      // ================= 鏂板 =================
+      supplierCode: '',       // 渚涘簲鍟嗙紪鐮佺粦瀹�
+      supplierList: []        // 涓嬫媺鍒楄〃
+      // =======================================
     }
   },
   methods: {
@@ -72,17 +98,19 @@
       this.getData();
     },
     submit() {
-      // 1. 楠岃瘉蹇呭~椤�
       if (!this.locationType) {
         this.$message.warning('璇烽�夋嫨鍑哄簱鍖哄煙');
         return;
       }
       
-      // 2. 璁剧疆鎻愪氦鐘舵�佷负true锛岀鐢ㄦ寜閽�
       this.isSubmitting = true;
       
       this.$emit('parentCall', ($vue) => {
-        this.http.post(`/api/Task/PalletOutboundTask?num=${this.num}&locationType=${this.locationType}`, {}, '鏁版嵁澶勭悊涓�...')
+        // ===================== 鏀归�犳帴鍙o細甯︿笂 supplierCode =====================
+        this.http.post(
+          `/api/Task/PalletOutboundTask?num=${this.num}&locationType=${this.locationType}&SupplierCode=${this.supplierCode || ''}`, 
+          {}, '鏁版嵁澶勭悊涓�...')
+        // ====================================================================
           .then((x) => {
             if (!x.status) {
               this.$message.error(x.message)
@@ -93,12 +121,10 @@
             }
           })
           .catch((error) => {
-            // 鎹曡幏璇锋眰寮傚父锛屾彁绀虹敤鎴�
             this.$message.error('璇锋眰澶辫触锛岃绋嶅悗閲嶈瘯');
             console.error('鎻愪氦澶辫触:', error);
           })
           .finally(() => {
-            // 3. 璇锋眰瀹屾垚锛堟垚鍔�/澶辫触锛夊悗閲嶇疆鎻愪氦鐘舵��
             this.isSubmitting = false;
           });
       })
@@ -109,6 +135,21 @@
           this.locationTypes = x.data;
         })
     },
+
+    remoteSearchSupplier(keyword) {
+      if (!keyword) {
+        this.supplierList = [];
+        return;
+      }
+      // 璋冪敤鍚庣瀹炴椂鎼滅储鎺ュ彛
+      this.http.get(`/api/Task/SearchSupplierCode?keyword=${keyword}`)
+        .then(res => {
+          if (res.status) {
+            this.supplierList = res.data || [];
+          }
+        })
+    }
+
   }
 }
 </script>
\ No newline at end of file

--
Gitblit v1.9.3