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({