换卡处理的分页

This commit is contained in:
2025-11-12 12:08:52 +08:00
parent 09bf895711
commit b66c2027d1
3 changed files with 87 additions and 21 deletions

View File

@@ -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
}
})
}