服务包-次卡,疗程添加项目时只能添加一条

This commit is contained in:
曹磊 2024-06-17 21:55:01 +08:00
parent efa108422a
commit 0b94afe47d
1 changed files with 47 additions and 43 deletions

View File

@ -2052,38 +2052,40 @@ export default {
}, },
handleAddMassage(){ handleAddMassage(){
var list = this.detailTableData.list; var list = this.detailTableData.list;
var fwxmtype = this.fwxmtype; if (list.length > 0) {
if(fwxmtype==104){ var fwxmtype = this.fwxmtype;
this.title = ""; if(fwxmtype==104){
this.status = 1; }else{
this.sales = "0"; this.$notify({
this.price = ""; title: "提示",
this.oldPrice = ""; duration: 1800,
this.massageTypeId = ""; message: "只有【服务套餐】可以配置多条服务项目!",
this.massageImg = ""; type: "warning",
this.isSex = 0; });
this.duration = ""; return ;
this.applyPeople = ""; }
this.contentImg = [];
this.content = "";
this.city = "";
this.labelsArr = [];
this.storeAddre = "请选择城市";
this.type = "";
this.jianjie = "";
this.serviceCount = 1;
this.intervalDays = 0;
this.dialogFormVisibleAddMassage = true;
}else{
this.$notify({
title: "提示",
duration: 1800,
message: "只有【服务套餐】可以配置多条服务项目!",
type: "warning",
});
} }
this.title = "";
this.status = 1;
this.sales = "0";
this.price = "";
this.oldPrice = "";
this.massageTypeId = "";
this.massageImg = "";
this.isSex = 0;
this.duration = "";
this.applyPeople = "";
this.contentImg = [];
this.content = "";
this.city = "";
this.labelsArr = [];
this.storeAddre = "请选择城市";
this.type = "";
this.jianjie = "";
this.serviceCount = 1;
this.intervalDays = 0;
this.dialogFormVisibleAddMassage = true;
}, },
// //
@ -2253,22 +2255,24 @@ export default {
}, },
showMassageView(){ showMassageView(){
var list = this.detailTableData.list; var list = this.detailTableData.list;
var fwxmtype = this.fwxmtype; var fwxmtype = this.fwxmtype;
if(fwxmtype==104){ if(list.length>0){
this.serviceCount = 1; if(fwxmtype==104){
this.intervalDays = 0; }else{
this.handleSelectMassage(); this.$notify({
this.dialogFormVisibleMassageList = true; title: "提示",
}else{ duration: 1800,
this.$notify({ message: "只有【服务套餐】可以配置多条服务项目!",
title: "提示", type: "warning",
duration: 1800, });
message: "只有【服务套餐】可以配置多条服务项目!", return;
type: "warning", }
});
} }
this.serviceCount = 1;
this.intervalDays = 0;
this.handleSelectMassage();
this.dialogFormVisibleMassageList = true;
}, },
handleSelectMassage(){ handleSelectMassage(){