eight
2024-10-23 83bc7f6d33934f56fd1df80c7e8975e7c887d606
src/api/ecg/appointment/index.ts
@@ -2,9 +2,10 @@
// 预约 VO
export interface AppointmentVO {
  id: number,
  patId: string // 患者编号
  patName: string // 患者姓名
  patGender: boolean // 患者性别
  patGender: number // 患者性别
  patBirthday: Date // 患者生日
  patMobile: string // 患者手机
  patPhone: string // 患者电话
@@ -16,10 +17,11 @@
  patWardDesc: string // 患者所在病区名称
  patBedNo: string // 床号
  bookId: string // 预约编号
  bookPeriodStart: Date // 预约检查时间段
  bookPeriodEnd: Date // 预约检查时间段
  bookTime: Date // 预约发生时间
  bookCheckType: boolean // 预约检查类型
  bookDate: Date // 预约日期
  bookTimeslot: number // 预约时间段
  bookTime: Date // 预约发生时间, 点击预约的时间
  bookCheckType: number // 预约检查类型
  paid: number //已付款
}
// 预约 API
@@ -32,6 +34,11 @@
  // 查询预约详情
  getAppointment: async (id: number) => {
    return await request.get({ url: `/ecg/appointment/get?id=` + id })
  },
  // 查询预约详情
  getAppointmentByPatId: async (patId: string) => {
    return await request.get({ url: `/ecg/appointment/get-by-patient?patId=` + patId })
  },
  // 新增预约
@@ -52,5 +59,11 @@
  // 导出预约 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 })
  }
}
}