From 0e27da107dd3329b4d0c11ce7d0173c3bd1358e9 Mon Sep 17 00:00:00 2001 From: Jack <jack.su@pollex.com.tw> Date: 星期三, 19 一月 2022 19:06:52 +0800 Subject: [PATCH] Merge branch 'Phase3' of ssh://dev.pollex.com.tw:29418/pcalife/PAM into Phase3 --- PAMapp/store/appointment.store.ts | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/PAMapp/store/appointment.store.ts b/PAMapp/store/appointment.store.ts index 8c7b3e5..e8c8eff 100644 --- a/PAMapp/store/appointment.store.ts +++ b/PAMapp/store/appointment.store.ts @@ -35,6 +35,11 @@ .filter(item => item.communicateStatus === this.contactStatus.DONE || item.communicateStatus === this.contactStatus.CLOSE ).length; } + get isCloseAppointment(): boolean { + const closedStatusList = [this.contactStatus.DONE, this.contactStatus.CLOSE, this.contactStatus.CANCEL]; + return closedStatusList.includes(this.appointmentDetail!.communicateStatus); + } + ////////////////////////////////////////////////////////////////////// @Mutation @@ -63,7 +68,7 @@ } @Action({ commit: 'SET_APPOINTMENT'}) - async setAppointmentDetail(appointmentId: number): Promise<Appointment> { + async getAppointmentDetail(appointmentId: number): Promise<Appointment> { if (this.appointmentDetail && this.appointmentDetail.id === appointmentId) { return this.appointmentDetail; } else { -- Gitblit v1.9.3