From 696edbff3c8812e4b820f624d66a02ae6ddb1a06 Mon Sep 17 00:00:00 2001
From: 647556386 <647556386@qq.com>
Date: 星期四, 16 四月 2026 13:40:18 +0800
Subject: [PATCH] Merge branch 'htq20251215' of http://115.159.85.185:8098/r/ZhongRui/ALDbanyunxiangmu into htq20251215

---
 项目代码/WIDESEA_WMSClient/src/extension/stock/extend/CrossAreaRelocationDialog.vue |  105 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 105 insertions(+), 0 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/stock/extend/CrossAreaRelocationDialog.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/stock/extend/CrossAreaRelocationDialog.vue"
new file mode 100644
index 0000000..42b2260
--- /dev/null
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/stock/extend/CrossAreaRelocationDialog.vue"
@@ -0,0 +1,105 @@
+<template>
+  <vol-box v-model="show" title="璺ㄥ尯鍩熺Щ搴�" :width="800" :height="1200">
+    <template #content>
+      <el-form ref="form" :model="form" label-width="100px">
+        <el-form-item label="鐩爣璐т綅绫诲瀷:">
+          <el-select v-model="targetLocationType" placeholder="璇烽�夋嫨鐩爣璐т綅绫诲瀷">
+            <el-option 
+              v-for="item in locationTypes" 
+              :key="item.locationType" 
+              :label="item.locationTypeDesc.toString()"
+              :value="item.locationType">
+            </el-option>
+          </el-select>
+        </el-form-item>
+      </el-form>
+    </template>
+    <template #footer>
+      <div>
+        <el-button 
+          type="danger" 
+          size="small" 
+          plain 
+          @click="submit"
+          :loading="isSubmitting"
+          :disabled="isSubmitting">
+          <i class="el-icon-check">纭绉诲簱</i>
+        </el-button>
+        <el-button 
+          size="small" 
+          type="primary" 
+          plain 
+          @click="() => { this.show = false }">
+          <i class="el-icon-close">鍏抽棴</i>
+        </el-button>
+      </div>
+    </template>
+  </vol-box>
+</template>
+
+<script>
+import VolBox from '@/components/basic/VolBox.vue'
+export default {
+  components: {
+    'vol-box': VolBox
+  },
+  data() {
+    return {
+      show: false,
+      locationTypes: [],
+      targetLocationType: "",
+      isSubmitting: false,
+      form:{}
+    }
+  },
+  methods: {
+    open() {
+      this.show = true
+      this.getData();
+    },
+    submit() {
+      // 1. 楠岃瘉蹇呭~椤�
+      if (!this.targetLocationType) {
+        this.$message.warning('璇烽�夋嫨鐩爣璐т綅绫诲瀷');
+        return;
+      }
+
+      // 2. 绂佺敤鎸夐挳
+      this.isSubmitting = true;
+
+      this.$emit('parentCall', ($vue) => {
+        // 閫変腑鐨勮〃鏍兼暟鎹�
+        let stockViews = $vue.$refs.table.getSelected();
+        
+        this.http.post(
+          `/api/Task/CrossAreaOutbound?targetLocationType=${this.targetLocationType}`,
+          stockViews,
+          '璺ㄥ尯鍩熺Щ搴撳鐞嗕腑...'
+        )
+        .then((x) => {
+          if (!x.status) {
+            this.$message.error(x.message)
+          } else {
+            this.show = false
+            this.$message.success(x.message || '璺ㄥ尯鍩熺Щ搴撲换鍔$敓鎴愭垚鍔�')
+            $vue.refresh();
+          }
+        })
+        .catch((error) => {
+          this.$message.error('璇锋眰澶辫触锛岃绋嶅悗閲嶈瘯');
+          console.error('璺ㄥ尯鍩熺Щ搴撳け璐�:', error);
+        })
+        .finally(() => {
+          this.isSubmitting = false;
+        });
+      })
+    },
+    getData() {
+      this.http.post("api/LocationInfo/GetLocationTypes", null, "鍔犺浇璐т綅绫诲瀷涓�")
+        .then((x) => {
+          this.locationTypes = x.data;
+        })
+    },
+  }
+}
+</script>
\ No newline at end of file

--
Gitblit v1.9.3