Commit a414b657 authored by 吴春's avatar 吴春

餐厅套餐报价单存在不能删除修复

parent e963304c
......@@ -325,7 +325,6 @@
type: "warning"
})
.then(() => {
this.Success(this.$t('tips.shanchuchenggong'));
let msg = {
ID: ID
};
......@@ -336,7 +335,38 @@
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.getList();
} else {
}
else if (res.data.resultCode == 2) {//该套餐下面存在报价信息不能删除
this.$confirm("该套餐下面存在报价信息"+this.$t('restaurant.res_confirm')+ this.$t('system.table_delete'), this.$t('tips.tips'), {
confirmButtonText: this.$t('pub.sureBtn'),
cancelButtonText: this.$t('pub.cancelBtn'),
type: "warning"
})
.then(() => {
let msg = {
ID: ID,
IsDel:1,
};
this.apipost(
"meal_post_Remove",
msg,
res => {
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.getList();
}
else {
this.Error(res.data.message);
}
},
null
);
})
.catch(() => {
this.Info(this.$t('ground.yiquxsc'));
});
}
else {
this.Error(res.data.message);
}
},
......
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 to comment