update: appointmentService - add closeAppointment()
| | |
| | | import { ContactStatus } from "./enum/contact-status"; |
| | | |
| | | export interface AppointmentLog { |
| | | id : number; |
| | | createdDate : string; |
| | |
| | | content: string; |
| | | id : number; |
| | | } |
| | | |
| | | export interface ToDoneAppointment { |
| | | appointmentId : number; |
| | | contactStatus : ContactStatus; |
| | | planCode : string; |
| | | policyEntryDate : string; |
| | | policyholderIdentityId: string; |
| | | } |
| | | |
| | | export interface ToCloseAppointment { |
| | | appointmentId : number; |
| | | closedOtherReason: string; |
| | | closedReason : string; |
| | | contactStatus : ContactStatus; |
| | | remark : string; |
| | | } |
| | | |
¤ñ¹ï·sÀÉ®× |
| | |
| | | export enum ContactStatus { |
| | | PICKED = 'picked', |
| | | RESERVED = 'reserved', |
| | | CONTACTED = 'contacted', |
| | | DONE = 'done', |
| | | CLOSE = 'close', |
| | | CANCEL = 'cancel', |
| | | } |
| | |
| | | import { http } from "./httpClient"; |
| | | |
| | | import { Appointment, AppointmentDetail, AppointmentMemoInfo, createdMemoInfo, EditAppointmentParams, updatedMemoInfo } from "~/shared/models/appointment.model"; |
| | | import { Appointment, AppointmentDetail, AppointmentMemoInfo, createdMemoInfo, EditAppointmentParams, ToCloseAppointment, ToDoneAppointment, updatedMemoInfo } from "~/shared/models/appointment.model"; |
| | | |
| | | class AppointmentService { |
| | | |
| | |
| | | } |
| | | |
| | | // æ°å¢è¨»è¨ |
| | | createMemo(memoInfo: createdMemoInfo): Promise<AppointmentMemoInfo> { |
| | | async createMemo(memoInfo: createdMemoInfo): Promise<AppointmentMemoInfo> { |
| | | return http.post('/appointment/memo/create', memoInfo).then(res => res.data); |
| | | } |
| | | |
| | | // ç·¨è¼¯è¨»è¨ |
| | | updateMemo(memoInfo: updatedMemoInfo): Promise<AppointmentMemoInfo> { |
| | | async updateMemo(memoInfo: updatedMemoInfo): Promise<AppointmentMemoInfo> { |
| | | return http.post('/appointment/memo/update', memoInfo).then(res => res.data); |
| | | } |
| | | |
| | |
| | | deleteMemo(appointmentMemoId: number) { |
| | | return http.delete(`/appointment/memo/${appointmentMemoId}`) |
| | | } |
| | | |
| | | // é ç´å®çµæ¡ |
| | | async closeAppointment(appointmentInfo: ToDoneAppointment | ToCloseAppointment) { |
| | | return http.post(`/appointment/close`, appointmentInfo).then((res) => res.data); |
| | | } |
| | | } |
| | | |
| | | export default new AppointmentService(); |