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 |   68 +++++++++++++++++++++++++++++-----
 1 files changed, 58 insertions(+), 10 deletions(-)

diff --git a/src/api/patient/homepage.js b/src/api/patient/homepage.js
index 6f3bf90..0dfedce 100644
--- a/src/api/patient/homepage.js
+++ b/src/api/patient/homepage.js
@@ -17,14 +17,6 @@
     data: data
   })
 };
-// 鏍囩鏌ヨ鎮h�呭垪琛�
-export function taglistpatient(data) {
-  return request({
-    url: '/smartor/patarchive/patTagByContion',
-    method: 'post',
-    data: data
-  })
-};
 // 淇敼鎮h�呮。妗�
 export function alterpatient(data) {
   return request({
@@ -44,14 +36,14 @@
 // 鎮h�呰鎯�
 export function particularpatient(userId) {
   return request({
-    url: '/smartor/patarchive/' + userId,
+    url: '/smartor/patarchive/getInfo/' + userId,
     method: 'get',
   })
 };
 // 鍒犻櫎鎮h�呭垪琛�
 export function deletepatient(userId) {
   return request({
-    url: '/smartor/patarchive/' + userId,
+    url: '/smartor/patarchive/remove/' + userId,
     method: 'delete',
   })
 };
@@ -70,3 +62,59 @@
     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