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 @@ + + +
+ +
+