提交 9e7838d0 authored 作者: huaxinzhu's avatar huaxinzhu

1、运费模板增加 “计费方式”未填写拦截;2、添加、编辑商品后,关闭编辑页面

上级 cd24445d
......@@ -287,6 +287,12 @@ export default {
return;
}
// charge_type
if (this.goodsDate.charge_type == 0) {
this.$message({type:'warning',message:'请选择计费方式'});
return;
}
if(this.goodsDate.dispatching.length && this.goodsDate.dispatching.length > 0) {
for(let i = 0; i < this.goodsDate.dispatching.length;i++) {
if(this.goodsDate.dispatching[i].a == '') {
......
......@@ -598,6 +598,9 @@
if( res.code === 1 ) {
this.$message({type: 'success', message:'编辑成功'});
this.initAllGoodsInfo();
//console.log(600,this.$store.state.tagsView.visitedViews);
// 编辑成功,关闭当前路由
this.$store.state.tagsView.visitedViews.splice(this.$store.state.tagsView.visitedViews.findIndex(item => item.path === this.$route.path), 1)
this.$router.push({
path: '/system/goods/management',
query: { goodsStatus: goodsStatus }
......@@ -622,6 +625,8 @@
if( res.code === 1 ) {
this.$message({type: 'success', message:'新增成功'});
this.initAllGoodsInfo();
// 编辑成功,关闭当前路由
this.$store.state.tagsView.visitedViews.splice(this.$store.state.tagsView.visitedViews.findIndex(item => item.path === this.$route.path), 1)
this.$router.push({
path: '/system/goods/management',
query: { goodsStatus: goodsStatus }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论