| | |
| | | |
| | | // 装机拆机 VO |
| | | export interface DevRentVO { |
| | | id: number // id |
| | | id: number | null // id |
| | | devId: string // 设备编号 |
| | | patId: string // 患者编号 |
| | | patName: string // 患者名称 |
| | |
| | | // 导出装机拆机 Excel |
| | | exportDevRent: async (params) => { |
| | | return await request.download({ url: `/ecg/dev-rent/export-excel`, params }) |
| | | } |
| | | } |
| | | }, |
| | | |
| | | // 获取患者设备最近的租赁 |
| | | getLatestRent: async (params: any) => { |
| | | return await request.get({ url: `/ecg/dev-rent/get-latest-rent`, params }) |
| | | }, |
| | | |
| | | // 装机 |
| | | devInstall: async (data: DevRentVO) => { |
| | | return await request.post({ url: `/ecg/dev-rent/dev-install`, data }) |
| | | }, |
| | | |
| | | // 拆机 |
| | | devDismantle: async (data: DevRentVO) => { |
| | | return await request.post({ url: `/ecg/dev-rent/dev-dismantle`, data }) |
| | | }, |
| | | |
| | | // 放弃装机 |
| | | devCancel: async (data: DevRentVO) => { |
| | | return await request.post({ url: `/ecg/dev-rent/dev-cancel`, data }) |
| | | }, |
| | | |
| | | // 遗失 |
| | | devLose: async (data: DevRentVO) => { |
| | | return await request.post({ url: `/ecg/dev-rent/dev-lose`, data }) |
| | | }, |
| | | |
| | | } |
| | | |