添加校验
This commit is contained in:
parent
6b33fcafd1
commit
8bbfa93395
|
@ -1187,6 +1187,7 @@ export default {
|
||||||
labels: "",//标签
|
labels: "",//标签
|
||||||
city: "",//城市
|
city: "",//城市
|
||||||
createTime: "",//创建时间
|
createTime: "",//创建时间
|
||||||
|
fwxmtype:"",//服务项目类型 104服务套餐
|
||||||
page: 1,
|
page: 1,
|
||||||
limit: 10,
|
limit: 10,
|
||||||
dialogFormVisibleSales: false,
|
dialogFormVisibleSales: false,
|
||||||
|
@ -1808,7 +1809,9 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
showDetailView(row){
|
showDetailView(row){
|
||||||
|
console.log(`🚀 ~ showDetailView ~ row:`, row)
|
||||||
this.mainId = row.id;
|
this.mainId = row.id;
|
||||||
|
this.fwxmtype = row.type;
|
||||||
this.handleSelectDetail();
|
this.handleSelectDetail();
|
||||||
this.dialogFormVisibleDetail = true;
|
this.dialogFormVisibleDetail = true;
|
||||||
},
|
},
|
||||||
|
@ -2049,26 +2052,38 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
handleAddMassage(){
|
handleAddMassage(){
|
||||||
this.title = "";
|
|
||||||
this.status = 1;
|
var list = this.detailTableData.list;
|
||||||
this.sales = "0";
|
var fwxmtype = this.fwxmtype;
|
||||||
this.price = "";
|
if(fwxmtype==104){
|
||||||
this.oldPrice = "";
|
this.title = "";
|
||||||
this.massageTypeId = "";
|
this.status = 1;
|
||||||
this.massageImg = "";
|
this.sales = "0";
|
||||||
this.isSex = 0;
|
this.price = "";
|
||||||
this.duration = "";
|
this.oldPrice = "";
|
||||||
this.applyPeople = "";
|
this.massageTypeId = "";
|
||||||
this.contentImg = [];
|
this.massageImg = "";
|
||||||
this.content = "";
|
this.isSex = 0;
|
||||||
this.city = "";
|
this.duration = "";
|
||||||
this.labelsArr = [];
|
this.applyPeople = "";
|
||||||
this.storeAddre = "请选择城市";
|
this.contentImg = [];
|
||||||
this.type = "";
|
this.content = "";
|
||||||
this.jianjie = "";
|
this.city = "";
|
||||||
this.serviceCount = 1;
|
this.labelsArr = [];
|
||||||
this.intervalDays = 0;
|
this.storeAddre = "请选择城市";
|
||||||
this.dialogFormVisibleAddMassage = true;
|
this.type = "";
|
||||||
|
this.jianjie = "";
|
||||||
|
this.serviceCount = 1;
|
||||||
|
this.intervalDays = 0;
|
||||||
|
this.dialogFormVisibleAddMassage = true;
|
||||||
|
}else{
|
||||||
|
this.$notify({
|
||||||
|
title: "提示",
|
||||||
|
duration: 1800,
|
||||||
|
message: "只有【服务套餐】可以配置多条服务项目!",
|
||||||
|
type: "warning",
|
||||||
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
//提交新增服务项目
|
//提交新增服务项目
|
||||||
|
@ -2238,10 +2253,22 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
showMassageView(){
|
showMassageView(){
|
||||||
this.serviceCount = 1;
|
|
||||||
this.intervalDays = 0;
|
var list = this.detailTableData.list;
|
||||||
this.handleSelectMassage();
|
var fwxmtype = this.fwxmtype;
|
||||||
this.dialogFormVisibleMassageList = true;
|
if(fwxmtype==104){
|
||||||
|
this.serviceCount = 1;
|
||||||
|
this.intervalDays = 0;
|
||||||
|
this.handleSelectMassage();
|
||||||
|
this.dialogFormVisibleMassageList = true;
|
||||||
|
}else{
|
||||||
|
this.$notify({
|
||||||
|
title: "提示",
|
||||||
|
duration: 1800,
|
||||||
|
message: "只有【服务套餐】可以配置多条服务项目!",
|
||||||
|
type: "warning",
|
||||||
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
handleSelectMassage(){
|
handleSelectMassage(){
|
||||||
|
|
|
@ -528,41 +528,41 @@ export default {
|
||||||
this.userId = window.localStorage.getItem('userId');
|
this.userId = window.localStorage.getItem('userId');
|
||||||
this.ringOrderId = window.localStorage.getItem('ringOrderId');
|
this.ringOrderId = window.localStorage.getItem('ringOrderId');
|
||||||
|
|
||||||
this.chatNumJl = setInterval(() => {
|
// this.chatNumJl = setInterval(() => {
|
||||||
this.dataSelect()
|
// this.dataSelect()
|
||||||
}, 6000)
|
// }, 6000)
|
||||||
this.chatNumQy = setInterval(() => {
|
// this.chatNumQy = setInterval(() => {
|
||||||
this.dataSelectPy()
|
// this.dataSelectPy()
|
||||||
}, 6000)
|
// }, 6000)
|
||||||
this.chatNumJjqz = setInterval(() => {
|
// this.chatNumJjqz = setInterval(() => {
|
||||||
this.dataSelectJjqz()
|
// this.dataSelectJjqz()
|
||||||
}, 6000)
|
// }, 6000)
|
||||||
|
// this.chatNumYh = setInterval(() => {
|
||||||
this.chatNumYh = setInterval(() => {
|
// this.dataSelectYh()
|
||||||
this.dataSelectYh()
|
// }, 6000)
|
||||||
}, 6000)
|
|
||||||
// 目前的逻辑是只有客服账号才有订单相关(新订单、警告订单、超时订单)的提示
|
// 目前的逻辑是只有客服账号才有订单相关(新订单、警告订单、超时订单)的提示
|
||||||
if ((this.userId && this.ringOrderId) && (this.userId == this.ringOrderId)) {
|
// if ((this.userId && this.ringOrderId) && (this.userId == this.ringOrderId)) {
|
||||||
this.chatNumJg = setInterval(() => {
|
// this.chatNumJg = setInterval(() => {
|
||||||
this.dataSelectJg()
|
// this.dataSelectJg()
|
||||||
}, 6000)
|
// }, 6000)
|
||||||
this.chatNumCs = setInterval(() => {
|
// this.chatNumCs = setInterval(() => {
|
||||||
this.dataSelectCs()
|
// this.dataSelectCs()
|
||||||
}, 6000)
|
// }, 6000)
|
||||||
this.chatNumXdd = setInterval(() => {
|
// this.chatNumXdd = setInterval(() => {
|
||||||
this.dataSelectXdd()
|
// this.dataSelectXdd()
|
||||||
}, 3000)
|
// }, 3000)
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
// clearInterval(this.chatNum)
|
// clearInterval(this.chatNum)
|
||||||
clearInterval(this.chatNumJl);
|
|
||||||
clearInterval(this.chatNumQy);
|
// clearInterval(this.chatNumJl);
|
||||||
clearInterval(this.chatNumJjqz);
|
// clearInterval(this.chatNumQy);
|
||||||
clearInterval(this.chatNumYh);
|
// clearInterval(this.chatNumJjqz);
|
||||||
clearInterval(this.chatNumJg);
|
// clearInterval(this.chatNumYh);
|
||||||
clearInterval(this.chatNumCs);
|
// clearInterval(this.chatNumJg);
|
||||||
clearInterval(this.chatNumXdd);
|
// clearInterval(this.chatNumCs);
|
||||||
|
// clearInterval(this.chatNumXdd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue