From 4e32f1188e9d0cafd3511994d2d13617ca6e08f9 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期五, 15 十二月 2023 11:15:00 +0800
Subject: [PATCH] 完成

---
 src/api/patient/homepage.js |  113 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 111 insertions(+), 2 deletions(-)

diff --git a/src/api/patient/homepage.js b/src/api/patient/homepage.js
index 713159b..0dfedce 100644
--- a/src/api/patient/homepage.js
+++ b/src/api/patient/homepage.js
@@ -1,5 +1,5 @@
 import request from '@/utils/request'
-import { parseStrEmpty } from "@/utils/ruoyi";
+import { parseStrEmpty } from "@/utils/ruoyi";//澶勭悊瀛楃涓�,und,null杞崲涓�'';
 
 // 鏌ヨ鎮h�呭垪琛�
 export function listpatient(query) {
@@ -8,4 +8,113 @@
     method: 'get',
     params: query
   })
-}
\ No newline at end of file
+};
+// 鐢ㄦ埛淇℃伅鏌ヨ鎮h�呭垪琛�
+export function messagelistpatient(data) {
+  return request({
+    url: '/smartor/patarchive/patInfoByContion',
+    method: 'post',
+    data: data
+  })
+};
+// 淇敼鎮h�呮。妗�
+export function alterpatient(data) {
+  return request({
+    url: '/smartor/patarchive',
+    method: 'put',
+    data: data
+  })
+};
+// 鏂板鎮h��
+export function addpatient(data) {
+  return request({
+    url: '/smartor/patarchive',
+    method: 'post',
+    data: data
+  })
+};
+// 鎮h�呰鎯�
+export function particularpatient(userId) {
+  return request({
+    url: '/smartor/patarchive/getInfo/' + userId,
+    method: 'get',
+  })
+};
+// 鍒犻櫎鎮h�呭垪琛�
+export function deletepatient(userId) {
+  return request({
+    url: '/smartor/patarchive/remove/' + userId,
+    method: 'delete',
+  })
+};
+
+// 瀵煎嚭鎮h�呴敊璇俊鎭�
+export function Exporterrorpatient(userId) {
+  return request({
+    url: '/smartor/patarchive/patTagByContion/'+userId,
+    method: 'get',
+  })
+};
+// 瀵煎叆鎮h�呮枃浠跺鐞�
+export function toleadpatient(userId) {
+  return request({
+    url: '/smartor/patarchive/patTagByContion/'+userId,
+    method: 'get',
+  })
+};
+// 鏂板鎮h�呯梾鍙�
+
+export function addmedicalhistory(data) {
+  return request({
+    url: '/medicalhistory/add',
+    method: 'post',
+    data: data
+  })
+};
+// 鐥呭彶璇︽儏
+export function getmedicalhistory(userId) {
+  return request({
+    url: '/medicalhistory/'+userId,
+    method: 'get',
+  })
+};
+
+// 淇敼鐥呭彶
+export function editmedicalhistory(data) {
+  return request({
+    url: '/medicalhistory/edit',
+    method: 'post',
+    data: data
+  })
+};
+
+// 鏂板鎮h�呰仈绯绘柟寮�
+export function addcontactinformation(data) {
+  return request({
+    url: '/archivecontact/add',
+    method: 'post',
+    data: data
+  })
+};
+// 淇敼鎮h�呰仈绯绘柟寮�
+export function editcontactinformation(data) {
+  return request({
+    url: '/archivecontact/edit',
+    method: 'post',
+    data: data
+  })
+};
+// 鑱旂郴鏂瑰紡璇︽儏
+export function getcontactinformation(userId) {
+  return request({
+    url: '/medicalhistory/'+userId,
+    method: 'get',
+  })
+};
+// 鍒犻櫎璇︽儏
+export function delcontactinformation(userId) {
+  return request({
+    url: '/archivecontact/'+userId,
+    method: 'get',
+  })
+};

--
Gitblit v1.9.3