import request from '@/config/axios'
|
|
// 检查项目 VO
|
export interface CheckTypeVO {
|
id: number // id
|
name: string // 检查项目名称
|
value: number // 检查项目值
|
readyNum: number // 允许准备中人数
|
needDevReady: number // 需要设备领用
|
callingColumn: number // 叫号列
|
displayBarcode: number // 是否显示患者条码
|
expenseRecognition: number // 是否需要确费
|
timeslotBookNum: number // 时段预约规定人数
|
timeslotReservedNum: number // 每时段预留人数
|
affinityCheckTypes: number[] | null// 亲和的检查项目
|
notes: string // 预约注意事项
|
seqPrefix: string // 序号前缀
|
/**
|
* 排队序号规则:
|
* 0=预约号(用预约系统的号,不再分配)
|
* 1=签到序号(当天同检查项目连续递增,每 9 个预留 1 个给加急)
|
* 2=时段号(按预约时间段给号)
|
* 未配置(null/undefined) 时后端按 2 处理,与改造前行为一致。
|
*/
|
seqRule: number | null
|
/** 排序序号:越小越靠前(检查项目在列表中的显示顺序,可在线编辑) */
|
sort?: number
|
}
|
|
// 检查项目 API
|
export const CheckTypeApi = {
|
|
// 查询检查项目.简单列表
|
getSimpleCheckTypeList: async () => {
|
return await request.get({ url: `/ecg/check-type/list-simple-check-type` })
|
},
|
|
// 查询检查项目分页
|
getCheckTypePage: async (params: any) => {
|
return await request.get({ url: `/ecg/check-type/page`, params })
|
},
|
|
// 查询检查项目详情
|
getCheckType: async (id: number) => {
|
return await request.get({ url: `/ecg/check-type/get?id=` + id })
|
},
|
|
// 新增检查项目
|
createCheckType: async (data: CheckTypeVO) => {
|
return await request.post({ url: `/ecg/check-type/create`, data })
|
},
|
|
// 修改检查项目
|
updateCheckType: async (data: CheckTypeVO) => {
|
return await request.put({ url: `/ecg/check-type/update`, data })
|
},
|
|
// 删除检查项目
|
deleteCheckType: async (id: number) => {
|
return await request.delete({ url: `/ecg/check-type/delete?id=` + id })
|
},
|
|
// 导出检查项目 Excel
|
exportCheckType: async (params) => {
|
return await request.download({ url: `/ecg/check-type/export-excel`, params })
|
}
|
}
|