From f956116cf088bc79cdbc56bbfe58cb6ff8faf284 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Fri, 7 Apr 2023 14:36:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/appointmenttime/appointmenttime.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pages/appointmenttime/appointmenttime.vue b/pages/appointmenttime/appointmenttime.vue index e344f27..e8a6664 100644 --- a/pages/appointmenttime/appointmenttime.vue +++ b/pages/appointmenttime/appointmenttime.vue @@ -245,7 +245,6 @@ } that.personInfo = response.data that.personInfo.address = response.data.areaName + response.data.address - that.orderlist.disablingCondition = response.data.disablingCondition }) } }, @@ -271,15 +270,13 @@ this.orderlist.serviceStartTime = res.data.appointmentTimeList[0].morningList[0] this.orderlist.serviceDate = res.data.appointmentTimeList[0].date this.consumableTotalPrice = res.data.consumableTotalPrice + this.orderlist.disablingCondition = this.personInfo.disablingCondition } }) }, //确认预约 updata() { var that = this - this.orderlist.consumableTotalPrice = null - this.orderlist.orderChannel = 'WECHAT_APPLET' - this.orderlist.disablingReason = this.personInfo.disablingReason if (this.radio == 1) { this.$refs.uToast.show({ title: '请阅读用户协议并同意', @@ -296,12 +293,18 @@ } }) } + this.orderlist.consumableTotalPrice = null + this.orderlist.orderChannel = 'WECHAT_APPLET' + this.orderlist.disablingReason = this.personInfo.disablingReason this.orderlist.afternoonOpenEndTime = this.orderlist.afternoonOpenEndTime.slice(0, 5) this.orderlist.afternoonOpenStartTime = this.orderlist.afternoonOpenStartTime.slice(0, 5) this.orderlist.morningOpenEndTime = this.orderlist.morningOpenEndTime.slice(0, 5) this.orderlist.morningOpenStartTime = this.orderlist.morningOpenStartTime.slice(0, 5) this.orderlist.patientId = this.patientId this.orderlist.serviceAddress = this.personInfo.address + if (this.orderlist.disablingCondition == 'NOT_DISABLED') { + this.orderlist.disablingReason = null + } submitAppointment(this.orderlist).then(res => { if (res.code == 500) { that.$refs.uToast.show({