From d94d00d2cd9eaf87bb3776f72f8e73410b93cb7a Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期一, 18 十二月 2023 15:59:37 +0800 Subject: [PATCH] 随访题库完成 --- src/api/patient/homepage.js | 75 +++++++++++++++++++++++++++++++++++-- 1 files changed, 70 insertions(+), 5 deletions(-) diff --git a/src/api/patient/homepage.js b/src/api/patient/homepage.js index 8ede6e1..ee65d9d 100644 --- a/src/api/patient/homepage.js +++ b/src/api/patient/homepage.js @@ -20,8 +20,8 @@ // 淇敼鎮h�呮。妗� export function alterpatient(data) { return request({ - url: '/smartor/patarchive', - method: 'put', + url: '/smartor/patarchive/edit', + method: 'post', data: data }) }; @@ -36,15 +36,15 @@ // 鎮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, - method: 'delete', + url: '/smartor/patarchive/remove/' + userId, + method: 'get', }) }; @@ -62,3 +62,68 @@ method: 'get', }) }; +// 鏂板鎮h�呯梾鍙� + +export function addmedicalhistory(data) { + return request({ + url: '/medicalhistory/add', + method: 'post', + data: data + }) +}; +// 鐥呭彶鍒楄〃 +export function getmedicalhistory(data) { + return request({ + url: '/medicalhistory/selectMedicalHistoryList', + method: 'post', + data: data + }) +}; + +// 淇敼鐥呭彶 +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 listcontactinformation(data) { + return request({ + url: '/archivecontact/selectPatArchivecontactList', + method: 'post', + data:data + }) +}; +// 鍒犻櫎璇︽儏 +export function delcontactinformation(userId) { + return request({ + url: '/archivecontact/remove/'+userId, + method: 'get', + }) +}; -- Gitblit v1.9.3