From 66f726b6643e85cd6ec0041d01b31d38b3803c1a Mon Sep 17 00:00:00 2001 From: Tomas <tomasysh@gmail.com> Date: 星期三, 26 一月 2022 10:56:05 +0800 Subject: [PATCH] add#134789: [顧問] 過久未回應的預約單流程 --- PAMapp/components/Consultant/ConsultantCard.vue | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/PAMapp/components/Consultant/ConsultantCard.vue b/PAMapp/components/Consultant/ConsultantCard.vue index 8ea5a64..b154bf8 100644 --- a/PAMapp/components/Consultant/ConsultantCard.vue +++ b/PAMapp/components/Consultant/ConsultantCard.vue @@ -225,9 +225,9 @@ return !!this.agentInfo['appointmentStatus']; } - get latestReservedAppointment(): Appointment { + get latestNotClosedAppointment(): Appointment { return this.agentInfo.appointments! - .filter((appointment) => appointment.communicateStatus === 'reserved') + .filter((appointment) => appointment.communicateStatus === 'reserved' || appointment.communicateStatus === 'contacted') .map((reversedAppointment) => { return { ...reversedAppointment, @@ -335,7 +335,7 @@ const isAppointment = !!this.agentInfo['appointmentStatus']; const appointmentId = isAppointment ? this.agentInfo['appointmentId'] - : this.latestReservedAppointment.id; + : this.latestNotClosedAppointment.id; appointmentService.getAppointmentDetail(appointmentId!).then(res => { this.appointmentDetail = { @@ -366,7 +366,7 @@ const isAppointment = !!this.agentInfo['appointmentStatus']; const appointmentId = isAppointment ? this.agentInfo['appointmentId'] - : this.latestReservedAppointment.id; + : this.latestNotClosedAppointment.id; const reviewParams: UserReviewsConsultantsParams = { appointmentId: appointmentId, @@ -381,7 +381,7 @@ } cancel() { - appointmentService.cancelAppointment(this.latestReservedAppointment.id).then(res => { + appointmentService.cancelAppointment(this.latestNotClosedAppointment.id).then(res => { this.storeConsultantList(); this.isVisibleDialog = false; this.isCancelPopup = false; -- Gitblit v1.8.0