| | |
| | | ></DateTimePicker> |
| | | |
| | | <div class="mdTxt mb-10 mt-10">約訪紀錄</div> |
| | | <el-input type="textarea" :rows="5" placeholder="約訪通知" resize="none"> |
| | | <el-input |
| | | type="textarea" |
| | | :rows="5" |
| | | placeholder="請輸入約訪紀錄" |
| | | resize="none" |
| | | v-model="content" |
| | | > |
| | | </el-input> |
| | | |
| | | <div class="edit-appointment-record-btn"> |
| | | <el-button>取消</el-button> |
| | | <el-button :disabled="!interviewTime">確定</el-button> |
| | | <el-button :disabled="!interviewTime || !content" @click="createInterviewRecord">確定</el-button> |
| | | </div> |
| | | |
| | | <PopUpFrame :isOpen.sync="isConfirmPopup" |
| | | @closePopUp="closeConfirmPopup"> |
| | | <div class="text--center mdTxt">新增成功</div> |
| | | <div class="text--center mt-30"> |
| | | <el-button @click="closeConfirmPopup" type="primary">確定</el-button> |
| | | </div> |
| | | </PopUpFrame> |
| | | </div> |
| | | </template> |
| | | <script lang="ts"> |
| | | import { AppointmentLog } from '~/shared/models/appointment.model'; |
| | | import { AppointmentLog, InterviewRecordInfo } from '~/shared/models/appointment.model'; |
| | | import { Vue, Component, Prop } from 'nuxt-property-decorator'; |
| | | import authService from '~/shared/services/auth.service'; |
| | | import appointmentService from '~/shared/services/appointment.service'; |
| | | |
| | | @Component |
| | | export default class InterviewAdd extends Vue { |
| | | interviewTime = ''; |
| | | content = ''; |
| | | isConfirmPopup = false; |
| | | |
| | | // @Prop() |
| | | // myAppointmentReviewLogList!: AppointmentLog[]; |
| | |
| | | // this.isUserLogin = authService.isUserLogin(); |
| | | // } |
| | | |
| | | createInterviewRecord() { |
| | | const interviewRecordInfo: InterviewRecordInfo = { |
| | | content: this.content, |
| | | interviewDate: this.interviewTime, |
| | | appointmentId: +this.$route.params.appointmentId |
| | | } |
| | | appointmentService.createInterviewRecord(interviewRecordInfo).then(res => { |
| | | this.isConfirmPopup = true; |
| | | }); |
| | | |
| | | } |
| | | |
| | | closeConfirmPopup() { |
| | | this.isConfirmPopup = false; |
| | | this.$router.go(-1); |
| | | } |
| | | |
| | | } |
| | | </script> |
| | | |