43 lines
1.2 KiB
TypeScript
43 lines
1.2 KiB
TypeScript
import request from '@/config/axios'
|
|
|
|
// 体检套餐 VO
|
|
export interface ExammoduleVO {
|
|
id: number // 主键
|
|
examModuleName: string // 套餐名称
|
|
examModuleID: number // 套餐ID
|
|
itemCode: string // 项目ID
|
|
}
|
|
|
|
// 体检套餐 API
|
|
export const ExammoduleApi = {
|
|
// 查询体检套餐分页
|
|
getExammodulePage: async (params: any) => {
|
|
return await request.get({ url: `/inspect/exammodule/page`, params })
|
|
},
|
|
|
|
// 查询体检套餐详情
|
|
getExammodule: async (id: number) => {
|
|
return await request.get({ url: `/inspect/exammodule/get?id=` + id })
|
|
},
|
|
|
|
// 新增体检套餐
|
|
createExammodule: async (data: ExammoduleVO) => {
|
|
return await request.post({ url: `/inspect/exammodule/create`, data })
|
|
},
|
|
|
|
// 修改体检套餐
|
|
updateExammodule: async (data: ExammoduleVO) => {
|
|
return await request.put({ url: `/inspect/exammodule/update`, data })
|
|
},
|
|
|
|
// 删除体检套餐
|
|
deleteExammodule: async (id: number) => {
|
|
return await request.delete({ url: `/inspect/exammodule/delete?id=` + id })
|
|
},
|
|
|
|
// 导出体检套餐 Excel
|
|
exportExammodule: async (params) => {
|
|
return await request.download({ url: `/inspect/exammodule/export-excel`, params })
|
|
},
|
|
}
|