修改
This commit is contained in:
parent
dc320cdb26
commit
f956116cf0
@ -245,7 +245,6 @@
|
|||||||
}
|
}
|
||||||
that.personInfo = response.data
|
that.personInfo = response.data
|
||||||
that.personInfo.address = response.data.areaName + response.data.address
|
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.serviceStartTime = res.data.appointmentTimeList[0].morningList[0]
|
||||||
this.orderlist.serviceDate = res.data.appointmentTimeList[0].date
|
this.orderlist.serviceDate = res.data.appointmentTimeList[0].date
|
||||||
this.consumableTotalPrice = res.data.consumableTotalPrice
|
this.consumableTotalPrice = res.data.consumableTotalPrice
|
||||||
|
this.orderlist.disablingCondition = this.personInfo.disablingCondition
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//确认预约
|
//确认预约
|
||||||
updata() {
|
updata() {
|
||||||
var that = this
|
var that = this
|
||||||
this.orderlist.consumableTotalPrice = null
|
|
||||||
this.orderlist.orderChannel = 'WECHAT_APPLET'
|
|
||||||
this.orderlist.disablingReason = this.personInfo.disablingReason
|
|
||||||
if (this.radio == 1) {
|
if (this.radio == 1) {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: '请阅读用户协议并同意',
|
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.afternoonOpenEndTime = this.orderlist.afternoonOpenEndTime.slice(0, 5)
|
||||||
this.orderlist.afternoonOpenStartTime = this.orderlist.afternoonOpenStartTime.slice(0, 5)
|
this.orderlist.afternoonOpenStartTime = this.orderlist.afternoonOpenStartTime.slice(0, 5)
|
||||||
this.orderlist.morningOpenEndTime = this.orderlist.morningOpenEndTime.slice(0, 5)
|
this.orderlist.morningOpenEndTime = this.orderlist.morningOpenEndTime.slice(0, 5)
|
||||||
this.orderlist.morningOpenStartTime = this.orderlist.morningOpenStartTime.slice(0, 5)
|
this.orderlist.morningOpenStartTime = this.orderlist.morningOpenStartTime.slice(0, 5)
|
||||||
this.orderlist.patientId = this.patientId
|
this.orderlist.patientId = this.patientId
|
||||||
this.orderlist.serviceAddress = this.personInfo.address
|
this.orderlist.serviceAddress = this.personInfo.address
|
||||||
|
if (this.orderlist.disablingCondition == 'NOT_DISABLED') {
|
||||||
|
this.orderlist.disablingReason = null
|
||||||
|
}
|
||||||
submitAppointment(this.orderlist).then(res => {
|
submitAppointment(this.orderlist).then(res => {
|
||||||
if (res.code == 500) {
|
if (res.code == 500) {
|
||||||
that.$refs.uToast.show({
|
that.$refs.uToast.show({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user