| | |
| | | import { Vue, Component, Prop } from 'nuxt-property-decorator'; |
| | | |
| | | import { Appointment } from '~/shared/models/appointment.model'; |
| | | import { ContactStatus } from '~/shared/models/enum/contact-status'; |
| | | |
| | | @Component |
| | | export default class AppointmentClosedInfo extends Vue { |
| | |
| | | @Prop() |
| | | appointmentDetail!: Appointment; |
| | | |
| | | contactStatus = ContactStatus; |
| | | |
| | | ////////////////////////////////////////////////////////////////////// |
| | | |
| | | editAppointmentHasClosed(): void{ |
| | | this.$router.push(`/appointment/${this.appointmentDetail.id}/close`); |
| | | } |
| | | |
| | | get displayClosedType(): string { |
| | | let closedType = '成交'; |
| | | switch (this.appointmentDetail.communicateStatus) { |
| | | case this.contactStatus.CLOSE: |
| | | closedType = '未成交'; |
| | | break; |
| | | case this.contactStatus.CANCEL: |
| | | closedType = '取消'; |
| | | break; |
| | | } |
| | | return closedType; |
| | | } |
| | | |
| | | } |
| | | </script> |
| | | |