From b489f865bab00bedfce5e8f772095600b8034ac0 Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期二, 23 九月 2025 03:03:20 +0800
Subject: [PATCH] Merge branch 'master' of http://115.159.85.185:8098/r/MeiRuiAn/HuaiAn

---
 代码管理/WMS/WIDESEA_WMSClient/src/extension/taskinfo/extend/relocationTask.vue |  195 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 195 insertions(+), 0 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/taskinfo/extend/relocationTask.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/taskinfo/extend/relocationTask.vue"
new file mode 100644
index 0000000..24adf36
--- /dev/null
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/taskinfo/extend/relocationTask.vue"
@@ -0,0 +1,195 @@
+<template>
+    <div>
+      <vol-box
+        v-model="showDetialBox"
+        :lazy="true"
+        width="600px"
+        :padding="15"
+        title="鎵撳嵃"
+      >
+        <div>
+          <el-form>
+            <el-form-item required label="璇烽�夋嫨浠撳簱锛�">
+              <el-select
+                v-model="warehouseId"
+                filterable
+                placeholder="璇烽�夋嫨"
+                @change="getPalletType"
+              >
+                <el-option
+                  v-for="item in warehouses"
+                  :key="item.key"
+                  :label="item.value"
+                  :value="item.key"
+                >
+                  <span style="float: left">{{ item.value }}</span>
+                  <span style="float: right; color: #8492a6; font-size: 13px">{{
+                    item.key
+                  }}</span>
+                </el-option>
+              </el-select>
+            </el-form-item>
+            <el-form-item required label="璇疯緭鍏ヨ捣鐐癸細"
+              ><el-input
+                v-model="start"
+                style="width: 180px"
+                label="璇疯緭鍏ヨ捣鐐�"
+              ></el-input>
+            </el-form-item>
+            <el-form-item required label="璇疯緭鍏ョ粓鐐癸細"
+              ><el-input
+                v-model="end"
+                style="width: 180px"
+                label="璇疯緭鍏ョ粓鐐�"
+              ></el-input>
+            </el-form-item>
+            <el-form-item
+              required
+              label="璇烽�夋嫨宸烽亾锛�"
+              v-show="warehouseId != ''"
+            >
+              <el-radio-group v-model="palletType">
+                <el-radio
+                  v-for="item in palletTypes"
+                  :key="item.key"
+                  :label="item"
+                  >{{ item.value }}</el-radio
+                >
+              </el-radio-group>
+            </el-form-item>
+          </el-form>
+        </div>
+        <template #footer>
+          <el-button type="primary" size="small" @click="submit">纭</el-button>
+          <el-button type="danger" size="small" @click="close">鍏抽棴</el-button>
+        </template>
+      </vol-box>
+    </div>
+  </template>
+      
+      <script>
+  import VolBox from "@/components/basic/VolBox.vue";
+  export default {
+    components: { VolBox },
+    data() {
+      return {
+        showDetialBox: false,
+        warehouses: [],
+        warehouseId: "",
+        palletType: "",
+        palletTypes: [],
+        start:"",
+        end:"",
+      };
+    },
+    methods: {
+      open() {
+        if (this.warehouses.length == 0) {
+          this.getWarehouseInfos();
+        }
+        if (this.warehouses.length == 1) {
+              this.warehouseId = this.warehouses[0].key;
+              this.getPalletType();
+            }
+        this.showDetialBox = true;
+      },
+      getWarehouseInfos() {
+        this.http
+          .post("api/Warehouse/GetWarehouseDicByUser", null, "鏁版嵁澶勭悊涓�")
+          .then((x) => {
+            if (!x.status) return this.$message.error(x.message);
+            this.warehouses = x.data;
+            if (this.warehouses.length == 1) {
+              this.warehouseId = this.warehouses[0].key;
+            }
+          });
+      },
+      getPalletType() {
+        this.http
+          .post("api/LocationInfo/GetLocationRoadway", null, "鏁版嵁澶勭悊涓�")
+          .then((x) => {
+            if (!x.status) return this.$message.error(x.message);
+            console.log(x.data)
+            //this.palletTypes绛涢�墄.data涓瓀arehouseId绛変簬this.warehouseId鐨勯」
+            console.log(this.warehouseId)
+            this.palletTypes = x.data.filter(item => item.key == this.warehouseId);
+                
+          });
+        
+      },
+      close() {
+        this.showDetialBox = false;
+        if (this.warehouses.length > 1) {
+          this.warehouseId = "";
+        }
+        this.palletType = "";
+      },
+      submit() {
+        if (this.warehouseId == "") return this.$message.error("璇烽�夋嫨浠撳簱");
+        if (this.palletType == "") return this.$message.error("璇烽�夋嫨宸烽亾");
+        if (this.start == "") return this.$message.error("璇疯緭鍏ヨ捣鐐�");
+        if (this.end == "") return this.$message.error("璇疯緭鍏ョ粓鐐�");
+        var request = {
+                "warehouseId": this.warehouseId,
+                "locationStart": this.start,
+                "locationEnd": this.end,
+                "locationRoadway": this.palletType.key
+            }
+        this.http
+          .post(
+            `api/Task/ManualRelocation`,
+            request,
+            "鏁版嵁澶勭悊涓�"
+          )
+          .then((x) => {
+            if (!x.status) return this.$message.error(x.message);
+            this.$message.success("鎿嶄綔鎴愬姛");
+            this.$parent.refresh();
+            this.close();
+          });
+      },
+    },
+    created() {},
+  };
+  </script>
+      
+      <style scoped>
+  .el-col {
+    border-radius: 4px;
+  }
+  
+  .grid-content {
+    border-radius: 4px;
+    min-height: 36px;
+  }
+  
+  .content-text {
+    display: flex;
+    align-items: center;
+    justify-content: center;
+  }
+  
+  .right-text {
+    display: flex;
+    align-items: center;
+    justify-content: flex-end;
+  }
+  </style>
+      <style>
+  .el-table .warning-row {
+    background: #e6a23c;
+  }
+  
+  .el-table .success-row {
+    background: #f0f9eb;
+  }
+  
+  .el-table .error-row {
+    background: #f56c6c;
+  }
+  
+  canvas {
+    display: block;
+    margin: auto;
+  }
+  </style>
\ No newline at end of file

--
Gitblit v1.9.3