Browse Source

切换仓库关闭所有标签

dev-xx
马远东 1 year ago
parent
commit
6f52b91aba
  1. 16
      src/page/index/top/index.vue
  2. 3
      src/store/modules/tags.js
  3. 13
      src/views/distribution/signfor/distributionSignfortreat.vue

16
src/page/index/top/index.vue

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

3
src/store/modules/tags.js

@ -17,6 +17,7 @@ const navs = {
state.tagList.push(action);
setStore({ name: 'tagList', content: state.tagList });
},
// 关闭指定标签
DEL_TAG: (state, action) => {
state.tagList = state.tagList.filter(item => {
return item.fullPath !== action.fullPath;
@ -27,6 +28,7 @@ const navs = {
state.tagList = tagList;
setStore({ name: 'tagList', content: state.tagList });
},
// 关闭除了当前页面的所有页面
DEL_TAG_OTHER: state => {
state.tagList = state.tagList.filter(item => {
console.log("关闭其他111state.tag.fullPath, website.fistPage.path",state.tag.fullPath, website.fistPage.path,item);
@ -35,6 +37,7 @@ const navs = {
console.log("2222state.tagList",state.tagList);
setStore({ name: 'tagList', content: state.tagList });
},
// 关闭当前页面
DEL_TAG_CURRENT: state => {
state.tagList = state.tagList.filter(item => {
console.log("state.tag.fullPath, website.fistPage.path",state.tag.fullPath, website.fistPage.path,item);

13
src/views/distribution/signfor/distributionSignfortreat.vue

@ -1430,7 +1430,12 @@ export default {
// width: '100px'
// },
{
label: '包件状态',
prop: 'orderPackageStatusName',
search: true,
width: '100px',
},
{
label: '冻结状态',
prop: 'orderPackageFreezeStatusName',
@ -1461,12 +1466,6 @@ export default {
search: true,
width: '100px',
},
{
label: '签收状态',
prop: 'orderPackageStatusName',
search: true,
width: '100px',
},
// {
// label: '',
// prop: 'orderPackageDeliveryStatus',

Loading…
Cancel
Save