|
|
|
@ -104,7 +104,7 @@ import {
|
|
|
|
|
getclearWarehouseCache, |
|
|
|
|
getMyCurrentWarehouse, |
|
|
|
|
} from '@/api/work/work'; |
|
|
|
|
|
|
|
|
|
import { AddressClosed } from '@/utils/util'; |
|
|
|
|
export default { |
|
|
|
|
components: { |
|
|
|
|
topLock, |
|
|
|
@ -137,6 +137,7 @@ export default {
|
|
|
|
|
filters: {}, |
|
|
|
|
|
|
|
|
|
created() { |
|
|
|
|
|
|
|
|
|
getMyCurrentWarehouse().then(res => { |
|
|
|
|
if (res.data.data == null) { |
|
|
|
|
console.log('当前没有数据'); |
|
|
|
@ -149,18 +150,8 @@ export default {
|
|
|
|
|
}else{ |
|
|
|
|
this.dataName = res.data.data.name;//仓库名字 |
|
|
|
|
} |
|
|
|
|
// localStorage.setItem('my_data', JSON.stringify(res.data.data)) |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
// let warehouseName = localStorage.getItem('WarehouseName'); |
|
|
|
|
// // let modifiedName = warehouseName.replace(/"/g, ''); |
|
|
|
|
// if (warehouseName == 'undefined') { |
|
|
|
|
// this.dataName = ''; |
|
|
|
|
// console.log('当前暂时没有参数', this.dataName); |
|
|
|
|
// } else { |
|
|
|
|
// this.dataName = warehouseName; |
|
|
|
|
// console.log(this.dataName, '当前参数存在值'); |
|
|
|
|
// } |
|
|
|
|
}, |
|
|
|
|
computed: { |
|
|
|
|
...mapGetters([ |
|
|
|
@ -218,6 +209,9 @@ export default {
|
|
|
|
|
this.$message({ message: res.data.msg, type: 'error' }); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// this.$store.commit('SET_WAREHOUSELIST', this.warehouseList); |
|
|
|
|
this.$store.commit('DEL_TAG_CURRENT'); |
|
|
|
|
this.$store.commit('DEL_TAG_OTHER'); |
|
|
|
|
}, |
|
|
|
|
warehouseChange(val) { |
|
|
|
|
console.log(val); |
|
|
|
|