From 0c0ac28fc5784ac64612811c65be7dca8318d8c6 Mon Sep 17 00:00:00 2001
From: duyongjia <adu_555@163.com>
Date: 星期二, 26 十一月 2024 21:23:19 +0800
Subject: [PATCH] 前端更新货位状态修改

---
 代码管理/WCS/WIDESEAWCS_Client/src/extension/basic/extend/updateStatus.vue |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Client/src/extension/basic/extend/updateStatus.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Client/src/extension/basic/extend/updateStatus.vue"
index ad27536..1cc1df3 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Client/src/extension/basic/extend/updateStatus.vue"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Client/src/extension/basic/extend/updateStatus.vue"
@@ -12,15 +12,16 @@
           <el-input v-model="form.locationCode" disabled></el-input>
         </el-form-item>
         <el-form-item label="璐т綅鐘舵��">
-          <el-select v-model="form.locationStatus" placeholder="璇烽�夋嫨璐т綅鐘舵��">
+          <el-select v-model="form.locationStatus" placeholder="璇烽�夋嫨璐т綅鐘舵��" @change="showStatus">
             <el-option
               v-for="item in options"
               :key="item.value"
               :label="item.label"
               :value="item.value"
             >
-            </el-option> </el-select
-        ></el-form-item>
+            </el-option> 
+          </el-select>
+          </el-form-item>
       </el-form>
       <template #footer>
         <el-button type="primary" size="small" @click="updateLocationStatus"
@@ -52,6 +53,9 @@
     };
   },
   methods: {
+    showStatus(){
+      console.log(this.form.locationStatus);
+    },
     open(row) {
       this.row = row;
       this.showDetialBox = true;
@@ -63,8 +67,8 @@
         .post("/api/LocationInfo/GetLocationStatusDic", {}, true)
         .then((x) => {
           if (!x.status) return this.$message.error(x.message);
-
           this.options = x.data;
+          console.log(this.options);
         });
     },
     updateLocationStatus() {
@@ -73,7 +77,7 @@
           "/api/LocationInfo/UpdateLocationStatus?key=" +
             this.row.id +
             "&locationStatus=" +
-            this.row.locationStatus,
+            this.form.locationStatus,
           {},
           "鏁版嵁澶勭悊涓�"
         )
@@ -81,6 +85,8 @@
           if (!x.status) return this.$message.error(x.message);
           this.$message.success("鎿嶄綔鎴愬姛");
           this.showDetialBox = false;
+          this.form.locationStatus='';
+          this.$parent.refresh()
         });
     },
   },

--
Gitblit v1.9.3