Commit 3f680c5e by LJM

add

parent 0ffc7a9b
...@@ -230,6 +230,7 @@ export default { ...@@ -230,6 +230,7 @@ export default {
}).then(res => { }).then(res => {
if (res.code === 0) { if (res.code === 0) {
this.$message.success('提交成功'); this.$message.success('提交成功');
this.closetab('/createConsignmentRecallOrder')
this.$router.push('/consignmentRecall'); this.$router.push('/consignmentRecall');
} else { } else {
this.$message.error(res.msg); this.$message.error(res.msg);
...@@ -283,6 +284,38 @@ export default { ...@@ -283,6 +284,38 @@ export default {
this.getWmsStockList(); this.getWmsStockList();
}, },
/** /**
* 关闭当前页面
* @param path
*/
closetab(path) {
let tab_arr = JSON.parse(sessionStorage.getItem('tabs'))
for (var i = 0; i < tab_arr.length; i++) {
if (tab_arr[i].path == path) {
tab_arr.splice(i, 1);
sessionStorage.setItem('tabs', JSON.stringify(tab_arr));
if (path == this.$route.path) {
if (i == 0) {
this.$router.push({
path: "/"
})
} else {
if (tab_arr[i - 1].query) {
this.$router.push({
path: tab_arr[i - 1].path,
query: tab_arr[i - 1].query
})
} else {
this.$router.push({
path: tab_arr[i - 1].path,
})
}
}
}
break;
}
}
},
/**
* 获取wms库存列表 * 获取wms库存列表
*/ */
getWmsStockList() { getWmsStockList() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment