| | |
| | | .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 |
| | |
| | | } |
| | | |
| | | @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 { |