From 0cf29ba50d05efa7d8db3666aa865c45982bf5d8 Mon Sep 17 00:00:00 2001
From: yanjinhui <3306209981@qq.com>
Date: 星期一, 27 十月 2025 16:32:01 +0800
Subject: [PATCH] 优化前端

---
 新建文件夹/WMS/src/views/basic/locationInfo.vue |   54 +++++++++++++++++++++++++++++++++++++++---------------
 1 files changed, 39 insertions(+), 15 deletions(-)

diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WMS/src/views/basic/locationInfo.vue" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WMS/src/views/basic/locationInfo.vue"
index ebd3945..9fd9a28 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WMS/src/views/basic/locationInfo.vue"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WMS/src/views/basic/locationInfo.vue"
@@ -37,19 +37,30 @@
       locationType: "",
       locationStatus: "",
       enableStatus: "",
-      remark: ""
+      remark: "",
+      warehouseCode:"",
     });
     const editFormOptions = ref([
       [
-        {
-          field: "warehouseId",
+        // {
+        //   field: "warehouseId",
+        //   title: "搴撴埧缂栧彿",
+        //   type: "select",
+        //   required: true,
+        //   span: 12,
+        //   dataKey:  "warehouseNuber", 
+        //   data: []
+        // },
+         {
+          field: "warehouseCode",
           title: "搴撴埧缂栧彿",
           type: "select",
           required: true,
           span: 12,
-          data: [],
-          bind: { key: "warehouses", data: [] }
+          dataKey:  "warehouseNuber", 
+          data: []
         },
+        
         {
           field: "locationCode",
           title: "璐т綅缂栧彿",
@@ -104,7 +115,7 @@
           type: "select",
           span: 12,
           data: [],
-          bind: { key: "locationTypeEnum", data: [] }
+          dataKey:  "locationTypeEnum",
         }
       ],
       [
@@ -114,15 +125,15 @@
           type: "select",
           span: 12,
           data: [],
-          bind: { key: "locationStatusEnum", data: [] }
+           dataKey:  "locationStatusEnum",
         },
         {
           field: "enableStatus",
           title: "绂佺敤鐘舵��",
           type: "select",
           span: 12,
+          dataKey:"EnableStatusEnum",
           data: [],
-          bind: { key: "status", data: [] }
         }
       ],
       [
@@ -135,7 +146,7 @@
       ]
     ]);
     const searchFormFields = ref({
-      warehouseId: "",
+      // warehouseId: "",
       locationCode: "",
       locationName: "",
       roadwayNo: "",
@@ -145,20 +156,24 @@
       row: "",
       column: "",
       layer: "",
+      warehouseCode: ""
     });
     const searchFormOptions = ref([
       [
-        { title: "搴撴埧缂栧彿", field: "warehouseId", type: "select", data: [], bind: { key: "warehouses", data: [] } },
+        // { title: "搴撴埧缂栧彿", field: "warehouseId", type: "select", dataKey:  "warehouseNuber",  data: [] } ,
+         { title: "搴撴埧缂栧彿", field: "warehousecode", type: "select", dataKey:  "warehouseNuber",  data: [] } ,
         { title: "璐т綅缂栧彿", field: "locationCode", type: "like" },
         { title: "璐т綅鍚嶇О", field: "locationName", type: "like" },
       ],
       [
         { title: "宸烽亾缂栧彿", field: "roadwayNo", type: "like" },
-        { title: "璐т綅绫诲瀷", field: "locationType", type: "select", data: [], bind: { key: "locationTypeEnum", data: [] } },
-        { title: "璐т綅鐘舵��", field: "locationStatus", type: "select", data: [], bind: { key: "locationStatusEnum", data: [] } },
+        { title: "璐т綅绫诲瀷", field: "locationType", type: "select",  dataKey:  "locationTypeEnum", data: []  },       
+        { title: "璐т綅鐘舵��", field: "locationStatus", type: "select",  dataKey:  "locationStatusEnum",data: []},
+
       ],
       [
-        { title: "绂佺敤鐘舵��", field: "enableStatus", type: "select", data: [], bind: { key: "status", data: [] } },
+
+         { title: "绂佺敤鐘舵��", field: "enableStatus", type: "select", data: [], dataKey:"status" },
         { title: "琛�", field: "row", type: "int" },
         { title: "鍒�", field: "column", type: "int" },
         { title: "灞�", field: "layer", type: "int" }
@@ -175,14 +190,23 @@
         require: true,
         align: "left",
       },
+      // {
+      //   field: "warehouseId",
+      //   title: "搴撴埧缂栧彿",
+      //   type: "select",
+      //   width: 120,
+      //   align: "left",
+      //   data: [],
+      //   bind: { key: "warehouses", data: [] }
+      // },
       {
-        field: "warehouseId",
+        field: "warehouseCode",
         title: "搴撴埧缂栧彿",
         type: "select",
         width: 120,
         align: "left",
         data: [],
-        bind: { key: "warehouses", data: [] }
+        bind: { key: "warehouseNuber", data: [] }
       },
       {
         field: "locationCode",

--
Gitblit v1.9.3