|
|
|
|
@ -216,7 +216,8 @@
|
|
|
|
|
accompany_total: 0,
|
|
|
|
|
accompany:[],
|
|
|
|
|
status: 1,
|
|
|
|
|
reason: ''
|
|
|
|
|
reason: '',
|
|
|
|
|
is_hand:1
|
|
|
|
|
},
|
|
|
|
|
loading: false,
|
|
|
|
|
allUser:[],
|
|
|
|
|
@ -288,6 +289,7 @@
|
|
|
|
|
}
|
|
|
|
|
if (this.type === 'more') {
|
|
|
|
|
console.log("this.form.user_id",this.form.user_id)
|
|
|
|
|
this.form.is_hand = 0
|
|
|
|
|
let _arr = []
|
|
|
|
|
if (this.base.isNull(this.form.user_id)) {
|
|
|
|
|
this.allUser.map(item => {
|
|
|
|
|
@ -308,14 +310,15 @@
|
|
|
|
|
this.form.user_id = _arr.join(",")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (this.type === 'add') {
|
|
|
|
|
if (this.type === 'add') {
|
|
|
|
|
this.form.is_hand = 1
|
|
|
|
|
if (this.base.isNull(this.form.user_id) && this.base.isNull(this.form.name)) {
|
|
|
|
|
this.$Message.warning('请选择学员或输入预约人姓名')
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
console.log("form",this.form)
|
|
|
|
|
// return
|
|
|
|
|
if (this.type === "editor") {
|
|
|
|
|
this.form.status = 0
|
|
|
|
|
@ -371,6 +374,7 @@
|
|
|
|
|
}).then(res => {
|
|
|
|
|
this.form = this.base.requestToForm(res, this.form)
|
|
|
|
|
this.form.status = res.status ? res.status : 0
|
|
|
|
|
this.form.is_hand = res.is_hand?res.is_hand : 0
|
|
|
|
|
let _arr = res.site?res.site.split(","):[]
|
|
|
|
|
_arr.map(item=>{
|
|
|
|
|
this.siteData.push(parseInt(item))
|
|
|
|
|
@ -400,7 +404,12 @@
|
|
|
|
|
this.user_options.map(item => {
|
|
|
|
|
if (item.id === e) {
|
|
|
|
|
this.form.mobile = item.mobile
|
|
|
|
|
this.form.name = item.name
|
|
|
|
|
this.form.name = item.name
|
|
|
|
|
if(this.base.isNull(this.form.plate)){
|
|
|
|
|
this.form.plate = item.plate?item.plate:''
|
|
|
|
|
}else{
|
|
|
|
|
this.form.plate += item.plate?','+item.plate :''
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
@ -492,7 +501,8 @@
|
|
|
|
|
this.getDetail()
|
|
|
|
|
this.typeName = '编辑'
|
|
|
|
|
} else if (this.type === 'more') {
|
|
|
|
|
this.typeName = '批量预约'
|
|
|
|
|
this.typeName = '批量预约'
|
|
|
|
|
this.form.is_hand = 0
|
|
|
|
|
} else {
|
|
|
|
|
this.typeName = '手动预约'
|
|
|
|
|
}
|
|
|
|
|
@ -518,7 +528,8 @@
|
|
|
|
|
accompany_total: 0,
|
|
|
|
|
accompany:[],
|
|
|
|
|
status: 1,
|
|
|
|
|
reason: ''
|
|
|
|
|
reason: '',
|
|
|
|
|
is_hand:1
|
|
|
|
|
}
|
|
|
|
|
this.$refs['dialog'].reset()
|
|
|
|
|
}
|
|
|
|
|
|