| | |
| | | |
| | | <div |
| | | class="invite-msg smTxt_bold" |
| | | @click.stop="makeInterview" |
| | | @click.stop="showAddInterviewDialog" |
| | | v-if="client.communicateStatus === contactStatus.RESERVED"> |
| | | 傳送約訪通知 |
| | | </div> |
| | | <div |
| | | class="invite-msg smTxt_bold" |
| | | @click.stop="closeAppointment" |
| | | @click.stop="navigateToCloseAppointment" |
| | | v-else-if="client.communicateStatus === contactStatus.CONTACTED"> |
| | | 結案 |
| | | </div> |
| | |
| | | </div> |
| | | </Ui-Dialog> |
| | | |
| | | <InterviewMsg :isVisible.sync="isMsgDialog"></InterviewMsg> |
| | | <InterviewMsg |
| | | :isVisible.sync="isShowAddInterviewDialog" |
| | | :client="client" |
| | | > |
| | | </InterviewMsg> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import { Vue, Component, Prop, Action, namespace, Watch } from 'nuxt-property-decorator'; |
| | | |
| | | import appointmentService from '~/shared/services/appointment.service'; |
| | | import myConsultantService from '~/shared/services/my-consultant.service'; |
| | | import UtilsService from '~/shared/services/utils.service'; |
| | | import { hideReviews } from '~/shared/const/hide-reviews'; |
| | | import myConsultantService from '~/shared/services/my-consultant.service'; |
| | | import { ElRow } from 'element-ui/types/row'; |
| | | import { Appointment, AppointmentMemoInfo } from '~/shared/models/appointment.model'; |
| | | import { Appointment, AppointmentMemoInfo, ToInformAppointment } from '~/shared/models/appointment.model'; |
| | | import { ContactStatus } from '~/shared/models/enum/contact-status'; |
| | | |
| | | const localStorage = namespace('localStorage'); |
| | |
| | | @localStorage.Mutation |
| | | storageClearAppointmentIdFromMsg!: () => void; |
| | | |
| | | isVisibleDialog = false; |
| | | isMsgDialog = false; |
| | | dialogWidth = ''; |
| | | hideReviews = hideReviews; |
| | | contactStatus = ContactStatus; |
| | | dialogWidth = ''; |
| | | hideReviews = hideReviews; |
| | | isEdit = false; |
| | | isShowAddInterviewDialog = false; |
| | | isVisibleDialog = false; |
| | | memo = ''; |
| | | |
| | | contactStatus = ContactStatus; |
| | | // currentAppointmentStatus = this.contactStatus.RESERVED; |
| | | |
| | | isEdit = false; |
| | | memoInfo: AppointmentMemoInfo = { |
| | | appointmentId: 0, |
| | | content: '', |
| | | id: 0 |
| | | content : '', |
| | | id : 0 |
| | | } |
| | | memo = ''; |
| | | |
| | | ////////////////////////////////////////////////////////////////////// |
| | | |
| | |
| | | this.$router.push(`/appointment/${this.client.id}`); |
| | | } |
| | | |
| | | makeInterview(): void { |
| | | this.isMsgDialog = true; |
| | | showAddInterviewDialog(): void { |
| | | this.isShowAddInterviewDialog = true; |
| | | } |
| | | |
| | | closeAppointment(): void { |
| | | navigateToCloseAppointment(): void { |
| | | this.$router.push(`/appointment/${this.client.id}/close`); |
| | | } |
| | | |
| | | makeAppointment(): void { |
| | | alert('MAKE AN APPOINTMENT!'); |
| | | } |
| | | |
| | | get newAppointment(): boolean { |