123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- import requestV2 from "@/utils/request-v2";
- export enum Type {
- EMR = 1,
- }
- export interface PatientArchive {
- id: string;
- patNo: string;
- times: number;
- documentId: string;
- createId: string;
- name: string;
- isDir: boolean;
- parentId: string;
- path: string;
- type: number;
- sort: number;
- info: string;
- children?: PatientArchive[];
- }
- export function getPatientArchives(patNo: string, times = 0) {
- return requestV2<PatientArchive[]>({
- url: "/thyy/archive/getPatientArchives",
- method: "GET",
- params: { patNo, times },
- });
- }
- export function submitTask(data: { patNo: string; times: number }[]) {
- return requestV2({
- url: "/thyy/archive/submitTask",
- method: "POST",
- data,
- });
- }
- export function currentOrganize(patNo: string, times: number) {
- return requestV2<string>({
- url: "/thyy/archive/currentOrganize",
- method: "get",
- params: { patNo, times },
- });
- }
- export function organizeFiles(patNo: string, times: number) {
- return requestV2({
- url: "/thyy/archive/organizeFiles",
- method: "get",
- params: { patNo, times },
- });
- }
- export function exitOrganizeFiles(patNo: string, times: number) {
- return requestV2({
- url: "/thyy/archive/exitOrganizeFiles",
- method: "get",
- params: { patNo, times },
- });
- }
- export function sort(data) {
- return requestV2({
- url: "/thyy/archive/sort",
- method: "post",
- data,
- });
- }
- export function delFile(data: PatientArchive) {
- return requestV2({
- url: "/thyy/archive/delFile",
- method: "post",
- data,
- });
- }
- export function addDir(data) {
- return requestV2({
- url: "/thyy/archive/addDir",
- method: "post",
- data,
- });
- }
- export function rename(id, name) {
- return requestV2({
- url: "/thyy/archive/rename",
- method: "get",
- params: { id, name },
- });
- }
- export function getAllLog(patNo: string, times: number) {
- return requestV2({
- url: "/thyy/archive/getAllLog",
- method: "get",
- params: { patNo, times },
- });
- }
|