2025-02-11 10:40:34 +08:00
|
|
|
import type { ICD } from '@/api/device/interface/icd'
|
|
|
|
|
import http from '@/api'
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @name ICD管理模块
|
|
|
|
|
*/
|
|
|
|
|
export const getICDList = (params: ICD.ReqICDParams) => {
|
2026-06-16 19:26:47 +08:00
|
|
|
return http.post<ICD.ResICDPage>(`/icd/list`, params)
|
2025-02-11 10:40:34 +08:00
|
|
|
}
|
|
|
|
|
|
2026-06-16 19:26:47 +08:00
|
|
|
export const getICDAllList = () => {
|
|
|
|
|
return http.get<ICD.ResICD[]>(`/icd/listAll`)
|
|
|
|
|
}
|
2025-02-11 10:40:34 +08:00
|
|
|
|
2026-06-16 19:26:47 +08:00
|
|
|
export const getStandardICDList = () => {
|
|
|
|
|
return http.get<ICD.StandardOption[]>(`/icd/standard-list`)
|
2025-02-11 10:40:34 +08:00
|
|
|
}
|
|
|
|
|
|
2026-06-16 19:26:47 +08:00
|
|
|
export const getICDById = (id: string) => {
|
|
|
|
|
return http.get<ICD.ResICD>(`/icd/getById`, { id })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const addICD = (params: FormData) => {
|
2025-11-13 08:42:05 +08:00
|
|
|
return http.upload(`/icd/add`, params)
|
2026-06-16 19:26:47 +08:00
|
|
|
}
|
2025-02-11 10:40:34 +08:00
|
|
|
|
2026-06-16 19:26:47 +08:00
|
|
|
export const updateICD = (params: FormData) => {
|
|
|
|
|
return http.upload(`/icd/update`, params)
|
|
|
|
|
}
|
2025-02-11 10:40:34 +08:00
|
|
|
|
2026-06-17 13:20:36 +08:00
|
|
|
export const importICDJson = (params: FormData) => {
|
|
|
|
|
return http.upload(`/icd/import/json`, params)
|
|
|
|
|
}
|
|
|
|
|
|
2026-06-16 19:26:47 +08:00
|
|
|
export const deleteICD = (params: string[]) => {
|
|
|
|
|
return http.post(`/icd/delete`, params)
|
|
|
|
|
}
|
2025-02-11 10:40:34 +08:00
|
|
|
|
2026-06-16 19:26:47 +08:00
|
|
|
export const exportICD = (id: string) => {
|
|
|
|
|
return http.downloadGetWithHeaders(`/icd/export/${id}`)
|
|
|
|
|
}
|