import request from '@/utils/request'
|
import { parseStrEmpty } from "@/utils/ruoyi";//处理字符串,und,null转换为'';
|
|
// 查询住院记录列表
|
export function listpatient(data) {
|
const params = { ...data };
|
// bedSort 不传即不按床号排序
|
if (params.bedSort == null || params.bedSort === "") delete params.bedSort;
|
return request({
|
url: '/smartor/patinhosp/selectPatMedInhospList',
|
method: 'post',
|
data: params
|
})
|
};
|
// 住院记录详情
|
export function particularpatient(userId) {
|
return request({
|
url: '/smartor/patinhosp/' + userId,
|
method: 'get',
|
})
|
};
|
// 新增住院记录
|
export function addpatient(data) {
|
return request({
|
url: '/smartor/patinhosp/add',
|
method: 'post',
|
data: data
|
})
|
};
|
// 删除住院记录
|
export function deletepatient(userId) {
|
return request({
|
url: '/smartor/patinhosp/remove/' + userId,
|
method: 'get',
|
})
|
};
|
// 查询住院记录列表
|
export function listoperation(data) {
|
return request({
|
url: '/smartor/operation/list ',
|
method: 'post',
|
data: data
|
})
|
};
|