浏览代码

添加location

liujixin 3 月之前
父节点
当前提交
95afbb3b4c
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8 1
      src/views/oms/inventory/inventory/warehouseList.vue

+ 8 - 1
src/views/oms/inventory/inventory/warehouseList.vue

@@ -399,7 +399,8 @@ export default {
         supportStocking: "",
         supportStocking: "",
         checkedStore: [],
         checkedStore: [],
         inventoryProtection: "",
         inventoryProtection: "",
-        locationId:""
+        locationId:"",
+        locationName:""
       },
       },
       warehouseTypes: [
       warehouseTypes: [
         { value: "10", label: "歌莉娅WMS(香港)" },
         { value: "10", label: "歌莉娅WMS(香港)" },
@@ -604,6 +605,12 @@ export default {
           this.warehouseForm = res.data;
           this.warehouseForm = res.data;
           this.flag = true;
           this.flag = true;
           this.warehouseEditVisible = true;
           this.warehouseEditVisible = true;
+          if(this.warehouseForm.locationId!=null){
+            this.showLocationFlag=true;
+            this.warehouseForm.locationId=this.warehouseForm.locationName;
+          }else{
+            this.showLocationFlag=false;
+          }
         }
         }
       });
       });
     },
     },