TODO#130349 新增預約單的時候要將顧問自動加到我的顧問清單
| | |
| | | |
| | | <script lang="ts"> |
| | | import { Vue, Component } from 'vue-property-decorator'; |
| | | import { appointmentDemand, AppointmentParams, AppointmentRequests } from '~/assets/ts/api/consultant'; |
| | | import { addFavoriteConsultant, appointmentDemand, AppointmentParams, AppointmentRequests } from '~/assets/ts/api/consultant'; |
| | | import { getRequestsFromStorage, setRequestsToStorage } from '~/assets/ts/storageRequests'; |
| | | |
| | | @Component |
| | |
| | | } |
| | | |
| | | sentDemand() { |
| | | addFavoriteConsultant([this.agentNo]).then(res => this.sentAppointmentDemand()); |
| | | } |
| | | |
| | | sentAppointmentDemand() { |
| | | const data: AppointmentParams = { |
| | | phone: '09123456789', |
| | | email: this.myRequest.email, |