Files
his/healthlink-his-ui/src/api/cardRenewal/api.js
华佗 893cbf1fe0 refactor: 彻底清除所有openhis痕迹
- 重命名目录: openhis-server-new → healthlink-his-server
- 重命名目录: openhis-ui-vue3 → healthlink-his-ui
- 重命名Java类: OpenHisApplication → HealthLinkHisApplication
- 重命名Java类: OpenHisMiniApp → HealthLinkHisMiniApp
- 重命名组件目录: OpenHis → HealthLinkHis
- 重命名样式文件: openhis.scss → healthlink-his.scss
- 重命名配置: nginx-openhis.conf → nginx-healthlink-his.conf
- 更新所有源码引用 (0个残留)
- 更新所有文档/脚本/配置中的引用
2026-06-05 13:36:28 +08:00

57 lines
1.3 KiB
JavaScript
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import request from '@/utils/request';
/**
* 查询患者列表
* 完全复用门诊挂号查询患者的逻辑和API
* @param {Object} query - 查询参数
* @returns {Promise} 请求结果
*/
export function getPatientList(query) {
// 直接复用门诊挂号模块完全相同的实现方式
// 不做额外的参数处理直接将query传递给后端
return request({
url: '/charge-manage/register/patient-metadata',
method: 'get',
params: query
});
};
/**
* 更新患者换卡信息
* @param {Object} params - 换卡参数
* @returns {Promise} 请求结果
*/
export const renewPatientCard = (params) => {
return request({
url: '/cardRenewal/card/renewal',
method: 'post',
data: params
});
};
/**
* 获取患者详情信息
* @param {string} patientId - 患者ID
* @returns {Promise} 请求结果
*/
export const getPatientInfo = (patientId) => {
return request({
url: `/cardRenewal/patient/info/${patientId}`,
method: 'get'
});
};
// 获取患者详细信息
/* export function getPatientInfo(patientId) {
return request({
url: '/cardRenewal/patient/info/' + patientId,
method: 'get'
}).catch(error => {
console.error('获取患者详细信息API调用失败:', error);
return {
code: 500,
msg: 'API调用失败',
data: {}
};
});
} */