From b66c2027d10467b21c036e53d457dda02c6d4ccb Mon Sep 17 00:00:00 2001 From: suizihe <2958847195@qq.com> Date: Wed, 12 Nov 2025 12:08:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8D=A2=E5=8D=A1=E5=A4=84=E7=90=86=E7=9A=84?= =?UTF-8?q?=E5=88=86=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- openhis-ui-vue3/src/api/cardRenewal/api.js | 4 +- .../patientCardRenewal/components/api.js | 23 ++++++ .../views/charge/patientCardRenewal/index.vue | 81 ++++++++++++++----- 3 files changed, 87 insertions(+), 21 deletions(-) diff --git a/openhis-ui-vue3/src/api/cardRenewal/api.js b/openhis-ui-vue3/src/api/cardRenewal/api.js index c43a9457..6ccf908d 100644 --- a/openhis-ui-vue3/src/api/cardRenewal/api.js +++ b/openhis-ui-vue3/src/api/cardRenewal/api.js @@ -46,7 +46,7 @@ export const getPatientInfo = (patientId) => { }; // 获取患者详细信息 -export function getPatientInfo(patientId) { +/* export function getPatientInfo(patientId) { return request({ url: '/cardRenewal/patient/info/' + patientId, method: 'get' @@ -58,4 +58,4 @@ export function getPatientInfo(patientId) { data: {} }; }); -} \ No newline at end of file +} */ \ No newline at end of file diff --git a/openhis-ui-vue3/src/views/charge/patientCardRenewal/components/api.js b/openhis-ui-vue3/src/views/charge/patientCardRenewal/components/api.js index 74936a3e..7a7b2055 100644 --- a/openhis-ui-vue3/src/views/charge/patientCardRenewal/components/api.js +++ b/openhis-ui-vue3/src/views/charge/patientCardRenewal/components/api.js @@ -16,4 +16,27 @@ export const doCardRenewal = (params) => { method: 'post', data: params }) +} + +/** + * 查询患者信息 - 复用门诊挂号的API + * @param {Object} params - 查询参数 + * @param {string} params.searchKey - 搜索关键字(姓名、身份证号、手机号等) + * @param {number} params.pageNo - 当前页码 + * @param {number} params.pageSize - 每页大小 + * @returns {Promise} 请求结果 + */ +export const getPatientList = (params) => { + // 构建searchKey参数,将姓名、身份证号、手机号组合成一个搜索关键字 + const searchKey = params.patientName || params.idCard || params.phoneNumber || ''; + + return request({ + url: '/charge-manage/register/patient-metadata', + method: 'get', + params: { + searchKey: searchKey, + pageNo: params.pageNo || 1, + pageSize: params.pageSize || 10 + } + }) } \ No newline at end of file diff --git a/openhis-ui-vue3/src/views/charge/patientCardRenewal/index.vue b/openhis-ui-vue3/src/views/charge/patientCardRenewal/index.vue index 799a1a4f..8b153774 100644 --- a/openhis-ui-vue3/src/views/charge/patientCardRenewal/index.vue +++ b/openhis-ui-vue3/src/views/charge/patientCardRenewal/index.vue @@ -190,6 +190,20 @@ + + +
+ +
+