|
|
|
|
@ -204,6 +204,7 @@
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
this.form.schedule_list_id = this.id
|
|
|
|
|
console.log(this.skuList);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//获取当前定位信息
|
|
|
|
|
@ -433,22 +434,22 @@
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
//验证服务时间是否都已完成
|
|
|
|
|
let flag2 = 0
|
|
|
|
|
let tempArr = []
|
|
|
|
|
for (let i of this.skuList) {
|
|
|
|
|
if (i.isSelect && (i.form.time >= i.info.time_lenth)) {
|
|
|
|
|
flag2++
|
|
|
|
|
} else {
|
|
|
|
|
tempArr.push(i.info.name)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (flag2 < this.skuList.length) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: 'none',
|
|
|
|
|
title: `${tempArr.toString()}服务时间未满`
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
// let flag2 = 0
|
|
|
|
|
// let tempArr = []
|
|
|
|
|
// for (let i of this.skuList) {
|
|
|
|
|
// if (i.isSelect && (i.form.time >= i.info.time_lenth)) {
|
|
|
|
|
// flag2++
|
|
|
|
|
// } else {
|
|
|
|
|
// tempArr.push(i.info.name)
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// if (flag2 < this.skuList.length) {
|
|
|
|
|
// uni.showToast({
|
|
|
|
|
// icon: 'none',
|
|
|
|
|
// title: `${tempArr.toString()}服务时间未满`
|
|
|
|
|
// })
|
|
|
|
|
// return
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
this.saveSku().then(() => {
|
|
|
|
|
this.type = 3
|
|
|
|
|
@ -799,7 +800,7 @@
|
|
|
|
|
margin: 46rpx auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::v-deep .u-checkbox__icon-wrap--disabled text {
|
|
|
|
|
::v-deep .u-checkbox__icon-wrap--disabled--checked text {
|
|
|
|
|
color: #1d5cba !important;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|