| | |
| | | .sort((preAppointment, nextAppointment) => +nextAppointment.sortDate - +preAppointment.sortDate)[0]; |
| | | } |
| | | get displayTime(): string { |
| | | let time = ''; |
| | | let time: Date | string = ''; |
| | | switch(this.agentInfo.contactStatus) { |
| | | case 'reserved': |
| | | time = this.agentInfo.updateTime |
| | | time = this.agentInfo.updateTime |
| | | break; |
| | | case 'contacted': |
| | | time = this.agentInfo.updateTime |
| | | time = this.agentInfo.updateTime |
| | | break; |
| | | case 'picked': |
| | | time = this.agentInfo.createTime |
| | | time = this.agentInfo.createTime |
| | | break; |
| | | } |
| | | return time; |
| | | if (typeof time !== 'string') { |
| | | time.toString(); |
| | | } |
| | | return time as string; |
| | | } |
| | | |
| | | appointmentDetail: any = { |