From cc47064ec0f31181e33510568a5f3d0b5d022613 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Thu, 17 Oct 2024 15:28:02 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E7=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/book/components/addBook.vue | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/src/views/book/components/addBook.vue b/src/views/book/components/addBook.vue index a1e4110..3989cab 100644 --- a/src/views/book/components/addBook.vue +++ b/src/views/book/components/addBook.vue @@ -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() }