| | |
| | | |
| | | // 预约 VO |
| | | export interface AppointmentVO { |
| | | id: number, |
| | | patId: string // 患者编号 |
| | | patName: string // 患者姓名 |
| | | patGender: number // 患者性别 |
| | |
| | | bookId: string // 预约编号 |
| | | bookDate: Date // 预约日期 |
| | | bookTimeslot: number // 预约时间段 |
| | | bookTime: Date // 预约发生时间 |
| | | bookCheckType: boolean // 预约检查类型 |
| | | bookTime: Date // 预约发生时间, 点击预约的时间 |
| | | bookCheckType: number // 预约检查类型 |
| | | paid: number //已付款 |
| | | } |
| | | |
| | | // 预约 API |
| | |
| | | // 查询预约详情 |
| | | getAppointment: async (id: number) => { |
| | | return await request.get({ url: `/ecg/appointment/get?id=` + id }) |
| | | }, |
| | | |
| | | // |
| | | getCurAppointmentByPatId: async (patId: string) => { |
| | | return await request.get({ url: `/ecg/appointment/get-current-by-patient?patId=` + patId }) |
| | | }, |
| | | |
| | | // 从HIS或者DB查询预约详情 |
| | | queryAndCreateAppointmentByPatId: async (patId: string) => { |
| | | return await request.get({ url: `/ecg/appointment/query-and-create-by-patient?patId=` + patId }) |
| | | }, |
| | | |
| | | // 从HIS查询预约或开单信息 |
| | | queryAppointmentFromHis: async (patId: string) => { |
| | | return await request.get({ url: `/ecg/appointment/query-his-by-patient?patId=` + patId }) |
| | | }, |
| | | |
| | | // 新增预约 |
| | |
| | | // 导出预约 Excel |
| | | exportAppointment: async (params) => { |
| | | return await request.download({ url: `/ecg/appointment/export-excel`, params }) |
| | | }, |
| | | |
| | | // 修改预约 |
| | | confirmAppointment: async (data: AppointmentVO) => { |
| | | return await request.post({ url: `/ecg/appointment/confirm`, data }) |
| | | } |
| | | |
| | | } |