This commit is contained in:
2023-11-16 15:08:07 +08:00
parent 5631715fa7
commit 3e8f978554

View File

@ -255,23 +255,25 @@
if (item == 'morning') { if (item == 'morning') {
this.formdata.appointmentStartTime = this.appointmentTimeList[this.timecurrent].morningList[0] this.formdata.appointmentStartTime = this.appointmentTimeList[this.timecurrent].morningList[0]
.starttime .starttime
if(this.appointmentTimeList[this.timecurrent].morningList[0].status==true){ if (this.appointmentTimeList[this.timecurrent].morningList[0].status == true) {
this.formdata.schedulePlanDetailId = this.appointmentTimeList[this.timecurrent].morningList[0].schedulePlanDetailId this.formdata.schedulePlanDetailId = this.appointmentTimeList[this.timecurrent].morningList[0]
.schedulePlanDetailId
}else{
this.formdata.schedulePlanDetailId='' } else {
this.formdata.schedulePlanDetailId = ''
}
}
} else if (item == 'after') { } else if (item == 'after') {
this.formdata.appointmentEndTime = this.appointmentTimeList[this.timecurrent].morningList[0] this.formdata.appointmentEndTime = this.appointmentTimeList[this.timecurrent].morningList[0]
.endtime .endtime
if(this.appointmentTimeList[this.timecurrent].morningList[0].status==true){ if (this.appointmentTimeList[this.timecurrent].morningList[0].status == true) {
this.formdata.schedulePlanDetailId = this.appointmentTimeList[this.timecurrent].afternoonList[0].schedulePlanDetailId this.formdata.schedulePlanDetailId = this.appointmentTimeList[this.timecurrent].afternoonList[0]
.schedulePlanDetailId
}else{
this.formdata.schedulePlanDetailId='' } else {
this.formdata.schedulePlanDetailId = ''
}
}
} }
}, },
@ -291,13 +293,14 @@
.starttime .starttime
this.formdata.appointmentEndTime = this.appointmentTimeList[this.timecurrent].morningList[0] this.formdata.appointmentEndTime = this.appointmentTimeList[this.timecurrent].morningList[0]
.endtime .endtime
if(this.appointmentTimeList[this.timecurrent].morningList[0].status==true){ if (this.appointmentTimeList[this.timecurrent].morningList[0].status == true) {
this.formdata.schedulePlanDetailId = this.appointmentTimeList[this.timecurrent].morningList[0].schedulePlanDetailId this.formdata.schedulePlanDetailId = this.appointmentTimeList[this.timecurrent].morningList[0]
.schedulePlanDetailId
}else{
this.formdata.schedulePlanDetailId='' } else {
this.formdata.schedulePlanDetailId = ''
}
}
} }
}, },
updata() { updata() {
@ -423,18 +426,19 @@
.morningList[0].starttime : '' .morningList[0].starttime : ''
res.data[0]?.morningList[0]?.endtime ? this.formdata.appointmentEndTime = res.data[0] res.data[0]?.morningList[0]?.endtime ? this.formdata.appointmentEndTime = res.data[0]
.morningList[0].endtime : '' .morningList[0].endtime : ''
if(res.data[0]?.morningList[0]?.status==true){ if (res.data[0]?.morningList[0]?.status == true) {
res.data[0]?.morningList[0]?.scheduleDetailId ? this.formdata.scheduleDetailId = res.data[0] res.data[0]?.morningList[0]?.scheduleDetailId ? this.formdata.scheduleDetailId = res.data[
.morningList[0].scheduleDetailId : '' 0]
.morningList[0].scheduleDetailId : ''
}else{
this.formdata.scheduleDetailId='' } else {
this.formdata.scheduleDetailId = ''
}
}
this.appointmentTimeList = res.data this.appointmentTimeList = res.data
console.log(this.appointmentTimeList,'0000') console.log(this.appointmentTimeList, '0000')
}) })
}, },
// //
@ -470,4 +474,4 @@
<style lang="scss"> <style lang="scss">
@import './confirmation.scss'; @import './confirmation.scss';
</style> </style>