| | |
| | | </div> |
| | | |
| | | <div class="client-detail-action" v-if="showWhenAppointmentHasClosed"> |
| | | <el-button >發送滿意度</el-button> |
| | | <el-button @click="inviteReview">發送滿意度</el-button> |
| | | </div> |
| | | |
| | | <div class="client-detail-action" v-else> |
| | |
| | | |
| | | import { Appointment } from '~/shared/models/appointment.model'; |
| | | import { ContactStatus } from '~/shared/models/enum/contact-status'; |
| | | |
| | | import reviewsService from '~/shared/services/reviews.service'; |
| | | |
| | | |
| | | const appointmentStore = namespace('appointment.store'); |
| | | |
| | |
| | | const result = hopeContactTimeString.replace("'", '').split('、'); |
| | | return result; |
| | | } |
| | | |
| | | inviteReview(): void { |
| | | reviewsService.sendSatisfactionToClient(this.appointmentDetail.id).then(res => res); |
| | | } |
| | | } |
| | | </script> |
| | | |