From 0b94afe47d7a4dbf65c9f0ebbf861cfbf7125985 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com> Date: Mon, 17 Jun 2024 21:55:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=8C=85-=E6=AC=A1=E5=8D=A1?= =?UTF-8?q?=EF=BC=8C=E7=96=97=E7=A8=8B=E6=B7=BB=E5=8A=A0=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E6=97=B6=E5=8F=AA=E8=83=BD=E6=B7=BB=E5=8A=A0=E4=B8=80=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/bl/massage/massagePackage.vue | 90 +++++++++++++------------ 1 file changed, 47 insertions(+), 43 deletions(-) diff --git a/src/views/bl/massage/massagePackage.vue b/src/views/bl/massage/massagePackage.vue index 25867de..124aad6 100644 --- a/src/views/bl/massage/massagePackage.vue +++ b/src/views/bl/massage/massagePackage.vue @@ -2052,38 +2052,40 @@ export default { }, handleAddMassage(){ - var list = this.detailTableData.list; - var fwxmtype = this.fwxmtype; - if(fwxmtype==104){ - 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; - }else{ - this.$notify({ - title: "提示", - duration: 1800, - message: "只有【服务套餐】可以配置多条服务项目!", - type: "warning", - }); + if (list.length > 0) { + var fwxmtype = this.fwxmtype; + if(fwxmtype==104){ + }else{ + this.$notify({ + title: "提示", + duration: 1800, + message: "只有【服务套餐】可以配置多条服务项目!", + type: "warning", + }); + return ; + } } + 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(){ - var list = this.detailTableData.list; var fwxmtype = this.fwxmtype; - if(fwxmtype==104){ - this.serviceCount = 1; - this.intervalDays = 0; - this.handleSelectMassage(); - this.dialogFormVisibleMassageList = true; - }else{ - this.$notify({ - title: "提示", - duration: 1800, - message: "只有【服务套餐】可以配置多条服务项目!", - type: "warning", - }); + if(list.length>0){ + if(fwxmtype==104){ + }else{ + this.$notify({ + title: "提示", + duration: 1800, + message: "只有【服务套餐】可以配置多条服务项目!", + type: "warning", + }); + return; + } } + this.serviceCount = 1; + this.intervalDays = 0; + this.handleSelectMassage(); + this.dialogFormVisibleMassageList = true; }, handleSelectMassage(){