初始化
This commit is contained in:
84
src/api/patient_vs_hemo_med_scheme/index.ts
Normal file
84
src/api/patient_vs_hemo_med_scheme/index.ts
Normal file
@@ -0,0 +1,84 @@
|
||||
import request from '/@/utils/request';
|
||||
import type { ICommonListParams } from '../common.type';
|
||||
import type { IPatientHemoMedSchemeListReponse } from './types/index.type';
|
||||
import { AxiosPromise } from 'axios';
|
||||
|
||||
export function savePatientScheme(params: string) {
|
||||
return request({
|
||||
url: '/patient/vs/hemo/med/scheme/savePatientScheme',
|
||||
method: 'post',
|
||||
data: params,
|
||||
});
|
||||
}
|
||||
export function savePatientSchemeDetail(params: string) {
|
||||
return request({
|
||||
url: '/patient/vs/hemo/med/scheme/savePatientSchemeDetail',
|
||||
method: 'post',
|
||||
data: params,
|
||||
});
|
||||
}
|
||||
export function listPatSchedulesInTemplate(params: object) {
|
||||
return request({
|
||||
url: '/hemo/med/schedule/template/listPatSchedulesInTemplate',
|
||||
method: 'post',
|
||||
data: params,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取患者透析方案列表
|
||||
* @param params
|
||||
* @returns
|
||||
*/
|
||||
export function list(params: ICommonListParams) :AxiosPromise<IPatientHemoMedSchemeListReponse> {
|
||||
return request({
|
||||
url: '/patient/vs/hemo/med/scheme/list',
|
||||
method: 'post',
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
params
|
||||
})
|
||||
}
|
||||
export function deleteId(params: string) {
|
||||
return request({
|
||||
url: '/patient/vs/hemo/med/scheme/delete',
|
||||
method: 'post',
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
data: params,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 透析处方修改记录查询
|
||||
* @param schemeCode
|
||||
* @returns
|
||||
*/
|
||||
export function listBySchemeCodeApi (schemeCode: string) {
|
||||
return request({
|
||||
url: '/adjust/scheme/history/listBySchemeCode',
|
||||
method: 'post',
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
params: { schemeCode }
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 修改透析处方修改记录
|
||||
* @param data
|
||||
* @returns
|
||||
*/
|
||||
export function listBySchemeCodeUpdateApi(data: any) {
|
||||
return request({
|
||||
url: '/adjust/scheme/history/update',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
32
src/api/patient_vs_hemo_med_scheme/types/index.type.ts
Normal file
32
src/api/patient_vs_hemo_med_scheme/types/index.type.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
import type { IUser } from '../../user/types/index.type';
|
||||
import type { IComminList } from '../../common.type';
|
||||
|
||||
export interface IPatientHemoMedScheme {
|
||||
code: string;
|
||||
createTime: string;
|
||||
createUser: null | number;
|
||||
deletedTime: null | string;
|
||||
id: number;
|
||||
isDeleted: number;
|
||||
patientCode: string;
|
||||
periodText: string;
|
||||
remark: string;
|
||||
schemeCode: string;
|
||||
schemeCount: number;
|
||||
schemeDoctor: string;
|
||||
schemeDoctorInfo: IUser;
|
||||
schemeFrequency: number;
|
||||
schemeInfo: any;
|
||||
schemeIsEnable: number;
|
||||
schemeIsSub: number;
|
||||
schemeNamePlus: string;
|
||||
schemePeriod: number;
|
||||
schemeSortOrder: number;
|
||||
updateTime: string;
|
||||
updateUser: null | number;
|
||||
}
|
||||
|
||||
|
||||
export interface IPatientHemoMedSchemeListReponse extends Omit<IComminList, 'list'> {
|
||||
list: IPatientHemoMedScheme[];
|
||||
}
|
||||
Reference in New Issue
Block a user