From 075c5319285ab9896a74655c82cec7c1ae0e0196 Mon Sep 17 00:00:00 2001
From: pan <antony1029@163.com>
Date: 星期五, 12 十二月 2025 14:13:46 +0800
Subject: [PATCH] Merge branch 'master' of http://115.159.85.185:8098/r/ZhongRui/ALDbanyunxiangmu

---
 项目代码/WIDESEA_WMSClient/src/extension/outbound/extend/outOrderDetail.vue |   23 ++++++++++++++++++++++-
 1 files changed, 22 insertions(+), 1 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/outbound/extend/outOrderDetail.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/outbound/extend/outOrderDetail.vue"
index 1dd121e..1a7d1a0 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/outbound/extend/outOrderDetail.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/outbound/extend/outOrderDetail.vue"
@@ -218,6 +218,7 @@
 import StockSelect from "./StockSelect.vue";
 import SelectedStock from "./SelectedStock.vue";
 import NoStockOut from "./NoStockOut.vue";
+import { stationManager, STATION_STORAGE_KEY } from "@/../src/uitils/stationManager";
 import { h, createVNode, render, reactive } from "vue";
 import {
   ElDialog,
@@ -285,6 +286,17 @@
       dictionaryList: null,
     };
   },
+        onMounted() {
+      // 浠庢湰鍦板瓨鍌ㄥ姞杞戒繚瀛樼殑绔欏彴鍊�
+      const savedStation = stationManager.getStation();
+      console.log(savedStation);
+      if (savedStation) {
+        outboundForm.selectedPlatform = savedStation;
+      } else if (stationOptions.length > 0) {
+        // 濡傛灉娌℃湁淇濆瓨鐨勫�硷紝浣跨敤绗竴涓�夐」
+        //stationValue.value = stationOptions[0].value;
+      }
+    },
   methods: {
     // 鏍规嵁鐗╂枡缂栧彿銆佹壒娆°�佷緵搴斿晢鍒嗙粍鏁版嵁
     groupDataByMaterial() {
@@ -438,6 +450,8 @@
     },
     
     outbound() {
+        const savedStation = stationManager.getStation();
+      console.log(savedStation);
       if (this.selection.length === 0) {
         return this.$message.error("璇烽�夋嫨鍗曟嵁鏄庣粏");
       }
@@ -469,6 +483,9 @@
         selectedPlatform: platformOptions[0].value,
       });
 
+      if (savedStation) {
+        formData.selectedPlatform = savedStation;
+      } 
       const vnode = createVNode(
         ElDialog,
         {
@@ -597,6 +614,8 @@
     },
     
     outboundbatch() {
+       const savedStation = stationManager.getStation();
+      console.log(savedStation);
       if (this.selection.length === 0) {
         return this.$message.error("璇烽�夋嫨鍗曟嵁鏄庣粏");
       }
@@ -624,7 +643,9 @@
         selectedPlatform: platformOptions[0].value,
         outboundDecimal: "",
       });
-
+  if (savedStation) {
+        formData.selectedPlatform = savedStation;
+      } 
       const vnode = createVNode(
         ElDialog,
         {

--
Gitblit v1.9.3