|
|
|
@ -122,7 +122,8 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
dateShow: false,
|
|
|
|
dateShow: false,
|
|
|
|
|
|
|
|
isLocked:false,
|
|
|
|
showTips: false,
|
|
|
|
showTips: false,
|
|
|
|
confirmTips: false,
|
|
|
|
confirmTips: false,
|
|
|
|
hMin: 0,
|
|
|
|
hMin: 0,
|
|
|
|
@ -358,14 +359,11 @@
|
|
|
|
// })
|
|
|
|
// })
|
|
|
|
this.$refs.uForm.validate(valid => {
|
|
|
|
this.$refs.uForm.validate(valid => {
|
|
|
|
if (valid) {
|
|
|
|
if (valid) {
|
|
|
|
if(!this.confirmTips){
|
|
|
|
|
|
|
|
this.showTips = true
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
start_time = this.form.date + ' ' + this.form.start_time + ':00'
|
|
|
|
start_time = this.form.date + ' ' + this.form.start_time + ':00'
|
|
|
|
end_time = this.form.date + ' ' + this.form.end_time + ':00'
|
|
|
|
end_time = this.form.date + ' ' + this.form.end_time + ':00'
|
|
|
|
this.form.accompany_total = this.form.accompany.length
|
|
|
|
this.form.accompany_total = this.form.accompany.length
|
|
|
|
console.log("accompany_total", this.plateList, this.form)
|
|
|
|
console.log("accompany_total", this.plateList, this.form.accompany_total)
|
|
|
|
let _plate = []
|
|
|
|
let _plate = []
|
|
|
|
if (this.plateList.length > 0) {
|
|
|
|
if (this.plateList.length > 0) {
|
|
|
|
if (this.plateList.length > this.form.accompany_total + 1) {
|
|
|
|
if (this.plateList.length > this.form.accompany_total + 1) {
|
|
|
|
@ -378,14 +376,21 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.form.plate = _plate.join(',')
|
|
|
|
this.form.plate = _plate.join(',')
|
|
|
|
console.log("plate", this.form)
|
|
|
|
console.log("plate", this.form)
|
|
|
|
// return
|
|
|
|
// return
|
|
|
|
|
|
|
|
if(!this.confirmTips){
|
|
|
|
|
|
|
|
this.showTips = true
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if(this.isLocked){
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.isLocked = true
|
|
|
|
this.$u.api.scheduleSave({
|
|
|
|
this.$u.api.scheduleSave({
|
|
|
|
...this.form,
|
|
|
|
...this.form,
|
|
|
|
start_time: start_time,
|
|
|
|
start_time: start_time,
|
|
|
|
end_time: end_time
|
|
|
|
end_time: end_time
|
|
|
|
}).then(res => {
|
|
|
|
}).then(res => {
|
|
|
|
this.newsSubscription()
|
|
|
|
this.newsSubscription()
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
console.log('验证失败');
|
|
|
|
console.log('验证失败');
|
|
|
|
|