Browse Source

视图管理-1、弹窗bug修改

(cherry picked from commit 1b2a13bd34e93f74b084baae22837764ab9ba552)
LZH 2 years ago
parent
commit
5ab0d983a2
1 changed files with 13 additions and 9 deletions
  1. 13 9
      ruoyi-ui/src/views/ams/inv/locationView/index.vue

+ 13 - 9
ruoyi-ui/src/views/ams/inv/locationView/index.vue

@@ -159,12 +159,24 @@ import {queryLocationZoneDict} from "@/api/base/locationZone";
     },
     created () {
       this.getDataList()
+      this.getItemopention()
       this.timer = setInterval(this.getDataList, 5000)
     },
     beforeDestroy () {
       clearInterval(this.timer)
     },
     methods: {
+      getItemopention(){
+        lotattConfigList().then(response => {
+          let data = response.data
+          for(let i=0;i<data.length;i++) {
+            let obj = new Object();
+            obj.label = data[i].lotattName
+            obj.prop = data[i].lotattId
+            this.itemOption.push(obj)
+          }
+        })
+      },
       getDataList () {
         this.dataListLoading = true
         queryWarehouseDict().then(response => {
@@ -196,15 +208,7 @@ import {queryLocationZoneDict} from "@/api/base/locationZone";
             this.loading = false;
           })
         }
-        lotattConfigList().then(response => {
-          let data = response.data
-          for(let i=0;i<data.length;i++) {
-            let obj = new Object();
-            obj.label = data[i].lotattName
-            obj.prop = data[i].lotattId
-            this.itemOption.push(obj)
-          }
-        })
+
       },
       lockLoc() {
         let that = this