初始化

This commit is contained in:
chenyc
2025-12-13 18:52:08 +08:00
commit 9041a4298f
553 changed files with 59783 additions and 0 deletions

View File

@@ -0,0 +1,134 @@
import request from '/@/utils/request';
import { AxiosPromise } from 'axios';
import type { IPathologyDiagnoseListParams, IPathologyDiagnose, IPathologyDiagnoseAny } from './types/index.type';
/**
* 添加患者病理诊断
* @param data
* @returns
*/
export function pathologyDiagnoseAddApi(data: IPathologyDiagnoseAny) {
return request({
url: '/patient/pathology/diagnose/add',
method: 'post',
data
})
}
/**
* 批量添加患者病理诊断
* @param data
* @returns
*/
export function pathologyDiagnoseAddListApi(data: IPathologyDiagnoseAny[]) {
return request({
url: '/patient/pathology/diagnose/addList',
method: 'post',
data
})
}
/**
* 删除患者病理诊断
* @param id
* @returns
*/
export function pathologyDiagnoseDelApi(id: number) {
return request({
url: '/patient/pathology/diagnose/delete',
method: 'post',
params: {
id
}
})
}
/**
* 批量删除患者病理诊断
* @param ids
* @returns
*/
export function pathologyDiagnoseDelAllApi(ids: string) {
return request({
url: '/patient/pathology/diagnose/deleteAll',
method: 'post',
data: {
ids
}
})
}
/**
* 根据id获取患者病理诊断详情
* @param id
* @returns
*/
export function pathologyDiagnoseDetailByIdApi(id: number): AxiosPromise<IPathologyDiagnose> {
return request({
url: '/patient/pathology/diagnose/detail',
method: 'post',
params: {
id
}
})
}
/**
* 根据code获取患者病理诊断详情
* @param id
* @returns
*/
export function pathologyDiagnoseDetailByCodeApi(code: number): AxiosPromise<IPathologyDiagnose> {
return request({
url: '/patient/pathology/diagnose/detail',
method: 'post',
params: {
code
}
})
}
/**
* 获取患者病理诊断列表
* @param params
* @returns
*/
export function pathologyDiagnoseListApi(params: IPathologyDiagnoseListParams): AxiosPromise<{ list: IPathologyDiagnose[]; total: number; [key: string]: any; }> {
return request({
url: '/patient/pathology/diagnose/list',
method: 'post',
params
})
}
/**
* 保存患者病理诊断
* @param data
* @returns
*/
export function pathologyDiagnoseSaveApi(data: IPathologyDiagnoseAny) : AxiosPromise<IPathologyDiagnose> {
return request({
url: '/patient/pathology/diagnose/save',
method: 'post',
data
})
}
/**
* 更新患者病理诊断
* @param data
* @returns
*/
export function pathologyDiagnoseUpdateApi(data: IPathologyDiagnoseAny) {
return request({
url: '/patient/pathology/diagnose/update',
method: 'post',
data
})
}

View File

@@ -0,0 +1,36 @@
export interface IPathologyDiagnoseListParams {
page: number;
size: number;
wherecondition: string;
ordercondition: string;
}
export interface IPathologyDiagnose {
clientCode: string;
code: string;
createTime: string | null;
createUser: number | null;
deletedTime: string | null;
id: number;
isDeleted: number;
patientCode: string;
patientName: string;
recordJsonBody: string;
recordTime: string;
remark: string;
updateTime: string | null;
updateUser: number | null;
}
export interface IPathologyDiagnoseAny extends Omit<IPathologyDiagnose,
'createTime' | 'createUser' | 'deletedTime' | 'isDeleted' | 'remark' | 'updateTime' | 'updateUser'>
{
createTime?: string | null;
createUser?: number | null;
deletedTime?: string | null;
isDeleted?: number;
updateTime?: string | null;
updateUser?: number | null;
remark?: string;
}