|
@@ -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
|